diff options
author | tron <tron> | 1998-08-23 19:25:40 +0000 |
---|---|---|
committer | tron <tron> | 1998-08-23 19:25:40 +0000 |
commit | 59cae199010ce880df0a470394f1279d35067457 (patch) | |
tree | 4355775bbced9430bde43a81aaaf8b4f03ed233d /emulators | |
parent | 189241d373ee68f955af329c92633369c8876681 (diff) | |
download | pkgsrc-59cae199010ce880df0a470394f1279d35067457.tar.gz |
Activate joystick supports on all ports which have it not only on i386.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/xmame/Makefile | 10 | ||||
-rw-r--r-- | emulators/xmame/patches/patch-aa | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile index 8f2c8eca1b2..465fdb77b2b 100644 --- a/emulators/xmame/Makefile +++ b/emulators/xmame/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 1998/08/20 15:16:53 tsarna Exp $ +# $NetBSD: Makefile,v 1.12 1998/08/23 19:25:40 tron Exp $ # DISTNAME= xmame-0.33b6.1 @@ -18,9 +18,15 @@ USE_X11= yes USE_GMAKE= yes MAKE_ENV+= OPSYS=${OPSYS} ARCH=${ARCH} DESTDIR=${DESTDIR} \ INSTALL_MAN="${INSTALL_MAN}" \ - INSTALL_PROGRAM="${INSTALL_PROGRAM}" + INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + NETBSD_JOYSTICK="${NETBSD_JOYSTICK}" MAMEDIR= ${PREFIX}/share/mame +.if exists(/usr/include/machine/joystick.h) +NETBSD_JOYSTICK= yes +.else +NETBSD_JOYSTICK= no +.endif post-patch: ${CP} ${WRKSRC}/makefile.unix ${WRKSRC}/Makefile diff --git a/emulators/xmame/patches/patch-aa b/emulators/xmame/patches/patch-aa index cbde9b51e76..adc7cdcb5f4 100644 --- a/emulators/xmame/patches/patch-aa +++ b/emulators/xmame/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.7 1998/08/07 10:40:37 agc Exp $ +$NetBSD: patch-aa,v 1.8 1998/08/23 19:25:40 tron Exp $ --- makefile.unix.orig Wed Jun 17 06:07:13 1998 +++ makefile.unix Thu Jul 23 05:34:54 1998 @@ -16,7 +16,7 @@ $NetBSD: patch-aa,v 1.7 1998/08/07 10:40:37 agc Exp $ # *** To disable joystick support comment next line -# JOY = -DUSE_JOYSTICK -+ifeq (${MACHINE},i386) ++ifeq (${NETBSD_JOYSTICK},yes) +JOY = -DUSE_JOYSTICK +endif @@ -27,7 +27,7 @@ $NetBSD: patch-aa,v 1.7 1998/08/07 10:40:37 agc Exp $ # On iX86 based OS's, if supported, you can use standard joystick driver -# JS = -DI386_JOYSTICK -+ifeq (${MACHINE},i386) ++ifeq (${NETBSD_JOYSTICK},yes) +JS = -DI386_JOYSTICK +endif |