Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 20:48:56 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339455 - head/net/crtmpserver
Message-ID:  <201401112048.s0BKmukR039644@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Jan 11 20:48:55 2014
New Revision: 339455
URL: http://svnweb.freebsd.org/changeset/ports/339455

Log:
  Switch to USES=lua (meaning to lua 5.2)

Modified:
  head/net/crtmpserver/Makefile

Modified: head/net/crtmpserver/Makefile
==============================================================================
--- head/net/crtmpserver/Makefile	Sat Jan 11 20:46:59 2014	(r339454)
+++ head/net/crtmpserver/Makefile	Sat Jan 11 20:48:55 2014	(r339455)
@@ -3,6 +3,7 @@
 
 PORTNAME=	crtmpserver
 PORTVERSION=	0.811
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://rtmpd.com/assets/sources/
 
@@ -13,12 +14,9 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo
 
-USE_LUA=	5.1
-WANT_LUA_VER=	5.1
-
 MAKE_JOBS_UNSAFE=	yes
 USE_LDCONFIG=	yes
-USES=		cmake:outsource
+USES=		cmake:outsource lua
 CMAKE_SOURCE_PATH=	${WRKSRC}/builders/cmake
 CMAKE_ARGS=	-DCRTMPSERVER_INSTALL_PREFIX:STRING=${PREFIX} -DTEMP_FRAMEWORK_VER=${PORTVERSION}
 
@@ -27,6 +25,11 @@ GROUPS=	crtmpserver
 
 USE_RC_SUBR=	crtmpserver
 
+post-patch:
+	@${REINPLACE_CMD} -e "s,/usr/local/include/lua51,${LUA_INCDIR},g" \
+		-e "s,lua$$,lua-${LUA_VER},g" \
+		${WRKSRC}/builders/cmake/cmake_find_modules/Find_lua.cmake
+
 pre-install:
 	@${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/crtmpserver.lua" "${PREFIX}" "${WRKSRC}"
 	@${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/all.debug.lua" "${PREFIX}" "${WRKSRC}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401112048.s0BKmukR039644>