mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
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)
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# Created by: alepulver
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jaymod
|
|
PORTVERSION= 2.2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= http://jaymod.clanfu.org/lib/downloads/ \
|
|
http://www.zenenterprises.biz/bud/jaymod/
|
|
PKGNAMEPREFIX= linux-enemyterritory-
|
|
|
|
MAINTAINER= bar@FreeBSD.org
|
|
COMMENT= Jaymod - An Enemy Territory Modification
|
|
|
|
RUN_DEPENDS= et:games/linux-enemyterritory
|
|
|
|
USES= linux shebangfix
|
|
SHEBANG_FILES= linux/convert_shrub
|
|
perl_OLD_CMD= "/bin/env perl"
|
|
|
|
OPTIONS_DEFINE= DOCS OMNIBOT
|
|
OMNIBOT_DESC= Install Omni-Bot for bot support
|
|
|
|
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}
|
|
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}
|
|
|
|
CLIENT_PK3= ${PORTNAME}-${PORTVERSION}.pk3
|
|
PLIST_SUB= CLIENT_PK3="${CLIENT_PK3}"
|
|
|
|
OMNIBOT_RUN_DEPENDS= et-omni-bot:games/linux-enemyterritory-omni-bot
|
|
|
|
do-build:
|
|
.for f in et etded
|
|
@(${ECHO_CMD} "#!/bin/sh"; \
|
|
${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} +set omnibot_path "${DATADIR}/../omni-bot" "$$@"') > \
|
|
${WRKSRC}/${f}-${PORTNAME}
|
|
.endfor
|
|
|
|
do-install:
|
|
.for f in et etded
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/qagame.mp.i386.so ${STAGEDIR}${DATADIR}
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${CLIENT_PK3} ${STAGEDIR}${DATADIR}
|
|
.for f in jaymod.cfg server.cfg
|
|
@${CP} -p ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/${f}.sample
|
|
.endfor
|
|
@${CP} -r ${WRKSRC}/linux ${WRKSRC}/mapscripts ${STAGEDIR}${DATADIR}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in README.txt doc/jaymod.pdf
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|