2011-01-30 01:25:17 +00:00
|
|
|
#
|
2012-07-30 15:40:02 +00:00
|
|
|
# Copyright (C) 2010-2012 OpenWrt.org
|
2011-01-30 01:25:17 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=imagemagick
|
2012-07-30 15:40:02 +00:00
|
|
|
PKG_VERSION:=6.7.8
|
2012-08-03 15:16:44 +00:00
|
|
|
PKG_REVISION:=7
|
2011-01-30 01:25:17 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/ImageMagick-$(PKG_VERSION)-$(PKG_REVISION)
|
|
|
|
PKG_SOURCE:=ImageMagick-$(PKG_VERSION)-$(PKG_REVISION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.fifi.org/pub/ImageMagick/
|
2012-08-03 15:16:44 +00:00
|
|
|
PKG_MD5SUM:=11d5d5b3c6477077292183edcdf99da9
|
2011-01-30 01:25:17 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-01-30 01:25:17 +00:00
|
|
|
PKG_REMOVE_FILES:=aclocal.m4 m4/libtool.m4
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
PKG_INSTALL=1
|
|
|
|
|
|
|
|
define Package/imagemagick/Default
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
|
|
|
TITLE:=imagemagick
|
|
|
|
URL:=http://image_magick.veidrodis.com/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick
|
|
|
|
$(call Package/imagemagick/Default)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick/description
|
|
|
|
An image manipulation library.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-jpeg
|
|
|
|
$(call Package/imagemagick/Default)
|
|
|
|
TITLE+= (jpeg)
|
|
|
|
DEPENDS:=+imagemagick +libjpeg +zlib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-jpeg/description
|
|
|
|
imagemagick JPEG module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-png
|
|
|
|
$(call Package/imagemagick/Default)
|
|
|
|
TITLE+= (png)
|
|
|
|
DEPENDS:=+imagemagick +libpng +zlib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-png/description
|
|
|
|
imagemagick PNG module
|
|
|
|
endef
|
|
|
|
|
2011-07-05 12:40:16 +00:00
|
|
|
define Package/imagemagick-tools
|
|
|
|
$(call Package/imagemagick/Default)
|
|
|
|
TITLE+= (tools)
|
|
|
|
DEPENDS:=+imagemagick
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-png/description
|
|
|
|
imagemagick tools (mogrify,convert)
|
|
|
|
endef
|
|
|
|
|
2011-07-05 12:40:18 +00:00
|
|
|
define Package/imagemagick-tiff
|
|
|
|
$(call Package/imagemagick/Default)
|
|
|
|
TITLE+= (tiff)
|
|
|
|
DEPENDS:=+imagemagick +libtiff +zlib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick-tiff/description
|
|
|
|
imagemagick TIFF module
|
|
|
|
endef
|
|
|
|
|
2011-01-30 01:25:17 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-modules \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--without-xml \
|
|
|
|
--without-x
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux -I$(PKG_BUILD_DIR)/include"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/magick
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/Magick++
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/wand
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imagemagick/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2011-07-05 12:40:16 +00:00
|
|
|
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
|
|
|
|
|
2011-01-30 01:25:17 +00:00
|
|
|
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
|
2011-07-05 12:40:16 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders/$(1).la \
|
|
|
|
$$(1)/usr/lib/ImageMagick-$(PKG_VERSION)/modules-Q16/coders
|
2011-01-30 01:25:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,imagemagick-$(1)))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,imagemagick))
|
2011-07-05 12:40:16 +00:00
|
|
|
$(eval $(call BuildPackage,imagemagick-tools))
|
2011-01-30 01:25:17 +00:00
|
|
|
$(eval $(call BuildPlugin,jpeg))
|
|
|
|
$(eval $(call BuildPlugin,png))
|
2011-07-05 12:40:18 +00:00
|
|
|
$(eval $(call BuildPlugin,tiff))
|
2011-01-30 01:25:17 +00:00
|
|
|
|