mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
81 lines
1.8 KiB
Makefile
81 lines
1.8 KiB
Makefile
# New ports collection makefile for: Return to Castle Wolfenstein
|
|
# Date created: Sun Jun 3 00:52:38 EDT 2001
|
|
# Whom: nik@freebsd.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rtcw
|
|
PORTVERSION= 1.41b
|
|
PORTREVISION= 1
|
|
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 ""
|
|
IA32_BINARY_PORT= yes
|
|
USE_LINUX= yes
|
|
USE_XLIB= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
PROGS= 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 -
|
|
|
|
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}
|
|
@(${ECHO_CMD} "#!${SH}"; \
|
|
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
|
|
${ECHO_CMD} "exec ./${f}") > ${WRKDIR}/${f}
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
.for f in ${PROGS}
|
|
${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
|
|
${MKDIR} ${PREFIX}/share/pixmaps
|
|
.for f in WolfMP.xpm WolfSP.xpm
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/pixmaps
|
|
.endfor
|
|
.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
|
|
${CP} -R ${WRKSRC}/Docs ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_CMD}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_CMD}
|
|
|
|
.include <bsd.port.mk>
|