summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-21 12:49:55 +0000
committerjlam <jlam>2002-09-21 12:49:55 +0000
commitb99d3390bed32084638e2533d8f6b3c77852f316 (patch)
tree88224485e345c66f7298a9eff29a15f18ec5f8a2 /emulators
parent4846c36354a2c8da68ec3be0ac002825a99b9c1b (diff)
downloadpkgsrc-b99d3390bed32084638e2533d8f6b3c77852f316.tar.gz
buildlink1 -> buildlink2
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xmame/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile
index b73c8b6ebcf..655a1cffb8d 100644
--- a/emulators/xmame/Makefile
+++ b/emulators/xmame/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2002/06/25 09:21:35 cjep Exp $
+# $NetBSD: Makefile,v 1.78 2002/09/21 12:53:48 jlam Exp $
#
DISTNAME= xmame-0.60.1
@@ -15,6 +15,7 @@ RESTRICTED= "selling is not allowed"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+USE_BUILDLINK2= YES
USE_X11BASE= YES
USE_GMAKE= YES
MAKEFILE= makefile.unix
@@ -24,16 +25,15 @@ UNLIMIT_RESOURCES= datasize
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "arm32" || ${MACHINE_ARCH} == "arm")
-.if (${CFLAGS:M-O2} == "-O2")
+. if (${CFLAGS:M-O2} == "-O2")
CFLAGS:= ${CFLAGS:S/-O2/-O0/}
-.endif
+. endif
.endif
ROMPATH= ${PREFIX}/share/${TARGET}
SPOOLDIR= /var/games/${TARGET}
MAKE_FLAGS+= TARGET="${TARGET:S/x//}"
-MAKE_FLAGS+= CC="${CC}"
MAKE_FLAGS+= LIBS="${LDFLAGS} ${LIBS}"
MAKE_FLAGS+= CFLAGS="${CFLAGS}"
MAKE_FLAGS+= X11INC= X11LIB=
@@ -86,10 +86,10 @@ post-configure:
${SED} -e "s|@ROMPATH@|${ROMPATH}|g" \
-e "s|@SPOOLDIR@|${SPOOLDIR}|g" \
xmamerc.dist > ${TARGET}rc
-.if ${MAKE_FLAGS:M*USB*} != ""
+.if !empty(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; \
+ ${LN} -fs $$FILE ${BUILDLINK_DIR}/lib; \
done
.endif
@@ -101,7 +101,6 @@ do-install:
${INSTALL_DATA_DIR} ${ROMPATH}
${INSTALL_DATA} ${WRKSRC}/doc/${TARGET}rc ${ROMPATH}/${TARGET}rc
-.include "../../graphics/xpm/buildlink.mk"
-.include "../../mk/x11.buildlink.mk"
+.include "../../graphics/xpm/buildlink2.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"