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.6 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.44.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.44
  13. PKG_MD5SUM:=92aa3667357157e8f3489bcca287f2fa
  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. )
  37. endef
  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*,la,a} \
  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))