Convttf makefile: Replace freetype-config with pkg-config

Freetype-config has been deprecated and is no longer included in libfreetype-dev. Pkg-config serves as its replacement.

Convttf isn't built as part of Rockbox by default, but manually doing so will currently fail even when libfreetype-dev is installed.

Change-Id: Iafc31df3b40c11d7c790189eb9d3788ba97d3e54
This commit is contained in:
Christian Soffke 2021-02-21 04:55:32 +01:00
parent bdc3dd4fca
commit 05f1006246
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ usb_benchmark: usb_benchmark.c
convttf: convttf.c
$(call PRINTS,CC $(@F))
$(SILENT)$(CC) $(CFLAGS) -lm -std=c99 -O2 -Wall -g $+ -o $@ \
`freetype-config --libs` `freetype-config --cflags`
`pkg-config --cflags --libs freetype2`
clean:
@echo "Cleaning tools"

View file

@ -38,7 +38,7 @@ $(TOOLSDIR)/uclpack: $(TOOLSDIR)/ucl/uclpack.c $(wildcard $(TOOLSDIR)/ucl/src/*.
$(TOOLSDIR)/convttf: $(TOOLSDIR)/convttf.c
$(call PRINTS,CC $(@F))
$(SILENT)$(HOSTCC) $(TOOLSFLAGS) -lm -O2 -Wall -g $+ -o $@ \
`freetype-config --libs` `freetype-config --cflags`
`pkg-config --cflags --libs freetype2`
# implicit rule for simple tools
$(TOOLSDIR)/%: $(TOOLSDIR)/%.c