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.

104 lines
2.5 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=graphicsmagick
  6. PKG_VERSION:=1.3.35
  7. PKG_RELEASE:=3
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/GraphicsMagick-$(PKG_VERSION)
  9. PKG_SOURCE:=GraphicsMagick-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=@SF/graphicsmagick
  11. PKG_HASH:=7fd0b49903eb35df4ab5ca76139ab3f023f47485a4913fbdcf5c642c6e5f01fc
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=Copyright.txt
  14. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  15. PKG_CPE_ID:=cpe:/a:graphicsmagick:graphicsmagick
  16. PKG_BUILD_PARALLEL:=1
  17. DISABLE_NLS:=
  18. PKG_BUILD_DEPENDS:=zlib freetype libpng libjpeg-turbo tiff
  19. include $(INCLUDE_DIR)/package.mk
  20. PKG_INSTALL:=1
  21. define Package/graphicsmagick/Default
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. TITLE:=Graphics manipulation tools
  25. URL:=https://www.graphicsmagick.org/
  26. DEPENDS:=graphicsmagick
  27. endef
  28. define Package/graphicsmagick
  29. $(call Package/graphicsmagick/Default)
  30. DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
  31. endef
  32. define Package/graphicsmagick/description
  33. GraphicsMagick is a free and open-source software suite for displaying,
  34. converting, and editing raster image and vector image files. It is a fork
  35. of ImageMagick.
  36. endef
  37. CONFIGURE_ARGS += \
  38. --enable-shared \
  39. --disable-static \
  40. --enable-dependency-tracking \
  41. --with-modules \
  42. --with-threads \
  43. --without-magick-plus-plus \
  44. --without-perl \
  45. --without-bzlib \
  46. --without-dps \
  47. --without-fpx \
  48. --without-jbig \
  49. --without-webp \
  50. --with-jpeg \
  51. --without-jp2 \
  52. --without-lcms2 \
  53. --without-lzma \
  54. --with-png \
  55. --with-tiff \
  56. --without-trio \
  57. --with-ttf \
  58. --without-umem \
  59. --without-wmf \
  60. --without-xml \
  61. --with-zlib \
  62. --without-zstd \
  63. --without-x
  64. TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),,-flto)
  65. define Build/InstallDev
  66. $(INSTALL_DIR) $(1)/usr/include
  67. $(CP) \
  68. $(PKG_INSTALL_DIR)/usr/include/* \
  69. $(1)/usr/include/
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) \
  72. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  73. $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  75. $(INSTALL_DATA) \
  76. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  77. $(1)/usr/lib/pkgconfig/
  78. endef
  79. GMlibdir:=usr/lib/GraphicsMagick-$(PKG_VERSION)
  80. define Package/graphicsmagick/install
  81. $(INSTALL_DIR) $(1)/usr/bin $(1)/$(GMlibdir)
  82. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  83. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  84. $(CP) $(PKG_INSTALL_DIR)/$(GMlibdir)/* $(1)/$(GMlibdir)/
  85. endef
  86. $(eval $(call BuildPackage,graphicsmagick))