aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 12:17:00 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 12:18:56 +0000
commit0e6688a40ed805ec4f505b76f5bfa6b693a657ae (patch)
tree01af0053f1e7b44b02a03e2124c4fa584f59c59b
parenta6ff91e17a65e7c43e158fe7c3ebe0c4228e66fc (diff)
downloadports-0e6688a40ed805ec4f505b76f5bfa6b693a657ae.tar.gz
ports-0e6688a40ed805ec4f505b76f5bfa6b693a657ae.zip
games/brutalchess: 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
-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/'`