diff options
author | Simon Barner <barner@FreeBSD.org> | 2005-11-17 11:28:34 +0000 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2005-11-17 11:28:34 +0000 |
commit | 428fe6f85fd26ea306c3fae697d7770d7c395ffe (patch) | |
tree | ec61349ff5119c80e84d5799a839f8c1a6b25122 /games/doom-data/Makefile.include | |
parent | cb84d24c50fd77124ccc9ffe12c27498f907b15a (diff) | |
download | ports-428fe6f85fd26ea306c3fae697d7770d7c395ffe.tar.gz ports-428fe6f85fd26ea306c3fae697d7770d7c395ffe.zip |
Notes
Diffstat (limited to 'games/doom-data/Makefile.include')
-rw-r--r-- | games/doom-data/Makefile.include | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/games/doom-data/Makefile.include b/games/doom-data/Makefile.include new file mode 100644 index 000000000000..56fbf31b7dcc --- /dev/null +++ b/games/doom-data/Makefile.include @@ -0,0 +1,42 @@ +# Makefile for defining variables used by other Doom related ports. + +# Determine if the port is a Doom engine. + +DMENGINES= deng doom doomlegacy prboom vavoom + +.for f in ${DMENGINES} +. if ${PORTNAME} == ${f} +ENGINE= yes +. endif +.endfor + +# Package name prefix. + +DMPKGNAMEPREFIX=doom- + +.if !defined(ENGINE) +PKGNAMEPREFIX?= ${DMPKGNAMEPREFIX} +.endif + +# Dependency to "games/doom-data". + +.if ${PORTNAME} != "data" +RUN_DEPENDS+= ${DMDIR}:${PORTSDIR}/games/doom-data +.endif + +# Installation directories. + +DMDIR= ${PREFIX}/share/doom + +.if ${PORTNAME} == "data" +DATADIR?= ${DMDIR} +.endif + +.if ${PORTNAME} != "data" && !defined(ENGINE) +DATADIR?= ${DMDIR}/${PORTNAME} +.endif + +DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} + +PLIST_SUB+= DMDIR="${DMDIR:S/${PREFIX}\///}" +SUB_LIST+= DMDIR="${DMDIR}" |