pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xonotic xonotic: work around silly PLIST
details: https://anonhg.NetBSD.org/pkgsrc/rev/a8ea5bc4b9b1
branches: trunk
changeset: 452635:a8ea5bc4b9b1
user: nia <nia%pkgsrc.org@localhost>
date: Fri May 14 09:48:59 2021 +0000
description:
xonotic: work around silly PLIST
diffstat:
games/xonotic/Makefile | 11 +++++++++--
games/xonotic/PLIST | 8 ++++----
2 files changed, 13 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r f3cf3d7f719c -r a8ea5bc4b9b1 games/xonotic/Makefile
--- a/games/xonotic/Makefile Fri May 14 08:25:08 2021 +0000
+++ b/games/xonotic/Makefile Fri May 14 09:48:59 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2020/10/05 18:53:37 nia Exp $
+# $NetBSD: Makefile,v 1.8 2021/05/14 09:48:59 nia Exp $
DISTNAME= xonotic-0.8.2
PKGREVISION= 3
@@ -24,6 +24,14 @@
ICON_SIZES= 16 24 32 64 128 256 512
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
+PLIST_SUBST+= FAKE_PLATFORM="linux64"
+.else
+PLIST_SUBST+= FAKE_PLATFORM="linux32"
+.endif
+
INSTALLATION_DIRS+= share/applications
.for s in ${ICON_SIZES}
INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps
@@ -37,7 +45,6 @@
${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/xonotic.png
.endfor
-.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
. include "../../audio/alsa-lib/buildlink3.mk"
.endif
diff -r f3cf3d7f719c -r a8ea5bc4b9b1 games/xonotic/PLIST
--- a/games/xonotic/PLIST Fri May 14 08:25:08 2021 +0000
+++ b/games/xonotic/PLIST Fri May 14 09:48:59 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2019/10/01 12:32:26 nia Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/05/14 09:48:59 nia Exp $
bin/xonotic-dedicated
bin/xonotic-glx
bin/xonotic-sdl
@@ -19,6 +19,6 @@
share/xonotic/xonotic-linux-dedicated.sh
share/xonotic/xonotic-linux-glx.sh
share/xonotic/xonotic-linux-sdl.sh
-share/xonotic/xonotic-linux32-dedicated
-share/xonotic/xonotic-linux32-glx
-share/xonotic/xonotic-linux32-sdl
+share/xonotic/xonotic-${FAKE_PLATFORM}-dedicated
+share/xonotic/xonotic-${FAKE_PLATFORM}-glx
+share/xonotic/xonotic-${FAKE_PLATFORM}-sdl
Home |
Main Index |
Thread Index |
Old Index