[packages] freetype: Properly fix freetype-config paths
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 19 Feb 2010 01:02:07 +0000 (01:02 +0000)
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 19 Feb 2010 01:02:07 +0000 (01:02 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19717 3c298f89-4303-0410-b956-a3cf2f4a3e73

libs/freetype/Makefile

index f328819..8a294ec 100644 (file)
@@ -56,8 +56,10 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/
-       $(SED) 's,-I$$$$includedir/freetype2,-I$(STAGING_DIR)/usr/include/freetype2,g' $(2)/bin/freetype-config
-       $(SED) 's,/usr/include/freetype2/,$(STAGING_DIR)/usr/include/freetype2/,g' $(2)/bin/freetype-config
+
+       $(SED) \
+               's,^\(prefix\|exec_prefix\)=.*,\1="$(STAGING_DIR)/usr",g' \
+                $(2)/bin/freetype-config
 endef