cyrus-sasl: moved to github
[packages.git] / libs / vips / Makefile
1 #
2 # Copyright (C) 2010-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vips
11 PKG_VERSION:=7.34.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.vips.ecs.soton.ac.uk/supported/7.34/
16 PKG_MD5SUM:=520658fb5890103e446df629fb832795
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
20
21 PKG_INSTALL=1
22
23 define Package/vips
24   $(call Package/vips/Default)
25   SECTION:=multimedia
26   CATEGORY:=Multimedia
27   TITLE:=An image manipulation library
28   URL:=http://www.vips.ecs.soton.ac.uk/
29   DEPENDS:=+glib2 +libexif +libjpeg +libpng +libxml2 $(INTL_DEPENDS)
30 endef
31
32 TARGET_LDFLAGS+= \
33         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
34
35 CONFIGURE_ARGS += \
36         --disable-cxx \
37         --disable-threads \
38         --without-cfitsio \
39         --without-fftw \
40         --without-lcms \
41         --without-magick \
42         --without-matio \
43         --without-OpenEXR \
44         --without-orc \
45         --without-pangoft2 \
46         --without-python \
47         --without-tiff \
48         --without-v4l \
49         --without-x \
50         --without-zip \
51         --with-jpeg \
52         --with-libexif \
53         --with-png \
54
55 define Build/InstallDev
56         $(INSTALL_DIR) $(1)/usr/include/vips
57         $(CP) \
58                 $(PKG_INSTALL_DIR)/usr/include/* \
59                 $(1)/usr/include/
60
61         $(INSTALL_DIR) $(1)/usr/lib/
62         $(CP) \
63                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
64                 $(1)/usr/lib/
65
66         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
67         $(INSTALL_DATA) \
68                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
69                 $(1)/usr/lib/pkgconfig/
70 endef
71
72 define Package/vips/install
73         $(INSTALL_DIR) $(1)/usr/lib/
74         $(CP) \
75                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
76                 $(1)/usr/lib/
77 endef
78
79 $(eval $(call BuildPackage,vips))