From d31feecb284eb3b66b813655d04ff976ee55f555 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 5 Jul 2011 12:40:16 +0000 Subject: [PATCH] imagemagick: add tools (#8430) SVN-Revision: 27455 --- multimedia/imagemagick/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/multimedia/imagemagick/Makefile b/multimedia/imagemagick/Makefile index dff750c93..88745a569 100644 --- a/multimedia/imagemagick/Makefile +++ b/multimedia/imagemagick/Makefile @@ -59,6 +59,16 @@ define Package/imagemagick-png/description imagemagick PNG module endef +define Package/imagemagick-tools + $(call Package/imagemagick/Default) + TITLE+= (tools) + DEPENDS:=+imagemagick +endef + +define Package/imagemagick-png/description + imagemagick tools (mogrify,convert) +endef + CONFIGURE_ARGS += \ --with-modules \ @@ -99,17 +109,30 @@ define Package/imagemagick/install $(1)/usr/lib/ endef +define Package/imagemagick-tools/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/bin/mogrify \ + $(1)/usr/bin/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/bin/convert \ + $(1)/usr/bin/ +endef + define BuildPlugin define Package/imagemagick-$(1)/install $(INSTALL_DIR) $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders $(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).so \ $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).la \ + $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders endef $$(eval $$(call BuildPackage,imagemagick-$(1))) endef $(eval $(call BuildPackage,imagemagick)) +$(eval $(call BuildPackage,imagemagick-tools)) $(eval $(call BuildPlugin,jpeg)) $(eval $(call BuildPlugin,png)) -- 2.30.2