summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorobache <obache>2014-05-20 12:38:25 +0000
committerobache <obache>2014-05-20 12:38:25 +0000
commitf88d4cebac16e5b8c47e23885011b33d73e18286 (patch)
tree223790405843c3bdb5b4d22aa61af6310e857849 /emulators
parent9445d7e6fe42379d0763de9beab563a4ced14484 (diff)
downloadpkgsrc-f88d4cebac16e5b8c47e23885011b33d73e18286.tar.gz
Set big_endian flag for the case MACHINE_ENDIAN=big.
Fixes big-endian runtime failure, PR pkg/48823. Bump PKGREVISION.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xtrs/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/emulators/xtrs/Makefile b/emulators/xtrs/Makefile
index 292fe138587..d9823362112 100644
--- a/emulators/xtrs/Makefile
+++ b/emulators/xtrs/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2014/05/20 12:33:18 obache Exp $
+# $NetBSD: Makefile,v 1.26 2014/05/20 12:38:25 obache Exp $
#
DISTNAME= xtrs-4.9d
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://www.tim-mann.org/trs80/
@@ -44,6 +44,12 @@ SUBST_SED.termcap+= -e 's|-lncurses||'
SUBST_SED.termcap+= -e 's|-lncurses|${BUILDLINK_LDADD.termcap}|'
.endif
+.include "../../mk/endian.mk"
+# see ${WRKSRC}/Makefile.local
+.if ${MACHINE_ENDIAN} == "big"
+MAKE_FLAGS+= ENDIAN=-Dbig_endian
+.endif
+
INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
INSTALLATION_DIRS= bin lib/xtrs ${PKGMANDIR}/man1 share/doc/xtrs share/xtrs