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.

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