vips: use libtool/autoconf fixups, fix linker errors
[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.22.4
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.22/
16 PKG_MD5SUM:=852913223ce5dc115bc7088e7c9d1596
17 PKG_FIXUP = libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/vips/Default
24 TITLE:=vips
25 URL:=http://www.vips.ecs.soton.ac.uk/
26 endef
27
28 define Package/vips
29 $(call Package/vips/Default)
30 SECTION:=multimedia
31 CATEGORY:=Multimedia
32 DEPENDS:=+libjpeg +libintl +glib2 +libxml2 +imagemagick +libfreetype
33 endef
34
35 define Package/vips/description
36 An image manipulation library.
37 endef
38
39 TARGET_CFLAGS+= \
40 -I$(STAGING_DIR)/usr/lib/libintl/include
41
42 TARGET_LDFLAGS+= \
43 -L$(STAGING_DIR)/usr/lib/libintl/lib \
44 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
45
46 CONFIGURE_ARGS += \
47 --disable-cxx \
48 --disable-threads \
49 --without-liboil
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include/vips
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/include/* \
55 $(1)/usr/include/
56
57 $(INSTALL_DIR) $(1)/usr/lib/
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
60 $(1)/usr/lib/
61
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
63 $(INSTALL_DATA) \
64 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
65 $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/vips/install
69 $(INSTALL_DIR) $(1)/usr/lib/
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
72 $(1)/usr/lib/
73 endef
74
75 $(eval $(call BuildPackage,vips))