Merge pull request #18472 from sotux/master
[feed/packages.git] / libs / vips / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=vips
9 PKG_VERSION:=8.12.2
10 PKG_RELEASE:=$(AUTORELEASE)
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://github.com/libvips/libvips/releases/download/v$(PKG_VERSION)
14 PKG_HASH:=565252992aff2c7cd10c866c7a58cd57bc536e03924bde29ae0f0cb9e074010b
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:vips:vips
20
21 PKG_FIXUP:=autoreconf
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/vips
29 $(call Package/vips/Default)
30 SECTION:=multimedia
31 CATEGORY:=Multimedia
32 TITLE:=An image manipulation library
33 URL:=https://libvips.github.io/libvips/
34 DEPENDS:=+glib2 +libexif +libexpat +libjpeg +libpng +giflib +libxml2 +libstdcpp $(INTL_DEPENDS)
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-debug \
39 --disable-gtk-doc-html \
40 --disable-magickload \
41 --disable-magicksave \
42 --without-analyze \
43 --without-cfitsio \
44 --without-fftw \
45 --without-gsf \
46 --without-imagequant \
47 --without-lcms \
48 --without-libwebp \
49 --without-magick \
50 --without-magickpackage \
51 --without-matio \
52 --without-nifti \
53 --without-OpenEXR \
54 --without-openslide \
55 --without-orc \
56 --without-pangoft2 \
57 --without-pdfium \
58 --without-poppler \
59 --without-ppm \
60 --without-radiance \
61 --without-rsvg \
62 --without-tiff \
63 --without-x \
64 --without-zlib \
65 --with-giflib \
66 --with-jpeg \
67 --with-libexif \
68 --with-png \
69
70 TARGET_CXXFLAGS += -fno-rtti
71
72 define Build/InstallDev
73 $(INSTALL_DIR) $(1)/usr/include/vips
74 $(CP) $(PKG_INSTALL_DIR)/usr/include/vips/* $(1)/usr/include/vips
75
76 $(INSTALL_DIR) $(1)/usr/lib/
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvips.{a,so}* $(1)/usr/lib/
78
79 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
80 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/vips.pc $(1)/usr/lib/pkgconfig/vips.pc
81 endef
82
83 define Package/vips/install
84 $(INSTALL_DIR) $(1)/usr/lib/
85 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvips.so.* $(1)/usr/lib/
86 endef
87
88 $(eval $(call BuildPackage,vips))