diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-10-16 22:31:37 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-10-16 22:31:37 +0000 |
commit | 3f69cec55ada3103b9141263474ca7a1a5965bfe (patch) | |
tree | cc01def7d99542710733d9c5fec26821fab6ac03 /games/quake2-data/Makefile.include | |
parent | a49240dae7e785cdc6892f366599c9cb107c6381 (diff) | |
download | ports-3f69cec55ada3103b9141263474ca7a1a5965bfe.tar.gz ports-3f69cec55ada3103b9141263474ca7a1a5965bfe.zip |
Notes
Diffstat (limited to 'games/quake2-data/Makefile.include')
-rw-r--r-- | games/quake2-data/Makefile.include | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/games/quake2-data/Makefile.include b/games/quake2-data/Makefile.include new file mode 100644 index 000000000000..adb9a2faab25 --- /dev/null +++ b/games/quake2-data/Makefile.include @@ -0,0 +1,39 @@ +# Makefile for defining variables used by other Quake II related ports. + +# Determine if the port is a Quake II engine. + +Q2ENGINES= quake2forge quake2lnx + +.for f in ${Q2ENGINES} +. if ${PORTNAME} == ${f} +ENGINE= yes +. endif +.endfor + +# Package name prefix. + +Q2PKGNAMEPREFIX=quake2- + +.if !defined(ENGINE) +PKGNAMEPREFIX?= ${Q2PKGNAMEPREFIX} +.endif + +# Dependency to "games/quake2-data". + +.if ${PORTNAME} != "data" +RUN_DEPENDS+= ${Q2DIR}:${PORTSDIR}/games/quake2-data +.endif + +# Installation directories. + +Q2DIR= ${LOCALBASE}/share/quake2 + +.if defined(ENGINE) || ${PORTNAME} == "data" +DATADIR?= ${Q2DIR} +.else +DATADIR?= ${Q2DIR}/${PORTNAME} +.endif + +DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} + +PLIST_SUB+= Q2DIR="${Q2DIR:S/${PREFIX}\///}" |