summaryrefslogtreecommitdiff
path: root/emulators/generator
diff options
context:
space:
mode:
authorjmc <jmc>2003-03-07 08:47:06 +0000
committerjmc <jmc>2003-03-07 08:47:06 +0000
commit34488ab65f15b4d0798d25d668a368873b93125b (patch)
tree521ce6ad64aed18e05520395da9b7defbeb67ace /emulators/generator
parent6b83af53835a31c2650fd2d93bfe10fd6e4194fc (diff)
downloadpkgsrc-34488ab65f15b4d0798d25d668a368873b93125b.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/generator')
-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"