Skip to contentSkip to conversation

freetype: fixup config file

PATCH New Gustavo Zacarias 2 participants 2 messages Jun 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 freetype: fixup config file

Fix freetype-config's includedir and libdir since they're expanded from configure values since bumping to version 2.4.12

Fixes:
http://autobuild.buildroot.net/results/1c7/1c70ce0ff350623cc38baf4b8b61c8a7a8586aba/
...and many others.

---
 package/freetype/freetype.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/freetype/freetype.mk +8 -0
index 16f00fe..177adf5 100644
@@ -18,5 +18,13 @@ FREETYPE_CONFIG_SCRIPTS = freetype-config
 
 HOST_FREETYPE_DEPENDENCIES = host-pkgconf
 
+# Extra fixing since includedir and libdir are expanded from configure values
+define FREETYPE_FIX_CONFIG_FILE
+	$(SED) 's:^includedir=.*:includedir="$${prefix}/include":' \
+		-e 's:^libdir=.*:libdir="$${exec_prefix}/lib":' \
+		$(STAGING_DIR)/usr/bin/freetype-config
+endef
+FREETYPE_POST_INSTALL_STAGING_HOOKS += FREETYPE_FIX_CONFIG_FILE
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 1/1 freetype: fixup config file

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Fix freetype-config's includedir and libdir since they're Gustavo> expanded from configure values since bumping to version 2.4.12

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard