diff options
author | nia <nia@pkgsrc.org> | 2021-05-14 09:48:59 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-05-14 09:48:59 +0000 |
commit | 38839250a9b6670ec222a2f334cf38beff1c56a7 (patch) | |
tree | f2e02ebf1e7e06ec3abbf49b711e946ccabd048e | |
parent | 6d1d91c1bb6d99125bb5e2674fef05fa5ff5b5df (diff) | |
download | pkgsrc-38839250a9b6670ec222a2f334cf38beff1c56a7.tar.gz |
xonotic: work around silly PLIST
-rw-r--r-- | games/xonotic/Makefile | 11 | ||||
-rw-r--r-- | games/xonotic/PLIST | 8 |
2 files changed, 13 insertions, 6 deletions
diff --git a/games/xonotic/Makefile b/games/xonotic/Makefile index 6b67a22496c..1261080cd49 100644 --- a/games/xonotic/Makefile +++ b/games/xonotic/Makefile @@ -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 @@ INSTALL_ENV+= LIBDIR=${PREFIX}/share/xonotic 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 @@ post-install: ${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 --git a/games/xonotic/PLIST b/games/xonotic/PLIST index d110ff76efd..3fc39d7f19a 100644 --- a/games/xonotic/PLIST +++ b/games/xonotic/PLIST @@ -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/data/xonotic-20170401-nexcompat.pk3 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 |