svn commit: r339330 - head/www/faup

Baptiste Daroussin bapt at FreeBSD.org
Fri Jan 10 08:45:06 UTC 2014


Author: bapt
Date: Fri Jan 10 08:45:06 2014
New Revision: 339330
URL: http://svnweb.freebsd.org/changeset/ports/339330

Log:
  Port to lua 5.2

Modified:
  head/www/faup/Makefile

Modified: head/www/faup/Makefile
==============================================================================
--- head/www/faup/Makefile	Fri Jan 10 08:39:12 2014	(r339329)
+++ head/www/faup/Makefile	Fri Jan 10 08:45:06 2014	(r339330)
@@ -15,20 +15,19 @@ LICENSE_NAME=	Do What The [expletive] Yo
 LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-USES=		cmake:outsource
+USES=		cmake:outsource lua
 USE_LDCONFIG=	yes
-USE_LUA=	5.1
 
 PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
+post-patch:
+	@${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" -e \
+		"s/51/${LUA_VER_STR}/g" ${WRKSRC}/cmake/FindLua51.cmake
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list