summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-05-04 15:25:36 +0200
committerLars Wendler <polynomial-c@gentoo.org>2021-05-04 15:35:40 +0200
commit17d912ff9ad0a450e9250e8224866ca172926b60 (patch)
treea4a7b96b997ada584655053606004a8881bdb904 /x11-misc/xplanet/files
parentsci-calculators/bc-gh: bump to 4.0.0 (diff)
downloadgentoo-17d912ff9ad0a450e9250e8224866ca172926b60.tar.gz
gentoo-17d912ff9ad0a450e9250e8224866ca172926b60.tar.bz2
gentoo-17d912ff9ad0a450e9250e8224866ca172926b60.zip
x11-misc/xplanet: Revbump to fix freetype detection
Bumped to EAPI-7 Overhauled src_configure function Closes: https://bugs.gentoo.org/788136 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'x11-misc/xplanet/files')
-rw-r--r--x11-misc/xplanet/files/xplanet-1.3.1-freetype_pkgconfig.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/x11-misc/xplanet/files/xplanet-1.3.1-freetype_pkgconfig.patch b/x11-misc/xplanet/files/xplanet-1.3.1-freetype_pkgconfig.patch
new file mode 100644
index 00000000000..534a32e9ef7
--- /dev/null
+++ b/x11-misc/xplanet/files/xplanet-1.3.1-freetype_pkgconfig.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/788136
+
+--- xplanet-1.3.1/acinclude.m4
++++ xplanet-1.3.1/acinclude.m4
+@@ -48,23 +48,22 @@
+
+ AC_DEFUN([AC_FIND_FREETYPE],
+ [
+-
++PKG_PROG_PKG_CONFIG
+ AC_ARG_WITH(freetype,AC_HELP_STRING([--with-freetype],[Enable Freetype support for TrueType fonts (YES)]))
+
+ have_freetype='no'
+-if test "$with_freetype" != 'no'; then
+- AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
+- if test "$FREETYPE_CONFIG" = no; then
+- AC_MSG_WARN(*** Xplanet will be built without freetype support ***)
+- else
+- FREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags` -I`$FREETYPE_CONFIG --prefix`/include"
+- FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
+- AC_SUBST(FREETYPE_CFLAGS)
+- AC_SUBST(FREETYPE_LIBS)
+- AC_DEFINE(HAVE_LIBFREETYPE,,Define if you have freetype)
++AS_IF([test "$with_freetype" != 'no'], [
++ PKG_CHECK_MODULES([FREETYPE], [freetype2], [
++ AC_DEFINE([HAVE_LIBFREETYPE],,[Define if you have freetype])
+ have_freetype='yes'
+- fi
+-fi
++ ], [
++ AS_IF([test "$with_freetype" != 'yes'], [
++ AC_MSG_WARN(*** Xplanet will be built without freetype support ***)
++ ], [
++ AC_MSG_ERROR(*** freetype support requested but not found ***)
++ ])
++ ])
++])
+ ])
+
+ AC_DEFUN([AC_FIND_PANGO],