packages: ipv6/tayga: move static mappings to 'firewall' config
[openwrt/svn-archive/archive.git] / libs / vips / Makefile
1 #
2 # Copyright (C) 2010-2011 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.26.3
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.26/
16 PKG_MD5SUM:=1fbf164ef0da8e835a036c56ff659e8e
17 PKG_FIXUP = libtool
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/nls.mk
21
22 PKG_INSTALL=1
23
24 define Package/vips
25 $(call Package/vips/Default)
26 SECTION:=multimedia
27 CATEGORY:=Multimedia
28 TITLE:=An image manipulation library
29 URL:=http://www.vips.ecs.soton.ac.uk/
30 DEPENDS:=+glib2 +libexif +libjpeg +libpng +libxml2 $(INTL_DEPENDS)
31 endef
32
33 TARGET_LDFLAGS+= \
34 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
35
36 CONFIGURE_ARGS += \
37 --disable-cxx \
38 --disable-threads \
39 --without-cfitsio \
40 --without-fftw3 \
41 --without-lcms \
42 --without-magick \
43 --without-matio \
44 --without-OpenEXR \
45 --without-orc \
46 --without-pangoft2 \
47 --without-python \
48 --without-tiff \
49 --without-v4l \
50 --without-x \
51 --without-zip \
52 --with-jpeg \
53 --with-libexif \
54 --with-png \
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include/vips
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/include/* \
60 $(1)/usr/include/
61
62 $(INSTALL_DIR) $(1)/usr/lib/
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
65 $(1)/usr/lib/
66
67 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
70 $(1)/usr/lib/pkgconfig/
71 endef
72
73 define Package/vips/install
74 $(INSTALL_DIR) $(1)/usr/lib/
75 $(CP) \
76 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
77 $(1)/usr/lib/
78 endef
79
80 $(eval $(call BuildPackage,vips))