diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-12-28 21:15:32 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-12-28 21:15:32 +0000 |
commit | e0c091c3ce14a4cec16ddb90eca6f9ba3014247f (patch) | |
tree | 0d0ceb5acada892a334e02beaab3706ff5708833 /games/quake2-data | |
parent | 0e4f2cc24d8b7af2d01c4e3b35b615714d0b2e99 (diff) | |
download | freebsd-ports-e0c091c3ce14a4cec16ddb90eca6f9ba3014247f.zip |
[MAINTAINER UPDATE] games/quake2-data: redesign, patch dependant ports
- Changed quake2-data/Makefile.include to be more similar
to bsd.*.mk files, also it doesn't override port's
variables.
- Change dependant ports.
PR: ports/90147
Subnmitted by: Alejandro Pulver <alejandro@varnet.biz>
Diffstat (limited to 'games/quake2-data')
-rw-r--r-- | games/quake2-data/Makefile | 3 | ||||
-rw-r--r-- | games/quake2-data/Makefile.include | 37 |
2 files changed, 11 insertions, 29 deletions
diff --git a/games/quake2-data/Makefile b/games/quake2-data/Makefile index 887cb63e049b..33896fdb0fb6 100644 --- a/games/quake2-data/Makefile +++ b/games/quake2-data/Makefile @@ -11,6 +11,7 @@ PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake2/ \ ftp://ftp.fasta.fh-dortmund.de/mirror/idstuff/quake2/ +PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX} DISTFILES= ${Q2FULL} DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} @@ -25,6 +26,8 @@ NO_WRKSUBDIR= yes OPTIONS= CTF "Install the Capture The Flag mod data" on \ SHAREWARE "Install demo version game data" off +DATADIR= ${Q2DIR} + LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME} Q2FULL= q2-3.20-x86-full.exe diff --git a/games/quake2-data/Makefile.include b/games/quake2-data/Makefile.include index adb9a2faab25..afdc3ba1f537 100644 --- a/games/quake2-data/Makefile.include +++ b/games/quake2-data/Makefile.include @@ -1,39 +1,18 @@ # Makefile for defining variables used by other Quake II related ports. -# Determine if the port is a Quake II engine. +# Set variables. -Q2ENGINES= quake2forge quake2lnx +Q2PKGNAMEPREFIX?=quake2- +Q2DIR?= ${LOCALBASE}/share/quake2 -.for f in ${Q2ENGINES} -. if ${PORTNAME} == ${f} -ENGINE= yes -. endif -.endfor +# Add them to the environment. -# Package name prefix. +MAKE_ENV+= Q2DIR="${Q2DIR}" +PLIST_SUB+= Q2DIR="${Q2DIR:S/${LOCALBASE}\///}" +SUB_LIST+= Q2DIR="${Q2DIR}" -Q2PKGNAMEPREFIX=quake2- - -.if !defined(ENGINE) -PKGNAMEPREFIX?= ${Q2PKGNAMEPREFIX} -.endif - -# Dependency to "games/quake2-data". +# Add the dependency. .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}\///}" |