mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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>
This commit is contained in:
parent
3fd141a34b
commit
a02dce100e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378629
2 changed files with 14 additions and 0 deletions
|
@ -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>
|
||||
|
|
10
net/p5-IO-Interface/files/patch-Build.PL
Normal file
10
net/p5-IO-Interface/files/patch-Build.PL
Normal file
|
@ -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();
|
Loading…
Add table
Reference in a new issue