2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 include $(INCLUDE_DIR
)/package.mk
22 define Package
/vips
/Default
24 URL
:=http
://www.vips.ecs.soton.ac.uk
/
28 $(call Package
/vips
/Default
)
31 DEPENDS
:=+libjpeg
+libintl
+glib2
+libxml2
34 define Package
/vips
/description
35 An image manipulation library.
39 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include
42 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib
44 define Build
/Configure
45 ( cd
"$(PKG_BUILD_DIR)" && aclocal
&& libtoolize
--force && autoconf
)
46 $(call Build
/Configure
/Default
, \
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include/vips
56 $(PKG_INSTALL_DIR
)/usr
/include/* \
59 $(INSTALL_DIR
) $(1)/usr
/lib
/
61 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
64 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
66 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
67 $(1)/usr
/lib
/pkgconfig
/
70 define Package
/vips
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
/
73 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
77 $(eval
$(call BuildPackage
,vips
))