Changeset View
Changeset View
Standalone View
Standalone View
games/iourbanterror/Makefile
# Created by: alepulver | # Created by: alepulver | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= iourbanterror | PORTNAME= iourbanterror | ||||
PORTVERSION= ${GAMEVERSION}.${DISTVERSION} | DISTVERSION= ${GAMEVERSION} | ||||
PORTREVISION= 2 | PORTREVISION= 0 | ||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= games | CATEGORIES= games | ||||
DISTNAME= ioquake3-${DISTVERSION} | MASTER_SITES= # Force empty, to override master port | ||||
mat: I started saying that this line was wrong, it feels wrong at first sight, but is not because of… | |||||
MAINTAINER= kami@FreeBSD.org | MAINTAINER= kami@FreeBSD.org | ||||
COMMENT= Quake 3 engine modified for Urban Terror (based on ioquake3) | COMMENT= Quake 3 engine modified for Urban Terror (based on ioquake3) | ||||
RUN_DEPENDS= urbanterror-data>0:games/urbanterror-data | |||||
LICENSE?= GPLv2 | LICENSE?= GPLv2 | ||||
RUN_DEPENDS= urbanterror-data>0:games/urbanterror-data | |||||
MASTERDIR= ${.CURDIR}/../ioquake3 | MASTERDIR= ${.CURDIR}/../ioquake3 | ||||
DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr | DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr | ||||
DISTINFO_FILE= ${.CURDIR}/../${PORTNAME}/distinfo | |||||
PATCHDIR= ${.CURDIR}/../${PORTNAME}/files | PATCHDIR= ${.CURDIR}/../${PORTNAME}/files | ||||
URTDATADIR= ${.CURDIR}/../urbanterror-data | |||||
IOQ3?= CLIENT | IOQ3?= CLIENT | ||||
# The docs belong to ioquake3 | USE_GITHUB= yes | ||||
OPTIONS_EXCLUDE= DOCS | GH_ACCOUNT= lonkamikaze | ||||
GAMEVERSION= 4.2.023 | GH_PROJECT= urt4-freebsd | ||||
Q3ENGINEVER= ${DISTVERSION}+${GAMEVERSION} | GH_TAGNAME= freebsd-${Q3ENGINEVER} | ||||
# Not supported | |||||
OPTIONS_EXCLUDE= DOCS MUMBLE | |||||
Q3ENGINEVER= ${GAMEVERSION}.1 | |||||
Q3TOTALCONV= yes | Q3TOTALCONV= yes | ||||
Q3DIR= ${PREFIX}/share/quake3 | Q3DIR= ${PREFIX}/share/quake3 | ||||
Q3ICON= ${PREFIX}/share/quake3/q3ut4/q3ut.ico | Q3ICON= ${PREFIX}/share/quake3/q3ut4/q3ut.ico | ||||
Q3CLIENT= ioUrbanTerror | Q3CLIENT= ioUrbanTerror | ||||
Q3SERVER= ioUrTded | Q3SERVER= ioUrTded | ||||
Q3BASE= q3ut4 | Q3BASE= q3ut4 | ||||
BINSUFFIX= | BINSUFFIX= | ||||
HOMEPATH= /.ioUrbanTerror | HOMEPATH= /.ioUrbanTerror | ||||
MAKE_ARGS+= BUILD_MISSIONPACK=0 \ | .if ${IOQ3:MCLIENT} | ||||
BUILD_STANDALONE=1 | USE_XORG+= x11 xxf86dga xxf86vm | ||||
# Build without CURL is broken | |||||
OPTIONS_SLAVE= CURL | |||||
.endif | |||||
pre-patch: | pre-patch: | ||||
@(cd ${WRKSRC} && \ | |||||
for pfile in ${MASTERDIR}/files/patch-*; do \ | |||||
${PATCH} < $${pfile}; \ | |||||
done) | |||||
@${FIND} ${WRKSRC} -name \*.orig -delete | |||||
@${REINPLACE_CMD} \ | @${REINPLACE_CMD} \ | ||||
Done Inline Actionscan remove that. mat: can remove that. | |||||
-e 's/ioquake3/${Q3CLIENT}/g' \ | -e 's/Quake3-UrT/${Q3CLIENT}/g' \ | ||||
-e 's/ioq3ded/${Q3SERVER}/g' \ | -e 's/ioUrbanTerror-Ded/${Q3SERVER}/g' \ | ||||
-e 's/baseq3/${Q3BASE}/g' \ | |||||
"${WRKSRC}/Makefile" | "${WRKSRC}/Makefile" | ||||
.include "${URTDATADIR}/Makefile.include" | |||||
.include "${MASTERDIR}/Makefile" | .include "${MASTERDIR}/Makefile" |
I started saying that this line was wrong, it feels wrong at first sight, but is not because of the slave port thing, you should write something like: