summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-03-07 08:47:06 +0000
committerjmc <jmc@pkgsrc.org>2003-03-07 08:47:06 +0000
commit7f1cc470e5f125a9e277d6b5eb5331262d04177b (patch)
tree521ce6ad64aed18e05520395da9b7defbeb67ace /emulators
parent8c2aead1de424c7d1a12b5cc9a61b41620420087 (diff)
downloadpkgsrc-7f1cc470e5f125a9e277d6b5eb5331262d04177b.tar.gz
Port to ports other than x86:
1. Only use the raze library on x86 (since it's x86 assembly). For all others include the cmz80 library instead. 2. Check endianness and set defines needed based on it.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/generator/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/emulators/generator/Makefile b/emulators/generator/Makefile
index 2bf64778260..aab8bd0ba74 100644
--- a/emulators/generator/Makefile
+++ b/emulators/generator/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2002/08/27 18:32:13 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2003/03/07 08:47:06 jmc Exp $
#
DISTNAME= generator-0.34
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://www.squish.net/generator/files/
@@ -13,7 +13,19 @@ COMMENT= Sega Mega drive genesis emulator
USE_BUILDLINK2= # defined
USE_X11= # defined
GNU_CONFIGURE= # defined
+
+.if (${MACHINE_ARCH} == "i386")
CONFIGURE_ARGS+= --with-gtk --with-raze
+.else
+CONFIGURE_ARGS+= --with-gtk --with-cmz80
+.endif
+
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DBYTES_HIGHFIRST
+.endif
+
.include "../../devel/SDL/buildlink2.mk"
.include "../../x11/gtk/buildlink2.mk"