File: freetype.patch

package info (click to toggle)
tvtime 1.0.11-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,340 kB
  • sloc: ansic: 31,486; sh: 5,082; makefile: 571; pascal: 504; yacc: 316; asm: 249; perl: 192; cpp: 164; xml: 27; sed: 16
file content (30 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Use pkg-config for finding freetype
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/892455

--- a/configure.ac
+++ b/configure.ac
@@ -71,10 +71,7 @@
 dnl freetype
 dnl ---------------------------------------------
 dnl Test for freetype
-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
-if test "$FREETYPE_CONFIG" = "no" ; then
-  AC_MSG_ERROR(freetype2 needed and freetype-config not found)
-fi
+PKG_CHECK_MODULES(TTF, freetype2)
 
 dnl ---------------------------------------------
 dnl libxml2
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,9 +19,6 @@
 tmpdir = /tmp
 localedir = $(datadir)/locale
 
-TTF_CFLAGS = `$(FREETYPE_CONFIG) --cflags`
-TTF_LIBS = `$(FREETYPE_CONFIG) --libs`
-
 # Set the following if you want to specify an additional font directory
 # FONT_CFLAGS = -DFONTDIR='/usr/share/fonts/truetype/freefont/'