Skip to content

Commit

Permalink
chinese/ttfm: prepare for freetype2 update
Browse files Browse the repository at this point in the history
- freetype2 will no longer ship freetype-config (which was a pkg-config
  wrapper) in the near future -- use pkg-config to gather the required
  flags.

PR:		251512
  • Loading branch information
tcberner committed Aug 6, 2021
1 parent 378370d commit 8589213
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chinese/ttfm/Makefile
Expand Up @@ -13,6 +13,8 @@ LICENSE= MIT

LIB_DEPENDS= libfreetype.so:print/freetype2

USES= pkgconfig

MAKE_ARGS= FREETYPE_BASE=${LOCALBASE:Q} CC="${CC}"

PORTDOCS= README USAGE
Expand Down
18 changes: 18 additions & 0 deletions chinese/ttfm/files/patch-Makefile
@@ -0,0 +1,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

0 comments on commit 8589213

Please sign in to comment.