211e8add8fa084bf97b02a00d47bf8e8a733f875
[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.8.2
10 PKG_RELEASE:=1
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:=aba3f97d60c344c5d40ffcec524460e378dab939f873ec5d155bbc510a4fbd5d
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_FIXUP:=autoreconf
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/uclibc++.mk
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 $(CXX_DEPENDS) $(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) \
75 $(PKG_INSTALL_DIR)/usr/include/* \
76 $(1)/usr/include/
77
78 $(INSTALL_DIR) $(1)/usr/lib/
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
81 $(1)/usr/lib/
82
83 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
84 $(INSTALL_DATA) \
85 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
86 $(1)/usr/lib/pkgconfig/
87 endef
88
89 define Package/vips/install
90 $(INSTALL_DIR) $(1)/usr/lib/
91 $(CP) \
92 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
93 $(1)/usr/lib/
94 endef
95
96 $(eval $(call BuildPackage,vips))