summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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