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.

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