82a87de90c
Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Created by: ayu <ayunyan@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= etqw
|
|
PORTVERSION= 2.0.r1
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= IDSOFTWARE/etqw
|
|
PKGNAMEPREFIX= linux-
|
|
PKGNAMESUFFIX= -demo-server
|
|
DISTNAME= ETQW-demo2-server-full.r1.x86
|
|
EXTRACT_SUFX= .run
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Enemy Territory: QUAKE Wars Demo Server for Linux
|
|
|
|
NO_CDROM= Redistribution is limited
|
|
NO_BUILD= yes
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
USES= linux zip:infozip
|
|
|
|
ETQWDIR= ${PREFIX}/lib/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@cd ${WRKSRC} && \
|
|
${TAIL} -c +194885 ${_DISTDIR}${DISTNAME}.run > full.zip
|
|
@(cd ${WRKSRC} && ${UNZIP_CMD} -q ${WRKSRC}/full.zip)
|
|
@${RM} ${WRKSRC}/full.zip
|
|
|
|
post-patch:
|
|
@${SED} -e 's|@ETQWDIR@|${ETQWDIR}|' ${FILESDIR}/etqwded-demo.in > ${WRKSRC}/etqwded-demo
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${ETQWDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/etqwded-demo ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/data/etqwded.x86 ${STAGEDIR}${ETQWDIR}
|
|
@cd ${WRKSRC}/data && \
|
|
${FIND} -E . -type f -iregex ".*\.so\.[0-9]+" \
|
|
-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
|
|
|
|
@${MKDIR} ${STAGEDIR}${ETQWDIR}/base/bots
|
|
@cd ${WRKSRC}/data && \
|
|
${FIND} base -type f \
|
|
-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
|
|
|
|
@${MKDIR} ${STAGEDIR}${ETQWDIR}/pb/htm
|
|
@cd ${WRKSRC}/data && \
|
|
${FIND} pb -type f \
|
|
-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for FILE in EULA.txt README.txt copyrights.txt etqwtv.txt pb/PBEULA.txt
|
|
@${INSTALL_DATA} ${WRKSRC}/data/${FILE} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|