1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/quake3-data/Makefile.include
Alexey Dokuchaev 0c65f94d0a Reduce the differences between `quake*-data' ports:
- Consistently use vertical bar (pipe) in :S substitutions
- Do not abuse .error statement, set IGNORE knob instead
- Drop some unnecessary quotation marks in comparisons
- Add a comment on why we cannot depend on particular .pak file
- Simplify extraction of the `linuxq3apoint-1.32b-3.x86.run'
2014-07-08 08:51:31 +00:00

18 lines
604 B
Makefile

# Makefile for defining variables used by other Quake3 related ports. See
# `games/quake2-data/Makefile.include' for extensive description and usage.
Q3PKGNAMEPREFIX?= quake3-
Q3DIR?= ${LOCALBASE}/share/quake3
.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${Q3PKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
IGNORE= is using Q3PKGNAMEPREFIX, but <bsd.port.options.mk> included too early
.endif
MAKE_ENV+= Q3DIR="${Q3DIR}"
PLIST_SUB+= Q3DIR="${Q3DIR:S|${LOCALBASE}/||}"
SUB_LIST+= Q3DIR="${Q3DIR}"
.if ${PORTNAME} != data
RUN_DEPENDS+= ${Q3DIR}/baseq3/pak1.pk3:${PORTSDIR}/games/quake3-data
.endif