Fresh pull from upstream (stable) package feed
[librecmc/package-feed.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.42.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.vips.ecs.soton.ac.uk/supported/7.42/
16 PKG_MD5SUM:=33a4590924b3120ce309982ec85a7c16
17 PKG_FIXUP:=autoreconf
18 PKG_CHECK_FORMAT_SECURITY:=0
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 PKG_INSTALL=1
24
25 define Package/vips
26   $(call Package/vips/Default)
27   SECTION:=multimedia
28   CATEGORY:=Multimedia
29   TITLE:=An image manipulation library
30   URL:=http://www.vips.ecs.soton.ac.uk/
31   MAINTAINER:=W. Michael Petullo <mike@flyn.org>
32   DEPENDS:=+glib2 +libexif +libjpeg +libpng +libxml2 $(INTL_DEPENDS)
33 endef
34
35 TARGET_LDFLAGS+= \
36         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
37
38 CONFIGURE_ARGS += \
39         --disable-cxx \
40         --disable-threads \
41         --without-cfitsio \
42         --without-fftw \
43         --without-lcms \
44         --without-magick \
45         --without-matio \
46         --without-OpenEXR \
47         --without-orc \
48         --without-pangoft2 \
49         --without-python \
50         --without-tiff \
51         --without-v4l \
52         --without-x \
53         --without-zip \
54         --with-jpeg \
55         --with-libexif \
56         --with-png \
57
58 define Build/InstallDev
59         $(INSTALL_DIR) $(1)/usr/include/vips
60         $(CP) \
61                 $(PKG_INSTALL_DIR)/usr/include/* \
62                 $(1)/usr/include/
63
64         $(INSTALL_DIR) $(1)/usr/lib/
65         $(CP) \
66                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
67                 $(1)/usr/lib/
68
69         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
70         $(INSTALL_DATA) \
71                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
72                 $(1)/usr/lib/pkgconfig/
73 endef
74
75 define Package/vips/install
76         $(INSTALL_DIR) $(1)/usr/lib/
77         $(CP) \
78                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
79                 $(1)/usr/lib/
80 endef
81
82 $(eval $(call BuildPackage,vips))