summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortron <tron>2001-12-17 07:10:15 +0000
committertron <tron>2001-12-17 07:10:15 +0000
commit6d446a0248148bcf261c036da181f08cf0e997fb (patch)
tree9816dc89d365be0b84e0eee6543248acbca670f6 /emulators
parent02fa7f6e9d7824212531a90380d1bcced5a058e9 (diff)
downloadpkgsrc-6d446a0248148bcf261c036da181f08cf0e997fb.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} \