summaryrefslogtreecommitdiff
path: root/misc/libcdio
diff options
context:
space:
mode:
authorminskim <minskim>2004-05-11 05:08:03 +0000
committerminskim <minskim>2004-05-11 05:08:03 +0000
commit4d5dfe046332719014332e36b0fed0db04215f90 (patch)
tree2010510e8909d910830df542229b0cfb0bbe79e7 /misc/libcdio
parentc9bf9d98673a5d514ba7088ba03f7b3428a93408 (diff)
downloadpkgsrc-4d5dfe046332719014332e36b0fed0db04215f90.tar.gz
Add a NetBSD-specific file (${FILESDIR}/_cdio_netbsd.c) only on
NetBSD; this file doesn't compile on other platforms, at least not on Linux.
Diffstat (limited to 'misc/libcdio')
-rw-r--r--misc/libcdio/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/libcdio/Makefile b/misc/libcdio/Makefile
index d4c7b9bc379..61ed2d68a6c 100644
--- a/misc/libcdio/Makefile
+++ b/misc/libcdio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2004/05/11 04:47:50 minskim Exp $
+# $NetBSD: Makefile,v 1.10 2004/05/11 05:08:03 minskim Exp $
#
DISTNAME= libcdio-0.68
@@ -17,9 +17,13 @@ PKGCONFIG_OVERRIDE+= libiso9660.pc.in
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-versioned-libs
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
# XXX we just replace the freebsd module so save patches
pre-patch:
${CP} ${FILESDIR}/_cdio_netbsd.c ${WRKSRC}/lib/_cdio_freebsd.c
+.endif
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"