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.

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