summaryrefslogtreecommitdiff
path: root/games/woof
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2020-09-11 10:28:09 +0000
committermicha <micha@pkgsrc.org>2020-09-11 10:28:09 +0000
commit6a69cf68a7e25db4ff50d998029c458c7bb95e83 (patch)
treed15b89a638b02c70469f70385bb0dbad9194b4b8 /games/woof
parent3702f3658c74e25753d4c85ccd0bcb72c5a1fde9 (diff)
downloadpkgsrc-6a69cf68a7e25db4ff50d998029c458c7bb95e83.tar.gz
games/woof: Build fix for Darwin
XDG desktop and icon files are now always installed (on Darwin too). pkgsrc users maybe have X11 installed on Apple machines.
Diffstat (limited to 'games/woof')
-rw-r--r--games/woof/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/woof/Makefile b/games/woof/Makefile
index 59e6c80a2eb..069cd18836e 100644
--- a/games/woof/Makefile
+++ b/games/woof/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2020/09/03 10:26:47 micha Exp $
+# $NetBSD: Makefile,v 1.11 2020/09/11 10:28:09 micha Exp $
DISTNAME= woof_2.1.1
PKGNAME= ${DISTNAME:S/_/-/}
@@ -37,6 +37,15 @@ SUBST_MESSAGE.uint= Preparing m_misc.c file ...
SUBST_FILES.uint= Source/m_misc.c
SUBST_SED.uint= -e 's,uint_t,woof_uint_t,'
+# XDG desktop file and icon are installed by the build system with the logic:
+# if(UNIX AND NOT APPLE)
+# Remove Apple exception because pkgsrc users maybe have X11 on Apple machines
+SUBST_CLASSES+= xdg
+SUBST_STAGE.xdg= pre-configure
+SUBST_MESSAGE.xdg= Preparing data/CMakeLists.txt file ...
+SUBST_FILES.xdg= data/CMakeLists.txt
+SUBST_SED.xdg= -e 's,UNIX AND NOT APPLE,UNIX,'
+
pre-configure:
cd ${WRKSRC}; mkdir build
${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR}