[package] imagemagick: add tools (#8430)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@27455 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2011-07-05 12:40:16 +00:00
parent de903b6b2e
commit 4c7460e91a

View File

@ -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))