git: 67750f700941 - main - print/p5-Font-FreeType: prepare for freetype2 update
Tobias C. Berner
tcberner at FreeBSD.org
Sat Aug 7 09:32:18 UTC 2021
The branch main has been updated by tcberner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=67750f70094193b7ff6f7d6d4a0d39a71ed0d1a8
commit 67750f70094193b7ff6f7d6d4a0d39a71ed0d1a8
Author: Tobias C. Berner <tcberner at FreeBSD.org>
AuthorDate: 2021-08-07 09:26:56 +0000
Commit: Tobias C. Berner <tcberner at FreeBSD.org>
CommitDate: 2021-08-07 09:32:05 +0000
print/p5-Font-FreeType: prepare for freetype2 update
- freetype2 will no longer ship freetype-config (which was a pkg-config
wrapper) in the near future -- use pkg-config to gather the required
flags.
PR: 251512
---
print/p5-Font-FreeType/Makefile | 4 +++-
print/p5-Font-FreeType/files/patch-Makefile.PL | 13 +++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/print/p5-Font-FreeType/Makefile b/print/p5-Font-FreeType/Makefile
index 355d62ba2a82..b22817171b96 100644
--- a/print/p5-Font-FreeType/Makefile
+++ b/print/p5-Font-FreeType/Makefile
@@ -14,9 +14,11 @@ BUILD_DEPENDS= p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib \
LIB_DEPENDS= libfreetype.so:print/freetype2
TEST_DEPENDS= p5-Test-Warnings>=0:devel/p5-Test-Warnings
-USES= perl5
+USES= perl5 pkgconfig
USE_PERL5= configure
+BINARY_ALIAS= freetype-config=true
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Font/FreeType/FreeType.so
diff --git a/print/p5-Font-FreeType/files/patch-Makefile.PL b/print/p5-Font-FreeType/files/patch-Makefile.PL
new file mode 100644
index 000000000000..8da51e775af9
--- /dev/null
+++ b/print/p5-Font-FreeType/files/patch-Makefile.PL
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig 2021-08-07 09:25:46 UTC
++++ Makefile.PL
+@@ -9,8 +9,8 @@ my $config; # store various configurations to check
+
+ # use the pkg-config wrapper for FreeType
+ if( which('freetype-config') ) {
+- chomp($config->{ft_config}{LIBS} = `freetype-config --libs`);
+- chomp($config->{ft_config}{INC} = `freetype-config --cflags`);
++ chomp($config->{ft_config}{LIBS} = `pkg-config freetype2 --libs`);
++ chomp($config->{ft_config}{INC} = `pkg-config freetype2 --cflags`);
+ }
+
+ # default configuration
More information about the dev-commits-ports-all
mailing list