aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake-data
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-12-12 17:25:24 +0800
committergarga <garga@FreeBSD.org>2005-12-12 17:25:24 +0800
commitdf68b1ca315c34f0adfbccfa2efcd79f674adba2 (patch)
tree6bcbd1a3913f8dfb0157b0189eed304169ec1b32 /games/quake-data
parentc8a0f05195b2207289007bcba604137d5eb81da1 (diff)
downloadfreebsd-ports-gnome-df68b1ca315c34f0adfbccfa2efcd79f674adba2.tar.gz
freebsd-ports-gnome-df68b1ca315c34f0adfbccfa2efcd79f674adba2.tar.zst
freebsd-ports-gnome-df68b1ca315c34f0adfbccfa2efcd79f674adba2.zip
- Changed quake-data/Makefile.include to be more similar to bsd.*.mk files,
also it doesn't override port's variables. - Change dependant ports. PR: ports/90145 Submitted by: maintainer
Diffstat (limited to 'games/quake-data')
-rw-r--r--games/quake-data/Makefile3
-rw-r--r--games/quake-data/Makefile.include37
2 files changed, 11 insertions, 29 deletions
diff --git a/games/quake-data/Makefile b/games/quake-data/Makefile
index 29dba8a222a9..3be6138d46f4 100644
--- a/games/quake-data/Makefile
+++ b/games/quake-data/Makefile
@@ -9,6 +9,7 @@ PORTNAME= data
PORTVERSION= 1.0.6
CATEGORIES= games
MASTER_SITES= http://www.libsdl.org/projects/quake/data/:qs
+PKGNAMEPREFIX= ${Q1PKGNAMEPREFIX}
DISTNAME= quakesw-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:qs
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
@@ -26,6 +27,8 @@ OPTIONS= FULL "Install full version" off \
QUAKEWORLD "Install QuakeWorld data" on \
QUAKEWORLD_SKINS "Install QuakeWorld skins" on
+DATADIR= ${Q1DIR}
+
PROGFILE= qwsv-2.30-glibc-i386-unknown-linux2.0.tar.gz
SKINFILES= skinbase.zip qw_skins.zip
diff --git a/games/quake-data/Makefile.include b/games/quake-data/Makefile.include
index 5e2e3d5afe78..523db43902e4 100644
--- a/games/quake-data/Makefile.include
+++ b/games/quake-data/Makefile.include
@@ -1,39 +1,18 @@
# Makefile for defining variables used by other Quake related ports.
-# Determine if the port is a Quake engine.
+# Set variables.
-Q1ENGINES= quakeforge darkplaces fuhquake tenebrae
+Q1PKGNAMEPREFIX?=quake-
+Q1DIR?= ${LOCALBASE}/share/quake
-.for f in ${Q1ENGINES}
-. if ${PORTNAME} == ${f}
-ENGINE= yes
-. endif
-.endfor
+# Add them to the environment.
-# Package name prefix.
+MAKE_ENV+= Q1DIR="${Q1DIR}"
+PLIST_SUB+= Q1DIR="${Q1DIR:S/${LOCALBASE}\///}"
+SUB_LIST+= Q1DIR="${Q1DIR}"
-Q1PKGNAMEPREFIX=quake-
-
-.if !defined(ENGINE)
-PKGNAMEPREFIX?= ${Q1PKGNAMEPREFIX}
-.endif
-
-# Dependency to "games/quake-data".
+# Add the dependency.
.if ${PORTNAME} != "data"
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data
.endif
-
-# Installation directories.
-
-Q1DIR= ${LOCALBASE}/share/quake
-
-.if defined(ENGINE) || ${PORTNAME} == "data"
-DATADIR?= ${Q1DIR}
-.else
-DATADIR?= ${Q1DIR}/${PORTNAME}
-.endif
-
-DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-
-PLIST_SUB+= Q1DIR="${Q1DIR}"