summaryrefslogtreecommitdiff
path: root/misc/libcdio
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-05-11 05:08:03 +0000
committerminskim <minskim@pkgsrc.org>2004-05-11 05:08:03 +0000
commitc93f37242761ee42fd464bbd6e15e35edfd12bf2 (patch)
tree2010510e8909d910830df542229b0cfb0bbe79e7 /misc/libcdio
parent61bfa8cc254ff3c38859fa1327591ee7363edf91 (diff)
downloadpkgsrc-c93f37242761ee42fd464bbd6e15e35edfd12bf2.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"