freetype: fix pkgconfig file
authorNicolas Thill <nico@openwrt.org>
Mon, 2 Feb 2015 12:36:51 +0000 (13:36 +0100)
committerNicolas Thill <nico@openwrt.org>
Mon, 2 Feb 2015 12:36:51 +0000 (13:36 +0100)
Signed-off-by: Nicolas Thill <nico@openwrt.org>
libs/freetype/Makefile

index e88d748711aed8752fab0a88eaa5391af89db87b..feeab48bfada72c5c6da4fae3f7e2f44dc99b335 100644 (file)
@@ -66,6 +66,12 @@ define Build/InstallDev
        $(SED) \
                's,^\(prefix\|exec_prefix\)=.*,\1="$(STAGING_DIR)/usr",g' \
                 $(2)/bin/freetype-config
+       $(SED) \
+               's,/usr/include,$$$${prefix}/include,g' \
+                $(1)/usr/lib/pkgconfig/freetype2.pc
+       $(SED) \
+               's,/usr/lib,$$$${exec_prefix}/lib,g' \
+                $(1)/usr/lib/pkgconfig/freetype2.pc
 endef