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.

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