mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
Patch-Source: https://github.com/ldo/dvdauthor/commit/d5bb0bdd542c33214855a7062fcc485f8977934e
|
|
needed to find freetype2.pc since freetype-config is removed
|
|
--
|
|
From d5bb0bdd542c33214855a7062fcc485f8977934e Mon Sep 17 00:00:00 2001
|
|
From: Lawrence D'Oliveiro <ldo@geek-central.gen.nz>
|
|
Date: Fri, 19 Apr 2019 08:00:05 +0000
|
|
Subject: [PATCH] Use pkg-config to find FreeType (thanks to Lars Wendler).
|
|
|
|
---
|
|
configure.ac | 10 ++++------
|
|
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index c06ac6b..1194059 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -79,10 +79,8 @@ PKG_CHECK_MODULES([FRIBIDI], [fribidi], [AC_DEFINE(HAVE_FRIBIDI, 1, [whether Fri
|
|
AC_SUBST(FRIBIDI_CFLAGS)
|
|
AC_SUBST(FRIBIDI_LIBS)
|
|
|
|
-AC_CHECK_PROGS(FREETYPECONFIG, [freetype-config])
|
|
-if test -n "$FREETYPECONFIG"; then
|
|
- FREETYPE_CPPFLAGS="`$FREETYPECONFIG --cflags`"
|
|
- FREETYPE_LIBS="`$FREETYPECONFIG --libs $config_static`"
|
|
+PKG_CHECK_MODULES(FREETYPE, [freetype2],[
|
|
+ FREETYPE_CPPFLAGS="$FREETYPE_CFLAGS"
|
|
AC_DEFINE(HAVE_FREETYPE, 1, [Whether FreeType is available])
|
|
|
|
ac_save_CPPFLAGS="$CPPFLAGS"
|
|
@@ -91,9 +89,9 @@ if test -n "$FREETYPECONFIG"; then
|
|
CPPFLAGS="$ac_save_CPPFLAGS"
|
|
AC_SUBST(FREETYPE_CPPFLAGS)
|
|
AC_SUBST(FREETYPE_LIBS)
|
|
-else
|
|
+ ],
|
|
AC_MSG_ERROR([freetype not found])
|
|
-fi
|
|
+)
|
|
|
|
|
|
AC_ARG_ENABLE([default-video-format],
|