summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-05-20 12:38:25 +0000
committerobache <obache@pkgsrc.org>2014-05-20 12:38:25 +0000
commit04822ca9df43060c73eba6aa1c7cfff64fbb6767 (patch)
treed4af63023043d43fcf68c8adfbe30732229a3ab9 /emulators
parent70c680a6ebd1715c914c820b3c29a63d7b9e9327 (diff)
downloadpkgsrc-04822ca9df43060c73eba6aa1c7cfff64fbb6767.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