aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/brutalchess/Makefile3
-rw-r--r--games/brutalchess/files/patch-configure21
2 files changed, 23 insertions, 1 deletions
diff --git a/games/brutalchess/Makefile b/games/brutalchess/Makefile
index 644a47aba27d..0b2678623b3a 100644
--- a/games/brutalchess/Makefile
+++ b/games/brutalchess/Makefile
@@ -15,11 +15,12 @@ COMMENT= Nice looking OpenGL chess game
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
-USES= dos2unix gl gmake libtool sdl xorg
+USES= dos2unix gl gmake libtool pkgconfig sdl xorg
USE_GL= yes
USE_SDL= sdl image
USE_XORG= x11 xext xt xmu xi
INSTALL_TARGET= install-strip
+BINARY_ALIAS= freetype-config=true
pre-build:
${CHMOD} 0755 ${WRKSRC}/install-sh
diff --git a/games/brutalchess/files/patch-configure b/games/brutalchess/files/patch-configure
new file mode 100644
index 000000000000..cd5ce6453ab3
--- /dev/null
+++ b/games/brutalchess/files/patch-configure
@@ -0,0 +1,21 @@
+--- configure.orig 2021-08-06 12:14:42 UTC
++++ configure
+@@ -7998,13 +7998,13 @@ echo $ECHO_N "checking for FreeType -- version >= $min
+ 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/'`