aboutsummaryrefslogtreecommitdiffstats
path: root/games/duke3d-data
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-05-12 16:06:32 +0800
committerdanfe <danfe@FreeBSD.org>2013-05-12 16:06:32 +0800
commit50b2719b4dfe3fbff49e79ff267cf440db9fa8f5 (patch)
tree36fe9bc878683842de3c4779e9a7645be41dba81 /games/duke3d-data
parent21331e856d86bbccf4a8a14b3761e35227b69126 (diff)
downloadfreebsd-ports-gnome-50b2719b4dfe3fbff49e79ff267cf440db9fa8f5.tar.gz
freebsd-ports-gnome-50b2719b4dfe3fbff49e79ff267cf440db9fa8f5.tar.zst
freebsd-ports-gnome-50b2719b4dfe3fbff49e79ff267cf440db9fa8f5.zip
If port is setting PKGNAMEPREFIX=${FOOPKGNAMEPREFIX}, but .include's this
file before <bsd.port.options.mk>, options handling gets broken because options will be loaded from OPTIONSFILE which is based on UNIQUENAME and thus PKGNAMEPREFIX, which is empty at that point. Prevent this: ensure that FOOPKGNAMEPREFIX is defined in advance for ports that use it to set their PKGNAMEPREFIX and having OPTIONS.
Diffstat (limited to 'games/duke3d-data')
-rw-r--r--games/duke3d-data/Makefile.include4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/duke3d-data/Makefile.include b/games/duke3d-data/Makefile.include
index ec9f21e91030..74204d295c45 100644
--- a/games/duke3d-data/Makefile.include
+++ b/games/duke3d-data/Makefile.include
@@ -16,6 +16,10 @@
DN3DPKGNAMEPREFIX?= duke3d-
DN3DDIR?= ${LOCALBASE}/share/duke3d
+.if ${PKGNAMEPREFIX} == ${DN3DPKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
+. error include before <bsd.port.options.mk> if using DN3DPKGNAMEPREFIX
+.endif
+
MAKE_ENV+= DN3DDIR="${DN3DDIR}"
PLIST_SUB+= DN3DDIR="${DN3DDIR:S/${LOCALBASE}\///}"
SUB_LIST+= DN3DDIR="${DN3DDIR}"