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
main
Ryan Steinmetz 2024-04-18 09:20:12 -04:00
parent 928d9a6f1a
commit 5436d77522
No known key found for this signature in database
GPG Key ID: 1EF8BA6BD02846D7
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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(
},
}
);