Merge pull request #2751 from dibdot/adblock
[feed/packages.git] / libs / libsoup / Makefile
1 #
2 # Copyright (C) 2014 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:=libsoup
11 PKG_VERSION:=2.53.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.53
16 PKG_MD5SUM:=dc23612d6365a0b8a6a650ffe0bdcb4c
17
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26
27 TARGET_LDFLAGS+=\
28 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
29
30 define Package/libsoup
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=libsoup
34 URL:=http://live.gnome.org/LibSoup
35 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
36 DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --enable-ssl \
42 --disable-glibtest \
43 --without-apache-httpd \
44 --without-gnome \
45 --enable-vala=no \
46 )
47 endef
48
49 define package/libsoup/decription
50 Libsoup is an HTTP library implementation in C
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
55
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
58 $(1)/usr/lib/
59
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
62 $(1)/usr/lib/pkgconfig/
63
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
66 $(1)/usr/include/libsoup-2.4/libsoup/
67 endef
68
69 define Package/libsoup/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
73 $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,libsoup))