aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2024-04-18 13:20:12 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2024-04-18 13:20:12 +0000
commit5436d77522b3844d07f3f58670eeb362394c75db (patch)
treeb48164e1c805684c4ca6a7931c7df91f2b1465d9
parent928d9a6f1a4c002bdcff722b89301ec493ab6bf5 (diff)
downloadports-5436d77522b3844d07f3f58670eeb362394c75db.tar.gz
ports-5436d77522b3844d07f3f58670eeb362394c75db.zip
archivers/p5-IO-Compress-Brotli: Unbreak port
ld-elf.so.1: /usr/local/lib/perl5/site_perl/mach/5.36/auto/IO/Compress/Brotli/Brotli.so: Undefined symbol "BrotliEncoderCreateInstance" - Bump PORTREVISION
-rw-r--r--archivers/p5-IO-Compress-Brotli/Makefile4
-rw-r--r--archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL7
2 files changed, 8 insertions, 3 deletions
diff --git a/archivers/p5-IO-Compress-Brotli/Makefile b/archivers/p5-IO-Compress-Brotli/Makefile
index 77f02e743b67..036fc853ba63 100644
--- a/archivers/p5-IO-Compress-Brotli/Makefile
+++ b/archivers/p5-IO-Compress-Brotli/Makefile
@@ -1,5 +1,6 @@
PORTNAME= IO-Compress-Brotli
PORTVERSION= 0.017000
+PORTREVISION= 1
CATEGORIES= archivers perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -18,6 +19,9 @@ RUN_DEPENDS= p5-File-Slurper>0:devel/p5-File-Slurper
USES= gmake localbase:ldflags perl5
USE_PERL5= configure
+post-patch:
+ ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Makefile.PL
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/IO/Compress/Brotli/Brotli.so
diff --git a/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL b/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL
index dd6fa50b45aa..86a24f2e2761 100644
--- a/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL
+++ b/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL
@@ -1,13 +1,13 @@
--- Makefile.PL.orig 2023-10-31 00:35:30 UTC
+++ Makefile.PL
-@@ -1,6 +1,5 @@ use ExtUtils::MakeMaker;
+@@ -1,6 +1,5 @@
use 5.014000;
use ExtUtils::MakeMaker;
-use Alien::cmake3;
use File::Spec::Functions qw/catfile/;
use Config;
-@@ -32,14 +31,6 @@ WriteMakefile(
+@@ -32,14 +31,7 @@ WriteMakefile(
'Getopt::Long' => '0',
'Time::HiRes' => '0',
},
@@ -19,10 +19,11 @@
- },
- INC => '-Ibrotli/c/include',
- MYEXTLIB => $myextlib,
++ LIBS => ['-L%%LOCALBASE%%/lib -lbrotlienc -lbrotlidec -lbrotlicommon'],
clean => { FILES => "brotli/Makefile $myextlib brotli/CMakeCache.txt brotli/CMakeFiles/* brotli/CTestTestfile.cmake brotli/DartConfiguration.tcl brotli/brotli* brotli/cmake_install.cmake brotli/libbrotlicommon.pc brotli/libbrotlidec.pc brotli/libbrotlienc.pc" },
META_ADD => {
dynamic_config => 0,
-@@ -48,12 +39,3 @@ WriteMakefile(
+@@ -48,12 +40,3 @@ WriteMakefile(
},
}
);