aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 10:08:48 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2021-08-06 10:18:04 +0000
commitcac0eef9713917709999c5107729103d312e2ba0 (patch)
tree2962a11cce4b25d8b554d05ca3d31c53dee8f0f8
parent79a76430470c67cb3b22e301e556421ae0392dc9 (diff)
downloadports-cac0eef9713917709999c5107729103d312e2ba0.tar.gz
ports-cac0eef9713917709999c5107729103d312e2ba0.zip
devel/clanlib: 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. - while here, mark as abandonware. PR: 251512
-rw-r--r--devel/clanlib/Makefile3
-rw-r--r--devel/clanlib/files/patch-configure16
2 files changed, 19 insertions, 0 deletions
diff --git a/devel/clanlib/Makefile b/devel/clanlib/Makefile
index 83343a2d6486..a4ba82a76065 100644
--- a/devel/clanlib/Makefile
+++ b/devel/clanlib/Makefile
@@ -17,6 +17,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_i386= typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'khronos_intptr_t' (aka 'long'))
BROKEN_powerpc= typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'khronos_intptr_t' (aka 'long'))
+DEPRECATED= Upstream no longer maintained
+EXPIRATION_DATE= 2021-10-31
+
LIB_DEPENDS= libpng.so:graphics/png \
libmikmod.so:audio/libmikmod \
libvorbis.so:audio/libvorbis \
diff --git a/devel/clanlib/files/patch-configure b/devel/clanlib/files/patch-configure
new file mode 100644
index 000000000000..a2847092b988
--- /dev/null
+++ b/devel/clanlib/files/patch-configure
@@ -0,0 +1,16 @@
+Freetype no longer ships freetype-config -- use pkg-config directly.
+
+--- configure.orig 2021-08-06 10:05:39 UTC
++++ configure
+@@ -15925,9 +15925,9 @@ fi
+ LIBS="$OLDLIBS"
+ fi
+ if test "$enable_clanDisplay" != "no"; then
+- OLDLIBS="$LIBS"; LIBS="`freetype-config --libs` "; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ttf" >&5
++ OLDLIBS="$LIBS"; LIBS="`pkg-config freetype2 --libs` "; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ttf" >&5
+ $as_echo_n "checking for ttf... " >&6; }
+- OLD_CXXFLAGS="$CXXFLAGS"; CXXFLAGS=" `freetype-config --cflags`";
++ OLD_CXXFLAGS="$CXXFLAGS"; CXXFLAGS=" `pkg-config freetype2 --cflags`";
+ if test "$cross_compiling" = yes; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */