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.

96 lines
2.1 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:=vips
  7. PKG_VERSION:=8.7.4
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/libvips/libvips/releases/download/v$(PKG_VERSION)
  11. PKG_HASH:=ce7518a8f31b1d29a09b3d7c88e9852a5a2dcb3ee1501524ab477e433383f205
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=LGPL-2.1+
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_FIXUP:=autoreconf
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/vips
  22. $(call Package/vips/Default)
  23. SECTION:=multimedia
  24. CATEGORY:=Multimedia
  25. TITLE:=An image manipulation library
  26. URL:=https://libvips.github.io/libvips/
  27. DEPENDS:=+glib2 +libexif +libexpat +libjpeg +libpng +giflib +libxml2 $(CXX_DEPENDS) $(INTL_DEPENDS)
  28. endef
  29. CONFIGURE_ARGS += \
  30. --disable-debug \
  31. --disable-gtk-doc-html \
  32. --disable-magickload \
  33. --disable-magicksave \
  34. --without-analyze \
  35. --without-cfitsio \
  36. --without-fftw \
  37. --without-gsf \
  38. --without-imagequant \
  39. --without-lcms \
  40. --without-libwebp \
  41. --without-magick \
  42. --without-magickpackage \
  43. --without-matio \
  44. --without-nifti \
  45. --without-OpenEXR \
  46. --without-openslide \
  47. --without-orc \
  48. --without-pangoft2 \
  49. --without-pdfium \
  50. --without-poppler \
  51. --without-ppm \
  52. --without-radiance \
  53. --without-rsvg \
  54. --without-tiff \
  55. --without-x \
  56. --without-zlib \
  57. --with-giflib \
  58. --with-jpeg \
  59. --with-libexif \
  60. --with-png \
  61. TARGET_CXXFLAGS += -fno-rtti
  62. define Build/InstallDev
  63. $(INSTALL_DIR) $(1)/usr/include/vips
  64. $(CP) \
  65. $(PKG_INSTALL_DIR)/usr/include/* \
  66. $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib/
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  70. $(1)/usr/lib/
  71. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  72. $(INSTALL_DATA) \
  73. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  74. $(1)/usr/lib/pkgconfig/
  75. endef
  76. define Package/vips/install
  77. $(INSTALL_DIR) $(1)/usr/lib/
  78. $(CP) \
  79. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  80. $(1)/usr/lib/
  81. endef
  82. $(eval $(call BuildPackage,vips))