howl: add missing dependencies
[openwrt/svn-archive/archive.git] / libs / libsoup / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libsoup
4 PKG_VERSION:=2.28.2
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.28
9 PKG_MD5SUM:=31d7ad416005eed4b78f07ac01b6b9f0
10
11 PKG_FIXUP:=autoreconf
12 PKG_INSTALL:=1
13
14 include $(INCLUDE_DIR)/package.mk
15 include $(INCLUDE_DIR)/nls.mk
16
17 TARGET_LDFLAGS+=\
18 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
19
20 define Package/libsoup
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=libsoup
24 URL:=http://live.gnome.org/LibSoup
25 DEPENDS:=+glib2 +libxml2 +libgnutls
26 endef
27
28 define Build/Configure
29 $(call Build/Configure/Default, \
30 --enable-ssl \
31 --disable-glibtest \
32 --without-apache-httpd \
33 --without-gnome \
34 )
35 endef
36
37 define package/libsoup/decription
38 Libsoup is an HTTP library implementation in C
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
43
44 $(CP) \
45 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
46 $(1)/usr/lib/
47
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
50 $(1)/usr/lib/pkgconfig/
51
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
54 $(1)/usr/include/libsoup-2.4/libsoup/
55 endef
56
57 define Package/libsoup/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
61 $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libsoup))