You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libsoup
  7. PKG_VERSION:=2.70.0
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.70
  11. PKG_HASH:=54b020f74aefa438918d8e53cff62e2b1e59efe2de53e06b19a4b07b1f4d5342
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_CPE_ID:=cpe:/a:gnome:libsoup
  16. PKG_BUILD_DEPENDS:=meson/host glib2/host
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include ../../devel/meson/meson.mk
  21. define Package/libsoup
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=libsoup
  25. URL:=https://wiki.gnome.org/Projects/libsoup
  26. DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. endef
  28. MESON_ARGS += \
  29. -Dgssapi=disabled \
  30. -Dntlm=disabled \
  31. -Dbrotli=disabled \
  32. -Dtls_check=false \
  33. -Dgnome=false \
  34. -Dintrospection=disabled \
  35. -Dvapi=disabled \
  36. -Dgtk_doc=false \
  37. -Dtests=false \
  38. -Dinstalled_tests=false
  39. define package/libsoup/decription
  40. Libsoup is an HTTP library implementation in C
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  46. $(1)/usr/lib/
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  49. $(1)/usr/lib/pkgconfig/
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  52. $(1)/usr/include/libsoup-2.4/libsoup/
  53. endef
  54. define Package/libsoup/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libsoup))