summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-01-24 16:37:19 +0000
committerryoon <ryoon@pkgsrc.org>2014-01-24 16:37:19 +0000
commite1b4e3e6127dad12f0659f071ec58fa39ee890be (patch)
treef16977721d1f1098238bccf682aa90e54532c225 /lang/perl5
parent18e82e61aae35fe299aeee6d94831587dabae897 (diff)
downloadpkgsrc-e1b4e3e6127dad12f0659f071ec58fa39ee890be.tar.gz
Fix OpenBSD 5.3 build and supress warning under OpenBSD 5.4
* OpenBSD has no libdb like NetBSD
Diffstat (limited to 'lang/perl5')
-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} = [''];