]> git.sesse.net Git - mlt/commitdiff
Fix Windows build.
authorDan Dennedy <dan@dennedy.org>
Tue, 31 Dec 2013 19:18:08 +0000 (11:18 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 31 Dec 2013 19:18:08 +0000 (11:18 -0800)
Windows build needs PKGCONFIG_PREFIX, and it outputs more than one -I
option. This change appends /freetype to each -I.

src/modules/gtk2/Makefile

index fe700e7ea6fbafbc5ab870166a2c6d7e21ccff80..4475c17e2806571bbb62bbe5ef0821972628e5a0 100644 (file)
@@ -35,7 +35,7 @@ endif
 ifdef USE_PANGO
 OBJS += producer_pango.o
 CFLAGS += $(shell pkg-config $(PKGCONFIG_PREFIX) --cflags pangoft2)
-CFLAGS += $(shell pkg-config --cflags-only-I freetype2 | sed 's/ *$$//g')/freetype
+CFLAGS += $(shell pkg-config $(PKGCONFIG_PREFIX) --cflags-only-I freetype2 | awk '{for (i=1; i<=NF; i++) $$i=sprintf("%s/freetype", $$i); print}')
 LDFLAGS += $(shell pkg-config $(PKGCONFIG_PREFIX) --libs pangoft2)
 ifeq ($(targetos),Darwin)
 LDFLAGS += -liconv