bluez-tools: Add package bluezetools
[feed/packages.git] / libs / libsoup / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libsoup
9 PKG_VERSION:=2.72.0
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.72
14 PKG_HASH:=170c3f8446b0f65f8e4b93603349172b1085fb8917c181d10962f02bb85f5387
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:gnome:libsoup
20
21 PKG_BUILD_DEPENDS:=glib2/host
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26 include $(INCLUDE_DIR)/meson.mk
27
28 define Package/libsoup
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=libsoup
32 URL:=https://wiki.gnome.org/Projects/libsoup
33 DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl $(ICONV_DEPENDS) $(INTL_DEPENDS)
34 endef
35
36 MESON_ARGS += \
37 -Dgssapi=disabled \
38 -Dntlm=disabled \
39 -Dbrotli=disabled \
40 -Dtls_check=false \
41 -Dgnome=false \
42 -Dintrospection=disabled \
43 -Dvapi=disabled \
44 -Dgtk_doc=false \
45 -Dtests=false \
46 -Dinstalled_tests=false \
47 -Dsysprof=disabled
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* \
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))