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.

88 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.5
  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:=a4eef2f5334ab6dbf133cd3c6d6394d5bdb3e76d5ea4d578b02e1bc3d9e1cfd8
  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)/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 +libstdcpp $(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) $(PKG_INSTALL_DIR)/usr/include/vips/* $(1)/usr/include/vips
  65. $(INSTALL_DIR) $(1)/usr/lib/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvips.{a,so}* $(1)/usr/lib/
  67. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  68. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/vips.pc $(1)/usr/lib/pkgconfig/vips.pc
  69. endef
  70. define Package/vips/install
  71. $(INSTALL_DIR) $(1)/usr/lib/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvips.so.* $(1)/usr/lib/
  73. endef
  74. $(eval $(call BuildPackage,vips))