git: 0e6688a40ed8 - main - games/brutalchess: prepare for freetype2 update
Tobias C. Berner
tcberner at FreeBSD.org
Fri Aug 6 12:19:13 UTC 2021
The branch main has been updated by tcberner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0e6688a40ed805ec4f505b76f5bfa6b693a657ae
commit 0e6688a40ed805ec4f505b76f5bfa6b693a657ae
Author: Tobias C. Berner <tcberner at FreeBSD.org>
AuthorDate: 2021-08-06 12:17:00 +0000
Commit: Tobias C. Berner <tcberner at FreeBSD.org>
CommitDate: 2021-08-06 12:18:56 +0000
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
---
games/brutalchess/Makefile | 3 ++-
games/brutalchess/files/patch-configure | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
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/'`
More information about the dev-commits-ports-all
mailing list