2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR:=$(BUILD_DIR)/ImageMagick-$(PKG_VERSION)-$(PKG_REVISION)
16 PKG_SOURCE:=ImageMagick-$(PKG_VERSION)-$(PKG_REVISION).tar.bz2
17 PKG_SOURCE_URL:=ftp://ftp.fifi.org/pub/ImageMagick/
21 PKG_REMOVE_FILES:=aclocal.m4 m4/libtool.m4
23 include $(INCLUDE_DIR)/package.mk
27 define Package/imagemagick/Default
31 URL:=http://image_magick.veidrodis.com/
34 define Package/imagemagick
35 $(call Package/imagemagick/Default)
38 define Package/imagemagick/description
39 An image manipulation library.
42 define Package/imagemagick-jpeg
43 $(call Package/imagemagick/Default)
45 DEPENDS:=+imagemagick +libjpeg +zlib
48 define Package/imagemagick-jpeg/description
49 imagemagick JPEG module
52 define Package/imagemagick-png
53 $(call Package/imagemagick/Default)
55 DEPENDS:=+imagemagick +libpng +zlib
58 define Package/imagemagick-png/description
59 imagemagick PNG module
62 define Package/imagemagick-tools
63 $(call Package/imagemagick/Default)
68 define Package/imagemagick-png/description
69 imagemagick tools (mogrify,convert)
72 define Package/imagemagick-tiff
73 $(call Package/imagemagick/Default)
75 DEPENDS:=+imagemagick +libtiff +zlib
78 define Package/imagemagick-tiff/description
79 imagemagick TIFF module
91 $(MAKE) -C $(PKG_BUILD_DIR) \
93 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux -I$(PKG_BUILD_DIR)/include"
96 define Build/InstallDev
97 $(INSTALL_DIR) $(1)/usr/include/magick
98 $(INSTALL_DIR) $(1)/usr/include/Magick++
99 $(INSTALL_DIR) $(1)/usr/include/wand
101 $(PKG_INSTALL_DIR)/usr/include/* \
104 $(INSTALL_DIR) $(1)/usr/lib/
106 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
109 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
111 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
112 $(1)/usr/lib/pkgconfig/
115 define Package/imagemagick/install
116 $(INSTALL_DIR) $(1)/usr/lib/
118 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
122 define Package/imagemagick-tools/install
123 $(INSTALL_DIR) $(1)/usr/bin/
125 $(PKG_INSTALL_DIR)/usr/bin/mogrify \
128 $(PKG_INSTALL_DIR)/usr/bin/convert \
133 define Package/imagemagick-$(1)/install
134 $(INSTALL_DIR) $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
135 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).so \
136 $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
137 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).la \
138 $$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
141 $$(eval $$(call BuildPackage,imagemagick-$(1)))
144 $(eval $(call BuildPackage,imagemagick))
145 $(eval $(call BuildPackage,imagemagick-tools))
146 $(eval $(call BuildPlugin,jpeg))
147 $(eval $(call BuildPlugin,png))
148 $(eval $(call BuildPlugin,tiff))