summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-12-17 07:10:15 +0000
committertron <tron@pkgsrc.org>2001-12-17 07:10:15 +0000
commit95a6140a5bd5dac1760d31ce7df24e236137051c (patch)
tree9816dc89d365be0b84e0eee6543248acbca670f6 /emulators
parent42d2b5a918c9f0bc6b0a72e001c0d9f9268f2c79 (diff)
downloadpkgsrc-95a6140a5bd5dac1760d31ce7df24e236137051c.tar.gz
Fix (again) build problems on systems where the "libusb" package is
installed.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xmame/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile
index f803a2a4bfb..517d6cf7a49 100644
--- a/emulators/xmame/Makefile
+++ b/emulators/xmame/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2001/12/04 05:52:22 jlam Exp $
+# $NetBSD: Makefile,v 1.59 2001/12/17 07:10:15 tron Exp $
#
DISTNAME= xmame-0.56.1
@@ -107,6 +107,12 @@ post-configure:
${SED} -e "s|@ROMPATH@|${ROMPATH}|g" \
-e "s|@SPOOLDIR@|${SPOOLDIR}|g" \
${TARGET}rc.dist > ${TARGET}rc
+.if ${MAKE_FLAGS:M*USB*} != ""
+ ${LN} -fs /usr/include/usb.h ${BUILDLINK_DIR}/include
+ for FILE in /usr/lib/libusb*; do \
+ ${LN} -fs $$FILE ${BUILDLINK_DIR}/lib; \
+ done
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${TARGET}.${MAME_DISP_METHOD} \