aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2021-08-07 12:09:52 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2021-08-07 12:09:52 +0000
commit126700319b281ec688f79aee54d8f328fef1a404 (patch)
tree3a6fd8f7e3433668ec8b8bf2eb896b6548667e32
parent2e8a7f6a4674d4ee40da1553a19047481f0c6c63 (diff)
downloadports-126700319b281ec688f79aee54d8f328fef1a404.tar.gz
ports-126700319b281ec688f79aee54d8f328fef1a404.zip
devel/agar: 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--devel/agar/files/patch-configure44
1 files changed, 44 insertions, 0 deletions
diff --git a/devel/agar/files/patch-configure b/devel/agar/files/patch-configure
new file mode 100644
index 000000000000..ef82a2be8c5e
--- /dev/null
+++ b/devel/agar/files/patch-configure
@@ -0,0 +1,44 @@
+--- configure.orig 2021-08-07 12:03:06 UTC
++++ configure
+@@ -5408,10 +5408,10 @@ $ECHO_N "checking for FreeType..." >> config.log
+ MK_EXEC_FOUND="No"
+
+ if [ "${prefix_freetype}" != "" ]; then
+- if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
+- FREETYPE_VERSION=`${prefix_freetype}/bin/freetype-config --version`
++# if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
++ FREETYPE_VERSION=`pkg-config freetype2 --modversion`
+ MK_EXEC_FOUND="Yes"
+- fi
++# fi
+ else
+ FREETYPE_VERSION=""
+ for path in `echo $PATH | sed 's/:/ /g'`; do
+@@ -5425,10 +5425,10 @@ fi
+ MK_EXEC_FOUND="No"
+
+ if [ "${prefix_freetype}" != "" ]; then
+- if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
+- FREETYPE_CFLAGS=`${prefix_freetype}/bin/freetype-config --cflags`
++# if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
++ FREETYPE_CFLAGS=`pkg-config freetype2 --cflags`
+ MK_EXEC_FOUND="Yes"
+- fi
++# fi
+ else
+ FREETYPE_CFLAGS=""
+ for path in `echo $PATH | sed 's/:/ /g'`; do
+@@ -5442,10 +5442,10 @@ fi
+ MK_EXEC_FOUND="No"
+
+ if [ "${prefix_freetype}" != "" ]; then
+- if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
+- FREETYPE_LIBS=`${prefix_freetype}/bin/freetype-config --libs`
++# if [ -e "${prefix_freetype}/bin/freetype-config" ]; then
++ FREETYPE_LIBS=`pkg-config freetype2 --libs`
+ MK_EXEC_FOUND="Yes"
+- fi
++# fi
+ else
+ FREETYPE_LIBS=""
+ for path in `echo $PATH | sed 's/:/ /g'`; do