aboutsummaryrefslogtreecommitdiff
path: root/chinese/ttfm/files/patch-Makefile
blob: ef80b855d5fc6871e2026f1e69f503f21af0c9f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fix build against modern freetype.

- Freetype no longer installes fretype-config.
- The compiler and linker flags can be gathered via pkg-config.

--- Makefile.orig	2021-08-06 09:43:46 UTC
+++ Makefile
@@ -4,8 +4,8 @@ FREETYPE_LIB=$(FREETYPE_BASE)/lib
 prefix=/usr
 
 CC=gcc
-CFLAGS=$(RPM_OPT_FLAGS) -Wall -pedantic `freetype-config --cflags`
-LDFALGS=`freetype-config --libs`
+CFLAGS=$(RPM_OPT_FLAGS) -Wall -pedantic `pkg-config --cflags freetype2`
+LDFALGS=`pkg-config --libs freetype2`
 
 all: ttfinfo