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.

78 lines
1.7 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.54.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.54
  13. PKG_HASH:=47b42c232034734d66e5f093025843a5d8cc4b2357c011085a2fd04ef02dd633
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. TARGET_LDFLAGS+=\
  21. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
  22. define Package/libsoup
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=libsoup
  26. URL:=http://live.gnome.org/LibSoup
  27. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  28. DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  29. endef
  30. define Build/Configure
  31. $(call Build/Configure/Default, \
  32. --enable-ssl \
  33. --disable-glibtest \
  34. --without-apache-httpd \
  35. --without-gnome \
  36. --without-gssapi \
  37. --enable-vala=no \
  38. --disable-more-warnings \
  39. )
  40. endef
  41. define package/libsoup/decription
  42. Libsoup is an HTTP library implementation in C
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
  48. $(1)/usr/lib/
  49. $(INSTALL_DATA) \
  50. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  51. $(1)/usr/lib/pkgconfig/
  52. $(INSTALL_DATA) \
  53. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  54. $(1)/usr/include/libsoup-2.4/libsoup/
  55. endef
  56. define Package/libsoup/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  60. $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,libsoup))