Fri Sep 10 11:30:05 2021 UTC ()
xonotic: Fix building on i386


(nia)
diff -r1.9 -r1.10 pkgsrc/games/xonotic/Makefile

cvs diff -r1.9 -r1.10 pkgsrc/games/xonotic/Makefile (expand / switch to unified diff)

--- pkgsrc/games/xonotic/Makefile 2021/09/08 21:05:10 1.9
+++ pkgsrc/games/xonotic/Makefile 2021/09/10 11:30:05 1.10
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.9 2021/09/08 21:05:10 nia Exp $ 1# $NetBSD: Makefile,v 1.10 2021/09/10 11:30:05 nia Exp $
2 2
3DISTNAME= xonotic-0.8.2 3DISTNAME= xonotic-0.8.2
4PKGREVISION= 4 4PKGREVISION= 4
5CATEGORIES= games 5CATEGORIES= games
6MASTER_SITES= https://dl.xonotic.org/ 6MASTER_SITES= https://dl.xonotic.org/
7EXTRACT_SUFX= .zip 7EXTRACT_SUFX= .zip
8 8
9MAINTAINER= cfkoch@edgebsd.org 9MAINTAINER= cfkoch@edgebsd.org
10HOMEPAGE= https://xonotic.org/ 10HOMEPAGE= https://xonotic.org/
11COMMENT= Fast arena-style FPS 11COMMENT= Fast arena-style FPS
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14USE_TOOLS+= gmake gsed 7za bash zip 14USE_TOOLS+= gmake gsed 7za bash zip
@@ -22,26 +22,30 @@ BUILD_TARGET= all-zip-source @@ -22,26 +22,30 @@ BUILD_TARGET= all-zip-source
22INSTALL_TARGET= install-data-zip-source install-engine-zip-source install-links 22INSTALL_TARGET= install-data-zip-source install-engine-zip-source install-links
23INSTALL_ENV+= LIBDIR=${PREFIX}/share/xonotic 23INSTALL_ENV+= LIBDIR=${PREFIX}/share/xonotic
24 24
25ICON_SIZES= 16 24 32 64 128 256 512 25ICON_SIZES= 16 24 32 64 128 256 512
26 26
27.include "../../mk/bsd.prefs.mk" 27.include "../../mk/bsd.prefs.mk"
28 28
29.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) 29.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
30PLIST_SUBST+= FAKE_PLATFORM="linux64" 30PLIST_SUBST+= FAKE_PLATFORM="linux64"
31.else 31.else
32PLIST_SUBST+= FAKE_PLATFORM="linux32" 32PLIST_SUBST+= FAKE_PLATFORM="linux32"
33.endif 33.endif
34 34
 35.if ${MACHINE_ARCH} == "i386"
 36CFLAGS+= -msse
 37.endif
 38
35INSTALLATION_DIRS+= share/applications 39INSTALLATION_DIRS+= share/applications
36.for s in ${ICON_SIZES} 40.for s in ${ICON_SIZES}
37INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps 41INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps
38.endfor 42.endfor
39 43
40post-install: 44post-install:
41 ${INSTALL_DATA} ${FILESDIR}/xonotic.desktop \ 45 ${INSTALL_DATA} ${FILESDIR}/xonotic.desktop \
42 ${DESTDIR}${PREFIX}/share/applications 46 ${DESTDIR}${PREFIX}/share/applications
43.for s in ${ICON_SIZES} 47.for s in ${ICON_SIZES}
44 ${INSTALL_DATA} ${WRKSRC}/misc/logos/icons_png/xonotic_${s}.png \ 48 ${INSTALL_DATA} ${WRKSRC}/misc/logos/icons_png/xonotic_${s}.png \
45 ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/xonotic.png 49 ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/xonotic.png
46.endfor 50.endfor
47 51