Skip to content
Snippets Groups Projects
Commit 67750f70 authored by Tobias C. Berner's avatar Tobias C. Berner
Browse files

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
parent d8f6dd55
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment