diff --git a/games/openmortal/Makefile b/games/openmortal/Makefile index 8081762f52b6..a5db4d35feb6 100644 --- a/games/openmortal/Makefile +++ b/games/openmortal/Makefile @@ -1,22 +1,24 @@ # Created by: krion@FreeBSD.org PORTNAME= openmortal PORTVERSION= 0.7 PORTREVISION= 13 CATEGORIES= games MASTER_SITES= SF MAINTAINER= amdmi3@FreeBSD.org 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 PLIST_FILES= bin/${PORTNAME} PORTDATA= * +BINARY_ALIAS= freetype-config=true + .include diff --git a/games/openmortal/files/patch-configure b/games/openmortal/files/patch-configure new file mode 100644 index 000000000000..a7680ba7d5b0 --- /dev/null +++ b/games/openmortal/files/patch-configure @@ -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/'`