2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_MAINTAINER
:=Val Kulkov
<val.kulkov@gmail.com
>
14 PKG_SOURCE
:=ImageMagick-
$(PKG_VERSION
)-$(PKG_REVISION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://imagemagick.org
/archive
16 PKG_HASH
:=df0af0386df5bb3333ac9b1173ac4c893dcdd20b28100128e857f3d8f6466e1a
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ImageMagick-
$(PKG_VERSION
)-$(PKG_REVISION
)
20 PKG_LICENSE
:=Apache-2.0
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:imagemagick
:imagemagick
24 PKG_BUILD_FLAGS
:=no-mips16 lto
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/imagemagick
/Default
32 TITLE
:=Image manipulation tools
33 URL
:=https
://www.imagemagick.org
/
36 define Package
/imagemagick
37 $(call Package
/imagemagick
/Default
)
38 DEPENDS
:=+libltdl
+libpthread
+zlib
+libfreetype
+libpng
+libjpeg
+libtiff
+libstdcpp
41 define Package
/imagemagick
/description
42 ImageMagick is a free and open-source software suite for displaying
,
43 converting
, and editing raster image and vector image files.
44 NOTE
: this package may not be suitable for many embedded devices because
45 of its large size. Consider using extroot or alternatively consider
46 graphicsmagick which is smaller but similar in functionality.
49 define Package
/imagemagick
/conffiles
50 /etc
/ImageMagick-7
/colors.xml
51 /etc
/ImageMagick-7
/delegates.xml
52 /etc
/ImageMagick-7
/log.xml
53 /etc
/ImageMagick-7
/mime.xml
54 /etc
/ImageMagick-7
/policy.xml
55 /etc
/ImageMagick-7
/quantization-table.xml
56 /etc
/ImageMagick-7
/thresholds.xml
57 /etc
/ImageMagick-7
/type-apple.xml
58 /etc
/ImageMagick-7
/type-dejavu.xml
59 /etc
/ImageMagick-7
/type-ghostscript.xml
60 /etc
/ImageMagick-7
/type-urw-base35.xml
61 /etc
/ImageMagick-7
/type-windows.xml
62 /etc
/ImageMagick-7
/type.xml
68 --enable-dependency-tracking \
71 --with-quantum-depth
=8 \
75 --without-fontconfig \
82 --without-magick-plus-plus \
94 define Build
/InstallDev
95 $(INSTALL_DIR
) $(1)/usr
/include
97 $(PKG_INSTALL_DIR
)/usr
/include/* \
100 $(INSTALL_DIR
) $(1)/usr
/lib
102 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
105 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
107 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
108 $(1)/usr
/lib
/pkgconfig
/
110 $(INSTALL_DIR
) $(1)/usr
/bin
112 $(PKG_INSTALL_DIR
)/usr
/bin
/*-config \
114 $(SED
) 's|prefix=/usr|prefix=$(STAGING_DIR)/usr|' \
115 $(1)/usr
/bin
/*-config
118 IMlibdir
:=usr
/lib
/ImageMagick-
$(PKG_VERSION
)
119 define Package
/imagemagick
/install
120 $(INSTALL_DIR
) $(1)/etc
$(1)/usr
/bin
$(1)/$(IMlibdir
)
121 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* $(1)/usr
/lib
/
122 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
123 $(RM
) $(1)/usr
/bin
/*-config
124 $(CP
) $(PKG_INSTALL_DIR
)/etc
/ImageMagick-
* $(1)/etc
/
125 $(CP
) $(PKG_INSTALL_DIR
)/$(IMlibdir
)/* $(1)/$(IMlibdir
)/
128 $(eval
$(call BuildPackage
,imagemagick
))