summaryrefslogtreecommitdiff
path: root/games/doom-data/Makefile.include
blob: c73dc7faca714003a176d0d5dfa6516ff5c8601f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for defining variables used by other Doom related ports.

DMPKGNAMEPREFIX?=	doom-
DMDIR?=		${LOCALBASE}/share/doom

.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${DMPKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
.  error include before <bsd.port.options.mk> if using DMPKGNAMEPREFIX
.endif

MAKE_ENV+=	DMDIR="${DMDIR}"
PLIST_SUB+=	DMDIR="${DMDIR:S/${LOCALBASE}\///}"
SUB_LIST+=	DMDIR="${DMDIR}"

.if ${PORTNAME} != "data"
RUN_DEPENDS+=	doom-data>0:${PORTSDIR}/games/doom-data
.endif