Merge pull request #2626 from bk138/gzip
[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:=2
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_REMOVE_FILES:=m4/intltool.m4
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 TARGET_LDFLAGS+=\
29 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
30
31 define Package/libsoup
32 SECTION:=libs
33 CATEGORY:=Libraries
34 TITLE:=libsoup
35 URL:=http://live.gnome.org/LibSoup
36 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
37 DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --enable-ssl \
43 --disable-glibtest \
44 --without-apache-httpd \
45 --without-gnome \
46 --enable-vala=no \
47 --disable-more-warnings \
48 )
49 endef
50
51 define package/libsoup/decription
52 Libsoup is an HTTP library implementation in C
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
57
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
60 $(1)/usr/lib/
61
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
64 $(1)/usr/lib/pkgconfig/
65
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
68 $(1)/usr/include/libsoup-2.4/libsoup/
69 endef
70
71 define Package/libsoup/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
75 $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,libsoup))