freetype: fix target install and clean / dirclean
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 17 Jul 2008 13:20:37 +0000 (13:20 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 17 Jul 2008 13:20:37 +0000 (13:20 -0000)
- target install didn't strip library
- clean didn't uninstall from staging / target
- dirclean target missing

package/freetype/freetype.mk

index 6cbef9cc120e01b51c4c6852f6a44a4e5dae7941..17c484ef2784b672b84b57b6985d6a0b33c3f7c2 100644 (file)
@@ -48,13 +48,19 @@ $(FREETYPE_DIR)/.installed: $(FREETYPE_DIR)/.compiled
        $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/freetype-config
        $(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/freetype-config
        $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/bin/freetype-config
+       $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfreetype.so
        touch $@
 
 freetype: uclibc pkgconfig $(FREETYPE_DIR)/.installed
 
 freetype-clean:
+       -$(MAKE) -C $(FREETYPE_DIR) DESTDIR=$(STAGING_DIR) uninstall
+       -$(MAKE) -C $(FREETYPE_DIR) DESTDIR=$(TARGET_DIR) uninstall
        -$(MAKE) -C $(FREETYPE_DIR) clean
 
+freetype-dirclean:
+       rm -rf $(FREETYPE_DIR)
+
 #############################################################
 #
 # Toplevel Makefile options