summaryrefslogtreecommitdiff
path: root/games/rtcw
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-12-20 18:40:17 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-12-20 18:40:17 +0000
commitc5cc04b72799a95a8aed4b2700c8d3979f208ea9 (patch)
tree29990b30b01f5848acd2fe433d433511cbdcb668 /games/rtcw
parentUpdate to 0.6.22 (diff)
- Bump PORTREVISION (also needed by the previous commit).
- Use USE_MAKESELF instead of custom do-extract target. - Use USE_DOS2UNIX instead of manual REINPLACE_CMD. - Preserve additional arguments in the wrapper scripts. - Clean up / tidy.
Diffstat (limited to 'games/rtcw')
-rw-r--r--games/rtcw/Makefile38
1 files changed, 12 insertions, 26 deletions
diff --git a/games/rtcw/Makefile b/games/rtcw/Makefile
index 1088cf4de46d..3a7161d18e5d 100644
--- a/games/rtcw/Makefile
+++ b/games/rtcw/Makefile
@@ -7,68 +7,54 @@
PORTNAME= rtcw
PORTVERSION= 1.41b
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= wolf/linux
DISTNAME= wolf-linux-${PORTVERSION}.x86
-EXTRACT_SUFX= .run
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Return to Castle Wolfenstein for Linux
-REINPLACE_ARGS= -i ""
+USE_MAKESELF= yes
USE_LINUX= yes
USE_GL= linux
USE_XLIB= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-message
-PROGS= wolf wolfded wolfsp
+WRAPPERS= wolf wolfded wolfsp
# Ignore older version which seems to be newer.
PORTSCOUT= skipv:1.41-3
-do-extract:
- @${MKDIR} ${WRKDIR}
- @cd ${WRKDIR} && tail +376 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
- ${TAR} zxf -
+# Should be in bsd.commands.mk. Remove when ports/118749 is committed.
+UNMAKESELF_CMD?= ${LOCALBASE}/bin/unmakeself
post-extract:
@${MV} ${WRKSRC}/pb/PB_EULA.txt ${WRKSRC}
-# Remove trailing ^M.
-pre-patch:
- @${FIND} -E ${WRKSRC} -type f \
- -iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
- -exec ${REINPLACE_CMD} -e "s|`${ECHO_CMD} -e '\r'`$$||" {} \;
-
do-build:
-.for f in ${PROGS}
+.for f in ${WRAPPERS}
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
- ${ECHO_CMD} "exec ./${f}") > ${WRKDIR}/${f}
+ ${ECHO_CMD} 'exec ./${f} "$$@"') > ${WRKDIR}/${f}
.endfor
do-install:
${MKDIR} ${DATADIR}
-.for f in ${PROGS}
+.for f in ${WRAPPERS}
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f}.x86 ${DATADIR}/${f}
${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/bin
.endfor
-.for f in main pb
- ${CP} -R ${WRKSRC}/${f} ${DATADIR}
-.endfor
+ ${CP} -r ${WRKSRC}/main ${WRKSRC}/pb ${DATADIR}
${MKDIR} ${PREFIX}/share/pixmaps
-.for f in WolfMP.xpm WolfSP.xpm
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/pixmaps
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Wolf[MS]P.xpm ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
-. for f in CHANGES INSTALL PB_EULA.txt QUICKSTART RTCW-README-1.4.txt
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-. endfor
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} CHANGES INSTALL QUICKSTART *.txt ${DOCSDIR}
${CP} -R ${WRKSRC}/Docs ${DOCSDIR}
.endif