60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
42 lines
951 B
Makefile
42 lines
951 B
Makefile
# Created by: alepulver
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= shrub
|
|
PORTVERSION= 1.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= games linux
|
|
MASTER_SITES= LOCAL/alepulver
|
|
PKGNAMEPREFIX= linux-enemyterritory-
|
|
DISTNAME= 1.2-test13-l
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Shrub - An Enemy Territory Modification
|
|
|
|
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
|
|
|
|
USES= zip
|
|
USE_LINUX= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}
|
|
|
|
PLIST_FILES= bin/et-${PORTNAME} \
|
|
bin/etded-${PORTNAME} \
|
|
%%DATADIR%%/qagame.mp.i386.so
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
do-build:
|
|
.for f in et etded
|
|
@(${ECHO} "#!/bin/sh"; \
|
|
${ECHO} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} "$$@"') > \
|
|
${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}
|
|
|
|
.include <bsd.port.mk>
|