| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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:=libsoup3 |
| 9 | PKG_VERSION:=3.4.4 |
| 10 | PKG_RELEASE:=1 |
| 11 | |
| 12 | PKG_SOURCE:=libsoup-$(PKG_VERSION).tar.xz |
| 13 | PKG_SOURCE_URL:=@GNOME/libsoup/$(basename $(PKG_VERSION)) |
| 14 | PKG_HASH:=291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa |
| 15 | PKG_BUILD_DIR:=$(BUILD_DIR)/libsoup-$(PKG_VERSION) |
| 16 | |
| 17 | PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> |
| 18 | PKG_LICENSE:=LGPL-2.1-or-later |
| 19 | PKG_LICENSE_FILES:=COPYING |
| 20 | PKG_CPE_ID:=cpe:/a:gnome:libsoup |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=glib2/host |
| 23 | |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | include $(INCLUDE_DIR)/nls.mk |
| 26 | include $(INCLUDE_DIR)/meson.mk |
| 27 | |
| 28 | define Package/libsoup3 |
| 29 | SECTION:=libs |
| 30 | CATEGORY:=Libraries |
| 31 | TITLE:=libsoup3 |
| 32 | URL:=https://wiki.gnome.org/Projects/libsoup |
| 33 | DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl +libnghttp2 |
| 34 | endef |
| 35 | |
| 36 | MESON_ARGS += \ |
| 37 | -Dgssapi=disabled \ |
| 38 | -Dntlm=disabled \ |
| 39 | -Dbrotli=disabled \ |
| 40 | -Dtls_check=false \ |
| 41 | -Dintrospection=disabled \ |
| 42 | -Dvapi=disabled \ |
| 43 | -Dtests=false \ |
| 44 | -Dinstalled_tests=false \ |
| 45 | -Dsysprof=disabled |
| 46 | |
| 47 | define package/libsoup3/decription |
| 48 | Libsoup is an HTTP library implementation in C |
| 49 | endef |
| 50 | |
| 51 | define Build/InstallDev |
| 52 | $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-3.0/libsoup} |
| 53 | |
| 54 | $(CP) \ |
| 55 | $(PKG_INSTALL_DIR)/usr/lib/libsoup-3.0.so* \ |
| 56 | $(1)/usr/lib/ |
| 57 | |
| 58 | $(INSTALL_DATA) \ |
| 59 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ |
| 60 | $(1)/usr/lib/pkgconfig/ |
| 61 | |
| 62 | $(INSTALL_DATA) \ |
| 63 | $(PKG_INSTALL_DIR)/usr/include/libsoup-3.0/libsoup/*.h \ |
| 64 | $(1)/usr/include/libsoup-3.0/libsoup/ |
| 65 | endef |
| 66 | |
| 67 | define Package/libsoup3/install |
| 68 | $(INSTALL_DIR) $(1)/usr/lib |
| 69 | $(CP) \ |
| 70 | $(PKG_INSTALL_DIR)/usr/lib/libsoup-3.0.* \ |
| 71 | $(1)/usr/lib/ |
| 72 | endef |
| 73 | |
| 74 | $(eval $(call BuildPackage,libsoup3)) |