at: bump version
[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.54.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.54
16 PKG_HASH:=47b42c232034734d66e5f093025843a5d8cc4b2357c011085a2fd04ef02dd633
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 --without-gssapi \
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))