freebsd-ports/games/quake-data/Makefile.include

18 lines
592 B
Text
Raw Normal View History

# Makefile for defining variables used by other Quake related ports. See
# `games/quake2-data/Makefile.include' for extensive description and usage.
Q1PKGNAMEPREFIX?= quake-
Q1DIR?= ${LOCALBASE}/share/quake
2013-05-12 10:39:29 +02:00
.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${Q1PKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
. error include before <bsd.port.options.mk> if using Q1PKGNAMEPREFIX
.endif
MAKE_ENV+= Q1DIR="${Q1DIR}"
PLIST_SUB+= Q1DIR="${Q1DIR:S/${LOCALBASE}\///}"
SUB_LIST+= Q1DIR="${Q1DIR}"
.if ${PORTNAME} != "data"
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data
.endif