summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorbrook <brook@pkgsrc.org>2011-09-17 18:51:35 +0000
committerbrook <brook@pkgsrc.org>2011-09-17 18:51:35 +0000
commit1c9e71b583b32c845f1e68192f0361b373f4ca74 (patch)
tree0cb28366847793dd314ee205b65295a8eca35ddd /lang/perl5
parent69527be7f5ea68d933bdea60db4e0660713d8682 (diff)
downloadpkgsrc-1c9e71b583b32c845f1e68192f0361b373f4ca74.tar.gz
The CPAN module DB_File tries to link against -ldb, but NetBSD does not
provide a separate library so compilation fails. Add a hints file to correct the list of libraries used on NetBSD.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/Makefile4
-rw-r--r--lang/perl5/files/cpan-DB_File-hints-netbsd.pl6
2 files changed, 9 insertions, 1 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index de31178e1c1..211d39fe42d 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.173 2011/08/05 18:06:14 adam Exp $
+# $NetBSD: Makefile,v 1.174 2011/09/17 18:51:35 brook Exp $
.include "license.mk"
.include "Makefile.common"
@@ -313,6 +313,8 @@ SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d"
post-extract:
cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh
+ cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \
+ ${WRKSRC}/cpan/DB_File/hints/netbsd.pl
pre-configure:
cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \;
diff --git a/lang/perl5/files/cpan-DB_File-hints-netbsd.pl b/lang/perl5/files/cpan-DB_File-hints-netbsd.pl
new file mode 100644
index 00000000000..aa2de3357cd
--- /dev/null
+++ b/lang/perl5/files/cpan-DB_File-hints-netbsd.pl
@@ -0,0 +1,6 @@
+# $NetBSD: cpan-DB_File-hints-netbsd.pl,v 1.1 2011/09/17 18:51:36 brook Exp $
+
+# cpan/DB_File:
+# NetBSD does not provide -ldb, so avoid linking to it
+
+$self->{LIBS} = [''];