From f770f5bafffb5de6875a431552fe784da36570a1 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Mon, 11 Nov 2013 03:06:55 +0000 Subject: - Convert LIB_DEPENDS to new syntax - Convert USE_GMAKE to USES - Add stage support --- games/tenebrae/Makefile | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'games/tenebrae') diff --git a/games/tenebrae/Makefile b/games/tenebrae/Makefile index 06c2db754123..333dbf6163f6 100644 --- a/games/tenebrae/Makefile +++ b/games/tenebrae/Makefile @@ -12,11 +12,11 @@ DISTFILES= ${PORTNAME}_src${EXTRACT_SUFX} \ MAINTAINER= ports@FreeBSD.org COMMENT= Quake engine with lighting similar to that in Doom III -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png +USES= gmake USE_ZIP= yes USE_DOS2UNIX= yes -USE_GMAKE= yes USE_GL= glu USE_SDL= yes USE_XORG= xxf86dga @@ -32,12 +32,7 @@ OPTIONS_DEFAULT_i386= ASM OPTIONS_DEFINE_amd64= ASM OPTIONS_DEFAULT_amd64= ASM -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MASM} -MAKE_ENV+= USE_ASM=1 -.endif +ASM_MAKE_ENV= USE_ASM=1 post-patch: ${REINPLACE_CMD} -e 's|gray_1_2_4_to_8|expand_&|' \ @@ -48,19 +43,12 @@ pre-build: do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/bin/${PORTNAME} \ - ${PREFIX}/bin - @${MKDIR} ${Q1DIR}/${PORTNAME} - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME} -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${Q1DIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${STAGEDIR}${Q1DIR}/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${TR} -d '\r' < ${WRKDIR}/Tenebrae_Readme.txt \ - > ${DOCSDIR}/Tenebrae_Readme.txt -.endif - -post-install: - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} + > ${STAGEDIR}${DOCSDIR}/Tenebrae_Readme.txt .include "${.CURDIR}/../quake-data/Makefile.include" .include -- cgit v1.2.3