aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 14:27:54 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 14:29:54 +0000
commit950ca76de36ae7b413c90eacd787bf6a2978aff5 (patch)
tree6529bf950d1dc3602a2d9a0a0fad08c91cc37c72
parentebec65d5759b72f45c99d6125d59e06ae774b70c (diff)
downloadports-950ca76de36ae7b413c90eacd787bf6a2978aff5.tar.gz
ports-950ca76de36ae7b413c90eacd787bf6a2978aff5.zip
games/ponscripter-sekai: 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/ponscripter-sekai/Makefile2
-rw-r--r--games/ponscripter-sekai/files/patch-configure20
2 files changed, 20 insertions, 2 deletions
diff --git a/games/ponscripter-sekai/Makefile b/games/ponscripter-sekai/Makefile
index 8860a051b270..3349d6855b0b 100644
--- a/games/ponscripter-sekai/Makefile
+++ b/games/ponscripter-sekai/Makefile
@@ -21,7 +21,7 @@ USE_GITHUB= yes
GH_ACCOUNT= sekaiproject
GH_PROJECT= ${PORTNAME:S/sekai/fork/}
-USES= compiler:c++11-lang gmake sdl shebangfix
+USES= compiler:c++11-lang gmake pkgconfig sdl shebangfix
USE_SDL= image2 mixer2
EXTRACT_AFTER_ARGS=--exclude src/extlib
SHEBANG_FILES= util/xml-template
diff --git a/games/ponscripter-sekai/files/patch-configure b/games/ponscripter-sekai/files/patch-configure
index f019ce7692d0..3b7dc5733174 100644
--- a/games/ponscripter-sekai/files/patch-configure
+++ b/games/ponscripter-sekai/files/patch-configure
@@ -1,5 +1,14 @@
---- configure.orig 2019-02-08 19:59:55 UTC
+--- configure.orig 2021-08-06 14:18:09 UTC
+++ configure
+@@ -53,7 +53,7 @@ EXPLICIT_OGGLIBS=false
+
+ SDL_CONFIG=sdl2-config
+ SMPEG_CONFIG=smpeg2-config
+-FREETYPE_CONFIG=freetype-config
++FREETYPE_CONFIG="pkg-config freetype2"
+ EXTLIB=./extlib
+ SRC=src
+ MAKEFILE=$SRC/Makefile
@@ -606,7 +606,7 @@ then
_EOF
INTERNAL_SDL_MIXER=true
@@ -9,3 +18,12 @@
case $? in
0) echo "yes"; INTERNAL_SDL_MIXER=false ;;
1) echo "no MP3" ;; 2) echo "no Ogg" ;; 3) echo "no Ogg or MP3" ;;
+@@ -694,7 +694,7 @@ then
+ FREETYPE_CONFIG=$EXTLIB/bin/freetype-config
+ else
+ $echo_n "Checking for system Freetype... ${nobr}"
+- VER=`($FREETYPE_CONFIG --ftversion) 2>/dev/null`
++ VER=2
+ if [ -z "$VER" ]; then
+ FREETYPE_CONFIG=freetype2-config
+ VER=`($FREETYPE_CONFIG --ftversion) 2>/dev/null`