freebsd-ports/games/doom-data/Makefile.include
Antoine Brodin 364abe76fd Switch some dependencies from a directory name or a file generated by pkg-install
to a package name,  as the former can't be attributed to a package
2015-01-24 15:07:39 +00:00

16 lines
497 B
Makefile

# 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