forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-misc/g15composer: Don't use freetype-config
Package-Manager: Portage-2.3.35, Repoman-2.3.9
- Loading branch information
Lars Wendler
committed
May 4, 2018
1 parent
295794b
commit a55a7a7
Showing
2 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
app-misc/g15composer/files/g15composer-3.2-freetype_pkgconfig.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- g15composer-3.2/configure.in | ||
+++ g15composer-3.2/configure.in | ||
@@ -14,24 +14,24 @@ | ||
AC_PROG_YACC | ||
|
||
# Checks for --enable args | ||
-AC_MSG_CHECKING(whether to enable FreeType2 support) | ||
-AC_ARG_ENABLE(ttf, [ --enable-ttf enable FreeType2 support], | ||
- if [[[ "$enableval" = "yes" ]]]; then | ||
- AC_CHECK_LIB([g15render], [g15r_ttfLoad], | ||
- AC_DEFINE(TTF_SUPPORT, [1], [Define to 1 to enable FreeType2 support]) | ||
- CFLAGS="$CFLAGS `freetype-config --cflags`" | ||
- CXXFLAGS="$CXXFLAGS `freetype-config --cflags`" | ||
- FTLIB="-lfreetype" | ||
- ttf_support="yes", | ||
- AC_MSG_ERROR(["libg15render does not support ttf functions. please reconfigure with --enable-ttf"]) | ||
- ttf_support="no" | ||
- ) | ||
- else | ||
- ttf_support="no" | ||
- fi, | ||
- ttf_support="no" | ||
+AC_ARG_ENABLE(ttf, [ --enable-ttf enable FreeType2 support],,enable_ttf="no") | ||
+AS_IF([test "x$enable_ttf" = "xyes"], [ | ||
+ PKG_PROG_PKG_CONFIG | ||
+ PKG_CHECK_MODULES(FREETYPE, freetype2, | ||
+ [ | ||
+ CFLAGS="$CFLAGS $FREETYPE_CFLAGS" | ||
+ CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" | ||
+ FTLIB="$FREETYPE_LIBS" | ||
+ ], | ||
+ AC_MSG_ERROR([Cannot find freetype2]) | ||
+ ) | ||
+ AC_CHECK_LIB([g15render], [g15r_ttfLoad], | ||
+ AC_DEFINE(TTF_SUPPORT, [1], [Define to 1 to enable FreeType2 support]), | ||
+ AC_MSG_ERROR(["libg15render does not support ttf functions. please reconfigure with --enable-ttf"]) | ||
+ ) | ||
+], | ||
+ AC_MSG_RESULT(No Freetype is being used) | ||
) | ||
-AC_MSG_RESULT($ttf_support) | ||
|
||
# Checks for libraries. | ||
AC_CHECK_LIB([g15daemon_client], [g15_send], ,AC_MSG_ERROR(["libg15daemon_client not found. please install it"])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters