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 @@ -1,23 +1,25 @@ PORTNAME= Font-FreeType PORTVERSION= 0.07 CATEGORIES= print perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Perl extension to read font files and render glyphs using FreeType2 LICENSE= ARTPERL10 BUILD_DEPENDS= p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib \ p5-File-Which>=0:sysutils/p5-File-Which 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 .include 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