From e1b4e3e6127dad12f0659f071ec58fa39ee890be Mon Sep 17 00:00:00 2001 From: ryoon Date: Fri, 24 Jan 2014 16:37:19 +0000 Subject: Fix OpenBSD 5.3 build and supress warning under OpenBSD 5.4 * OpenBSD has no libdb like NetBSD --- lang/perl5/Makefile | 4 +++- lang/perl5/files/cpan-DB_File-hints-openbsd.pl | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 lang/perl5/files/cpan-DB_File-hints-openbsd.pl (limited to 'lang/perl5') 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} = ['']; -- cgit v1.2.3