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