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.

80 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libsoup
  9. PKG_VERSION:=2.65.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.65
  13. PKG_HASH:=3f3718623338f1bd7d7899dae2bdb613348212d59999a27432120afc1435ff04
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:gnome:libsoup
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. TARGET_LDFLAGS+=\
  23. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
  24. define Package/libsoup
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=libsoup
  28. URL:=https://wiki.gnome.org/Projects/libsoup
  29. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  30. DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl $(ICONV_DEPENDS) $(INTL_DEPENDS)
  31. endef
  32. define Build/Configure
  33. $(call Build/Configure/Default, \
  34. --disable-glibtest \
  35. --disable-gtk-doc-html \
  36. --disable-more-warnings \
  37. --disable-vala \
  38. --without-apache-httpd \
  39. --without-gnome \
  40. --without-gssapi \
  41. )
  42. endef
  43. define package/libsoup/decription
  44. Libsoup is an HTTP library implementation in C
  45. endef
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
  50. $(1)/usr/lib/
  51. $(INSTALL_DATA) \
  52. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  53. $(1)/usr/lib/pkgconfig/
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  56. $(1)/usr/include/libsoup-2.4/libsoup/
  57. endef
  58. define Package/libsoup/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) \
  61. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  62. $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,libsoup))