You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
3.5 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=imagemagick
  7. PKG_VERSION:=7.0.8
  8. PKG_REVISION:=62
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REVISION).tar.gz
  12. PKG_SOURCE_URL:=http://github.com/ImageMagick/ImageMagick/archive/$(PKG_VERSION)-$(PKG_REVISION)
  13. PKG_HASH:=ceae2596df95d0f9e42e405b9c1b6c369bf1f065fc74078e76a45c5cbde5260e
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/ImageMagick-$(PKG_VERSION)-$(PKG_REVISION)
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_CPE_ID:=cpe:/a:imagemagick:imagemagick
  18. PKG_USE_MIPS16:=0
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/imagemagick/Default
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. TITLE:=Image manipulation tools
  25. URL:=https://www.imagemagick.org/
  26. endef
  27. define Package/imagemagick
  28. $(call Package/imagemagick/Default)
  29. DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
  30. endef
  31. define Package/imagemagick/description
  32. ImageMagick is a free and open-source software suite for displaying,
  33. converting, and editing raster image and vector image files.
  34. NOTE: this package may not be suitable for many embedded devices because
  35. of its large size. Consider using extroot or alternatively consider
  36. graphicsmagick which is smaller but similar in functionality.
  37. endef
  38. define Package/imagemagick/conffiles
  39. /etc/ImageMagick-7/colors.xml
  40. /etc/ImageMagick-7/delegates.xml
  41. /etc/ImageMagick-7/log.xml
  42. /etc/ImageMagick-7/mime.xml
  43. /etc/ImageMagick-7/policy.xml
  44. /etc/ImageMagick-7/quantization-table.xml
  45. /etc/ImageMagick-7/thresholds.xml
  46. /etc/ImageMagick-7/type-apple.xml
  47. /etc/ImageMagick-7/type-dejavu.xml
  48. /etc/ImageMagick-7/type-ghostscript.xml
  49. /etc/ImageMagick-7/type-urw-base35.xml
  50. /etc/ImageMagick-7/type-windows.xml
  51. /etc/ImageMagick-7/type.xml
  52. endef
  53. CONFIGURE_ARGS += \
  54. --enable-shared \
  55. --disable-static \
  56. --disable-docs \
  57. --enable-dependency-tracking \
  58. --with-modules \
  59. --with-threads \
  60. --with-ltdl \
  61. --with-zlib \
  62. --disable-hdri \
  63. --with-quantum-depth=8 \
  64. --disable-deprecated \
  65. --disable-cipher \
  66. --without-bzlib \
  67. --without-autotrace \
  68. --without-djvu \
  69. --without-dps \
  70. --without-fftw \
  71. --without-flif \
  72. --without-fpx \
  73. --without-fontconfig \
  74. --without-gslib \
  75. --without-gvc \
  76. --without-heic \
  77. --without-jbig \
  78. --without-lcms \
  79. --without-lqr \
  80. --without-lzma \
  81. --without-magick-plus-plus \
  82. --without-openexr \
  83. --without-openjp2 \
  84. --without-raqm \
  85. --without-raw \
  86. --without-webp \
  87. --without-x \
  88. --without-zstd \
  89. --without-gslib \
  90. --without-gvc \
  91. --without-pango \
  92. --without-perl \
  93. --without-rsvg \
  94. --without-wmf \
  95. --without-xml \
  96. --with-freetype \
  97. --with-jpeg \
  98. --with-png \
  99. --with-tiff
  100. TARGET_CFLAGS += -flto
  101. define Build/InstallDev
  102. $(INSTALL_DIR) $(1)/usr/include
  103. $(CP) \
  104. $(PKG_INSTALL_DIR)/usr/include/* \
  105. $(1)/usr/include/
  106. $(INSTALL_DIR) $(1)/usr/lib
  107. $(CP) \
  108. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  109. $(1)/usr/lib/
  110. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  111. $(INSTALL_DATA) \
  112. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  113. $(1)/usr/lib/pkgconfig/
  114. endef
  115. IMlibdir:=usr/lib/ImageMagick-$(PKG_VERSION)
  116. define Package/imagemagick/install
  117. $(INSTALL_DIR) $(1)/etc $(1)/usr/bin $(1)/$(IMlibdir)
  118. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  119. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  120. $(RM) $(1)/usr/bin/*-config
  121. $(CP) $(PKG_INSTALL_DIR)/etc/ImageMagick-* $(1)/etc/
  122. $(CP) $(PKG_INSTALL_DIR)/$(IMlibdir)/* $(1)/$(IMlibdir)/
  123. endef
  124. $(eval $(call BuildPackage,imagemagick))