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.

76 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.72.0
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.72
  11. PKG_HASH:=170c3f8446b0f65f8e4b93603349172b1085fb8917c181d10962f02bb85f5387
  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:=glib2/host
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include $(INCLUDE_DIR)/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. -Dsysprof=disabled
  40. define package/libsoup/decription
  41. Libsoup is an HTTP library implementation in C
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  47. $(1)/usr/lib/
  48. $(INSTALL_DATA) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  50. $(1)/usr/lib/pkgconfig/
  51. $(INSTALL_DATA) \
  52. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  53. $(1)/usr/include/libsoup-2.4/libsoup/
  54. endef
  55. define Package/libsoup/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  59. $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,libsoup))