pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/orbital_eunuchs_sniper Use uname -m output for N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4efd6d578671
branches:  trunk
changeset: 650141:4efd6d578671
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Apr 18 20:43:19 2015 +0000

description:
Use uname -m output for NetBSD/ARM in the PLIST as the package does.

diffstat:

 games/orbital_eunuchs_sniper/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dfc5387e43bf -r 4efd6d578671 games/orbital_eunuchs_sniper/Makefile
--- a/games/orbital_eunuchs_sniper/Makefile     Sat Apr 18 20:42:39 2015 +0000
+++ b/games/orbital_eunuchs_sniper/Makefile     Sat Apr 18 20:43:19 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2012/10/06 11:54:49 asau Exp $
+# $NetBSD: Makefile,v 1.23 2015/04/18 20:43:19 joerg Exp $
 #
 
 DISTNAME=              orbital_eunuchs_sniper-1.30
@@ -24,11 +24,15 @@
 .include "../../mk/bsd.prefs.mk"
 
 .if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} != "DragonFly"
-PLIST_SUBST+=          CPU=amd64
+CPU=                   amd64
+.elif ${OPSYS} == "NetBSD" && ${MACHINE_CPU:U} == "arm"
+CPU!=                  uname -m
 .else
-PLIST_SUBST+=          CPU=${MACHINE_ARCH}
+CPU=                   ${MACHINE_ARCH}
 .endif
 
+PLIST_SUBST+=          CPU=${CPU:Q}
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/README \
                ${DESTDIR}${PREFIX}/share/doc/orbital_eunuchs_sniper



Home | Main Index | Thread Index | Old Index