mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +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:
parent
759649a5b0
commit
63c8147ee1
@ -11,7 +11,7 @@ COMMENT= Parody of the once popular coin-up fighting game, Mortal Kombat
|
|||||||
|
|
||||||
LIB_DEPENDS= libfreetype.so:print/freetype2
|
LIB_DEPENDS= libfreetype.so:print/freetype2
|
||||||
|
|
||||||
USES= dos2unix perl5 sdl tar:bzip2
|
USES= dos2unix perl5 pkgconfig sdl tar:bzip2
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
USE_SDL= mixer image sdl net
|
USE_SDL= mixer image sdl net
|
||||||
DOS2UNIX_FILES= src/gfx.cpp
|
DOS2UNIX_FILES= src/gfx.cpp
|
||||||
@ -19,4 +19,6 @@ DOS2UNIX_FILES= src/gfx.cpp
|
|||||||
PLIST_FILES= bin/${PORTNAME}
|
PLIST_FILES= bin/${PORTNAME}
|
||||||
PORTDATA= *
|
PORTDATA= *
|
||||||
|
|
||||||
|
BINARY_ALIAS= freetype-config=true
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
21
games/openmortal/files/patch-configure
Normal file
21
games/openmortal/files/patch-configure
Normal 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/'`
|
Loading…
Reference in New Issue
Block a user