[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:
parent
de903b6b2e
commit
4c7460e91a
@ -59,6 +59,16 @@ define Package/imagemagick-png/description
|
|||||||
imagemagick PNG module
|
imagemagick PNG module
|
||||||
endef
|
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 += \
|
CONFIGURE_ARGS += \
|
||||||
--with-modules \
|
--with-modules \
|
||||||
@ -99,17 +109,30 @@ define Package/imagemagick/install
|
|||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
endef
|
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 BuildPlugin
|
||||||
define Package/imagemagick-$(1)/install
|
define Package/imagemagick-$(1)/install
|
||||||
$(INSTALL_DIR) $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
|
$(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 \
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).so \
|
||||||
$$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
|
$$(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
|
endef
|
||||||
|
|
||||||
$$(eval $$(call BuildPackage,imagemagick-$(1)))
|
$$(eval $$(call BuildPackage,imagemagick-$(1)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,imagemagick))
|
$(eval $(call BuildPackage,imagemagick))
|
||||||
|
$(eval $(call BuildPackage,imagemagick-tools))
|
||||||
$(eval $(call BuildPlugin,jpeg))
|
$(eval $(call BuildPlugin,jpeg))
|
||||||
$(eval $(call BuildPlugin,png))
|
$(eval $(call BuildPlugin,png))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user