Update to 7.24.1
[openwrt/svn-archive/archive.git] / libs / vips / Makefile
1 #
2 # Copyright (C) 2010 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.24.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.24/
16 PKG_MD5SUM:=7e9d34960c3453f3b8d1d4300fe4b7a0
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/Default
25 TITLE:=vips
26 URL:=http://www.vips.ecs.soton.ac.uk/
27 endef
28
29 define Package/vips
30 $(call Package/vips/Default)
31 SECTION:=multimedia
32 CATEGORY:=Multimedia
33 DEPENDS:=+libjpeg +glib2 +libxml2 +imagemagick +libfreetype $(INTL_DEPENDS)
34 endef
35
36 define Package/vips/description
37 An image manipulation library.
38 endef
39
40 TARGET_LDFLAGS+= \
41 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
42
43 CONFIGURE_ARGS += \
44 --disable-cxx \
45 --disable-threads \
46 --without-liboil
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/vips
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/include/* \
52 $(1)/usr/include/
53
54 $(INSTALL_DIR) $(1)/usr/lib/
55 $(CP) \
56 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
57 $(1)/usr/lib/
58
59 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
62 $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/vips/install
66 $(INSTALL_DIR) $(1)/usr/lib/
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
69 $(1)/usr/lib/
70 endef
71
72 $(eval $(call BuildPackage,vips))