svn commit: r350611 - head/games/megaglest

Baptiste Daroussin bapt at FreeBSD.org
Tue Apr 8 13:25:27 UTC 2014


Author: bapt
Date: Tue Apr  8 13:25:26 2014
New Revision: 350611
URL: http://svnweb.freebsd.org/changeset/ports/350611
QAT: https://qat.redports.org/buildarchive/r350611/

Log:
  Use wxGTK 3.0
  Use lua 5.2
  Fix build on headless machines (if help2man is found they it tries to generate a man page for the editor which need display)

Modified:
  head/games/megaglest/Makefile

Modified: head/games/megaglest/Makefile
==============================================================================
--- head/games/megaglest/Makefile	Tue Apr  8 13:10:25 2014	(r350610)
+++ head/games/megaglest/Makefile	Tue Apr  8 13:25:26 2014	(r350611)
@@ -3,7 +3,7 @@
 
 PORTNAME=	megaglest
 PORTVERSION=	3.9.0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}_3.9.0/
 DISTNAME=	${PORTNAME}-source-${PORTVERSION}
@@ -23,12 +23,11 @@ RUN_DEPENDS=	${DATADIR}/tutorials/2_basi
 
 SUB_FILES=	pkg-message
 
-USE_XZ=		yes
-USES=		cmake dos2unix openal:al,alut pkgconfig
+USES=		cmake display:build dos2unix lua openal:al,alut pkgconfig tar:xz
 USE_GL=		glew gl glu
-USE_LUA=	5.1
 USE_SDL=	yes
-USE_WX=		2.8+
+USE_WX=		3.0
+WX_UNICODE=	yes
 
 CFLAGS+=	-I${LOCALBASE}/include/libpng15
 WRKSRC=		${WRKDIR}/${PORTNAME}-3.9.0
@@ -39,6 +38,12 @@ EDITOR_DESC=	Install MegaGlest Editor
 
 .include <bsd.port.options.mk>
 
+post-patch:
+	@${REINPLACE_CMD} -e 's,/usr/local/include/lua51,${LUA_INCDIR},g ; \
+		s,/usr/local/lib/lua51,${LUA_LIBDIR},g ; \
+		s,lua5.2,lua-${LUA_VER},g' \
+		${WRKSRC}/mk/cmake/Modules/FindLUA.cmake
+
 do-install:
 	${STRIP_CMD} ${WRKSRC}/source/glest_game/megaglest
 	@${MKDIR} ${STAGEDIR}${DATADIR}


More information about the svn-ports-all mailing list