freebsd-ports/games/iourbanterror/Makefile
Dominic Fandrey 9ab41ffb0e Update and clean up the ioquake3 family of ports.
The following maintenance operations were performed:

- Recreate all patches with `make makepatch`
- Add LICENSE
- Update MAINTAINER to kami@freebsd.org
- games/ioquake3
  - Replace a lot of `.if ${PORT_OPTIONS:MFOO}` with `bsd.options.mk` fu
  - Add support for slaves using different SDL versions
- games/ioquake3-devel
  - Update to GIT revision 2808
  - Use SDL2
- games/iourbanterror
  - Change treatment of patches so `make makepatch` doesn't screw the patches in ${MASTERDIR}/files over
  - Update 4.2.018 to 4.2.023
- games/urbanterror-data
  - Update 4.2.018 to 4.2.023
  - Fix install without DOCS

Reviewed by:	cs
Approved by:	cs
Differential Revision:	https://reviews.freebsd.org/D5816
2016-04-25 22:43:23 +00:00

52 lines
1.2 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= iourbanterror
PORTVERSION= ${GAMEVERSION}.${DISTVERSION}
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games
DISTNAME= ioquake3-${DISTVERSION}
MAINTAINER= kami@freebsd.org
COMMENT= Quake 3 engine modified for Urban Terror (based on ioquake3)
RUN_DEPENDS= urbanterror-data>0:games/urbanterror-data
LICENSE?= GPLv2
MASTERDIR= ${.CURDIR}/../ioquake3
DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr
PATCHDIR= ${.CURDIR}/../${PORTNAME}/files
IOQ3?= CLIENT
# The docs belong to ioquake3
OPTIONS_EXCLUDE= DOCS
GAMEVERSION= 4.2.023
Q3ENGINEVER= ${DISTVERSION}+${GAMEVERSION}
Q3TOTALCONV= yes
Q3DIR= ${PREFIX}/share/quake3
Q3ICON= ${PREFIX}/share/quake3/q3ut4/q3ut.ico
Q3CLIENT= ioUrbanTerror
Q3SERVER= ioUrTded
Q3BASE= q3ut4
BINSUFFIX=
HOMEPATH= /.ioUrbanTerror
MAKE_ARGS+= BUILD_MISSIONPACK=0 \
BUILD_STANDALONE=1
pre-patch:
@(cd ${WRKSRC} && \
for pfile in ${MASTERDIR}/files/patch-*; do \
${PATCH} < $${pfile}; \
done)
@${FIND} ${WRKSRC} -name \*.orig -delete
@${REINPLACE_CMD} \
-e 's/ioquake3/${Q3CLIENT}/g' \
-e 's/ioq3ded/${Q3SERVER}/g' \
-e 's/baseq3/${Q3BASE}/g' \
"${WRKSRC}/Makefile"
.include "${MASTERDIR}/Makefile"