1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

games/openmortal: 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
This commit is contained in:
Tobias C. Berner 2021-08-06 15:34:24 +02:00
parent 759649a5b0
commit 63c8147ee1
2 changed files with 24 additions and 1 deletions

View File

@ -11,7 +11,7 @@ COMMENT= Parody of the once popular coin-up fighting game, Mortal Kombat
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= dos2unix perl5 sdl tar:bzip2
USES= dos2unix perl5 pkgconfig sdl tar:bzip2
GNU_CONFIGURE= yes
USE_SDL= mixer image sdl net
DOS2UNIX_FILES= src/gfx.cpp
@ -19,4 +19,6 @@ DOS2UNIX_FILES= src/gfx.cpp
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
BINARY_ALIAS= freetype-config=true
.include <bsd.port.mk>

View File

@ -0,0 +1,21 @@
--- configure.orig 2021-08-06 13:30:20 UTC
+++ configure
@@ -1685,13 +1685,13 @@ no_ft=""
if test "$FT2_CONFIG" = "no" ; then
no_ft=yes
else
- FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
- FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
- ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
+ FT2_CFLAGS=`pkg-config freetype2 --cflags`
+ FT2_LIBS=`pkg-config freetype2 --libs`
+ ft_config_major_version=`pkg-config freetype2 --modversion | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
- ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
+ ft_config_minor_version=`pkg-config freetype2 --modversion | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
- ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
+ ft_config_micro_version=`pkg-config freetype2 --modversion | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
ft_min_major_version=`echo $min_ft_version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`