summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorryoon <ryoon>2014-01-24 16:37:19 +0000
committerryoon <ryoon>2014-01-24 16:37:19 +0000
commitf7da024e6d1ad98740c272a0adf90f2dc66ac3b6 (patch)
treef16977721d1f1098238bccf682aa90e54532c225 /lang
parent111e5983539caf3b2c4fb8cfd969e92a4ba2b354 (diff)
downloadpkgsrc-f7da024e6d1ad98740c272a0adf90f2dc66ac3b6.tar.gz
Fix OpenBSD 5.3 build and supress warning under OpenBSD 5.4
* OpenBSD has no libdb like NetBSD
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile4
-rw-r--r--lang/perl5/files/cpan-DB_File-hints-openbsd.pl6
2 files changed, 9 insertions, 1 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 84221cbcc90..0b90e929aed 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.215 2014/01/13 09:59:16 adam Exp $
+# $NetBSD: Makefile,v 1.216 2014/01/24 16:37:19 ryoon Exp $
.include "license.mk"
.include "Makefile.common"
@@ -281,6 +281,8 @@ post-extract:
cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh
cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \
${WRKSRC}/cpan/DB_File/hints/netbsd.pl
+ cp ${FILESDIR}/cpan-DB_File-hints-openbsd.pl \
+ ${WRKSRC}/cpan/DB_File/hints/openbsd.pl
pre-configure:
cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \;
diff --git a/lang/perl5/files/cpan-DB_File-hints-openbsd.pl b/lang/perl5/files/cpan-DB_File-hints-openbsd.pl
new file mode 100644
index 00000000000..1a79a39bda8
--- /dev/null
+++ b/lang/perl5/files/cpan-DB_File-hints-openbsd.pl
@@ -0,0 +1,6 @@
+# $NetBSD: cpan-DB_File-hints-openbsd.pl,v 1.1 2014/01/24 16:37:19 ryoon Exp $
+
+# cpan/DB_File:
+# OpenBSD does not provide -ldb, so avoid linking to it
+
+$self->{LIBS} = [''];