aboutsummaryrefslogtreecommitdiff
path: root/games/tenebrae/Makefile
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-06-17 21:32:32 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-06-17 21:32:32 +0000
commitdc044fd8e7cb6049c9289cd48aea1c507562db20 (patch)
treea7aa2a7d1a889bcb68ad7220c409995a994808b8 /games/tenebrae/Makefile
parentd8d1209c77b810ea33afeee2d99415b52608ee27 (diff)
downloadports-dc044fd8e7cb6049c9289cd48aea1c507562db20.tar.gz
ports-dc044fd8e7cb6049c9289cd48aea1c507562db20.zip
Notes
Diffstat (limited to 'games/tenebrae/Makefile')
-rw-r--r--games/tenebrae/Makefile33
1 files changed, 18 insertions, 15 deletions
diff --git a/games/tenebrae/Makefile b/games/tenebrae/Makefile
index d2bb940aea7c..ecccc0e83500 100644
--- a/games/tenebrae/Makefile
+++ b/games/tenebrae/Makefile
@@ -19,33 +19,32 @@ COMMENT= Quake 1 source port with advanced graphics
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_ZIP= yes
+USE_DOS2UNIX= yes
USE_GMAKE= yes
USE_GL= yes
USE_SDL= yes
-ONLY_FOR_ARCHS= i386
-DATADIR= ${Q1DIR}
+OPTIONS= X86_ASM "Enable use of x86 assembly code" on
WRKSRC= ${WRKDIR}/${PORTNAME}_0
BUILD_WRKSRC= ${WRKSRC}/linux
-MAKE_ENV= DATADIR="${DATADIR}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}" \
- SDL_CONFIG="${SDL_CONFIG}"
+MAKEFILE= Makefile.i386linux
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
-.include "${.CURDIR}/../quake-data/Makefile.include"
+.include <bsd.port.pre.mk>
-pre-patch:
- @${REINPLACE_CMD} -e "s|$$(${PRINTF} '\r')||g" `${FIND} ${WRKSRC} -type f`
+.if !defined(WITHOUT_X86_ASM)
+MAKE_ENV+= USE_ASM=1
+.endif
pre-build:
- @${LN} -sf ${WRKSRC}/linux/Makefile.i386linux ${WRKSRC}/linux/Makefile
+ @cd ${BUILD_WRKSRC} && ${LN} -sf Makefile.i386linux Makefile
do-install:
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/debugi386.glibc/bin/${PORTNAME}.run \
- ${PREFIX}/bin/${PORTNAME}
- @${MKDIR} ${DATADIR}
- @${MKDIR} ${DATADIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${DATADIR}/${PORTNAME}
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/bin/${PORTNAME} \
+ ${PREFIX}/bin
+ @${MKDIR} ${Q1DIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME}
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TR} -d '\r' <${WRKDIR}/Tenebrae_Readme.txt \
@@ -53,6 +52,10 @@ do-install:
.endif
post-install:
+ @${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD}
+
+.include "${.CURDIR}/../quake-data/Makefile.include"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>