summaryrefslogtreecommitdiff
path: root/emulators/snes9x/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/snes9x/Makefile')
-rw-r--r--emulators/snes9x/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/emulators/snes9x/Makefile b/emulators/snes9x/Makefile
index ee92a34f89f..991a353b11c 100644
--- a/emulators/snes9x/Makefile
+++ b/emulators/snes9x/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2002/07/08 01:04:09 kristerw Exp $
+# $NetBSD: Makefile,v 1.10 2002/07/14 07:44:43 kristerw Exp $
DISTNAME= s9xs139
PKGNAME= snes9x-1.39
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/release
CATEGORIES= emulators
MASTER_SITES= http://www.snes9x.com/zips/
@@ -53,5 +54,12 @@ MAKE_ENV+= ASMKREED=1
MAKE_ENV+= NETBSD_USE_DGA=1
.endif
+.if exists(/usr/include/usb.h) || exists(/usr/include/usbhid.h)
+MAKE_ENV+= USBJOY=1
+.if exists(/usr/include/usbhid.h)
+MAKE_ENV+= USBHID_H=1
+.endif
+.endif
+
.include "../../mk/pthread.buildlink.mk"
.include "../../mk/bsd.pkg.mk"