summaryrefslogtreecommitdiff
path: root/net/p5-IO-Interface
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-02-08 03:20:09 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-02-08 03:20:09 +0000
commita02dce100e10cfa84feadb37efcbbd3627399d94 (patch)
tree385af0c895d3c63a375082938dd0ca0f3d3390f8 /net/p5-IO-Interface
parentupdate to 4.1.1 (diff)
net/p5-IO-Interface: fix build on FreeBSD
Build.PL wasn't checking if it was being built on FreeBSD, OpenBSD or NetBSD. Or testing for the presence of two headerfiles. So, the compile was missing 3 compiler flags (DEFINES). PR: 197404 Submitted by: Lawrence Chen <beastie@tardisi.com>
Notes
Notes: svn path=/head/; revision=378629
Diffstat (limited to 'net/p5-IO-Interface')
-rw-r--r--net/p5-IO-Interface/Makefile4
-rw-r--r--net/p5-IO-Interface/files/patch-Build.PL10
2 files changed, 14 insertions, 0 deletions
diff --git a/net/p5-IO-Interface/Makefile b/net/p5-IO-Interface/Makefile
index 7697092c16fc..69fb8526e825 100644
--- a/net/p5-IO-Interface/Makefile
+++ b/net/p5-IO-Interface/Makefile
@@ -3,6 +3,7 @@
PORTNAME= IO-Interface
PORTVERSION= 1.09
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -16,4 +17,7 @@ LICENSE_COMB= dual
USES= perl5
USE_PERL5= modbuild
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/IO/Interface/Interface.so
+
.include <bsd.port.mk>
diff --git a/net/p5-IO-Interface/files/patch-Build.PL b/net/p5-IO-Interface/files/patch-Build.PL
new file mode 100644
index 000000000000..713ece32177f
--- /dev/null
+++ b/net/p5-IO-Interface/files/patch-Build.PL
@@ -0,0 +1,10 @@
+--- Build.PL.orig 2014-12-09 10:41:30.000000000 -0600
++++ Build.PL 2015-02-06 08:31:48.718810053 -0600
+@@ -15,6 +15,7 @@
+ requires => {
+ 'perl' => '5.005',
+ },
++ extra_compiler_flags => '-D__USE_BSD -DUSE_GETIFADDRS -DHAVE_SOCKADDR_DL_STRUCT',
+ );
+
+ $build->create_build_script();