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
commit8a1bf7e36496989b70f26652a5dcab695d8d540e (patch)
treed4af63023043d43fcf68c8adfbe30732229a3ab9 /emulators
parente69b9240a801ef2d395b0f1d0e886d4f7638644e (diff)
downloadpkgsrc-8a1bf7e36496989b70f26652a5dcab695d8d540e.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