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.

101 lines
2.4 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.31
  7. PKG_RELEASE:=1
  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:=69ee4ac6a49a818098f47f51c4f430ca9bb2493cb3594f322eb211b8aeb71f41
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=Copyright.txt
  14. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  15. PKG_BUILD_PARALLEL:=1
  16. DISABLE_NLS:=
  17. PKG_BUILD_DEPENDS:=zlib freetype libpng libjpeg tiff
  18. include $(INCLUDE_DIR)/package.mk
  19. PKG_INSTALL:=1
  20. define Package/graphicsmagick/Default
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=Graphics manipulation tools
  24. URL:=https://www.graphicsmagick.org/
  25. DEPENDS:=graphicsmagick
  26. endef
  27. define Package/graphicsmagick
  28. $(call Package/graphicsmagick/Default)
  29. DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
  30. endef
  31. define Package/graphicsmagick/description
  32. GraphicsMagick is a free and open-source software suite for displaying,
  33. converting, and editing raster image and vector image files. It is a fork
  34. of GraphicsMagick.
  35. endef
  36. CONFIGURE_ARGS += \
  37. --enable-shared \
  38. --disable-static \
  39. --enable-dependency-tracking \
  40. --with-modules \
  41. --with-threads \
  42. --without-magick-plus-plus \
  43. --without-perl \
  44. --without-bzlib \
  45. --without-dps \
  46. --without-fpx \
  47. --without-jbig \
  48. --without-webp \
  49. --with-jpeg \
  50. --without-jp2 \
  51. --without-lcms2 \
  52. --without-lzma \
  53. --with-png \
  54. --with-tiff \
  55. --without-trio \
  56. --with-ttf \
  57. --without-umem \
  58. --without-wmf \
  59. --without-xml \
  60. --with-zlib \
  61. --without-zstd \
  62. --without-x
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/include
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/include/* \
  67. $(1)/usr/include/
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) \
  70. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  71. $(1)/usr/lib/
  72. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  73. $(INSTALL_DATA) \
  74. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  75. $(1)/usr/lib/pkgconfig/
  76. endef
  77. GMlibdir:=usr/lib/GraphicsMagick-$(PKG_VERSION)
  78. define Package/graphicsmagick/install
  79. $(INSTALL_DIR) $(1)/usr/bin $(1)/$(GMlibdir)
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  81. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  82. $(CP) $(PKG_INSTALL_DIR)/$(GMlibdir)/* $(1)/$(GMlibdir)/
  83. endef
  84. $(eval $(call BuildPackage,graphicsmagick))