From 8aa141437b709900218873ad0aa90aa842750b88 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sun, 3 Aug 2014 11:39:12 -0700 Subject: ftgl: install pkg-config file Signed-off-by: Timothy Gu --- src/ftgl.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ftgl.mk b/src/ftgl.mk index b3a2554..e31b198 100644 --- a/src/ftgl.mk +++ b/src/ftgl.mk @@ -17,6 +17,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD + cd '$(1)' && $(SED) -i 's/-lm/-lm -lstdc++/' ftgl.pc.in cd '$(1)' && aclocal -I m4 cd '$(1)' && $(LIBTOOLIZE) cd '$(1)' && automake --gnu @@ -28,10 +29,11 @@ define $(PKG)_BUILD --with-ft-prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= $(MAKE) -C '$(1)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + $(INSTALL) -m644 '$(1)/ftgl.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/' '$(TARGET)-gcc' \ -W -Wall -Werror -ansi \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ - -lftgl -lm -lstdc++ \ - `'$(TARGET)-pkg-config' freetype2 gl glu --cflags --libs` + `'$(TARGET)-pkg-config' ftgl --cflags --libs` endef -- cgit v0.12