summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-30 13:59:22 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-30 13:59:22 +0000
commiteee376bc8e2207c322a41c9d9dc602c3a6adb135 (patch)
tree32402de9e4660650b3dddcd2caabc6731bf868d3
parent32417137bef0a2a8143ff881ca32c33204f67881 (diff)
freetype: strip target library and remove freetype-config if not needed
As noticed by Thomas Petazzoni.
-rw-r--r--package/freetype/freetype.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk
index d71ad96bb..988483fe4 100644
--- a/package/freetype/freetype.mk
+++ b/package/freetype/freetype.mk
@@ -21,6 +21,10 @@ $(FREETYPE_HOOK_POST_INSTALL):
-e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include/freetype2\',g" \
-e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
$(STAGING_DIR)/usr/bin/freetype-config
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfreetype.so
+ifneq ($(BR2_HAVE_DEVFILES),y)
+ rm -f $(TARGET_DIR)/usr/bin/freetype-config
+endif
touch $@
# freetype for the host