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.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.53.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.53
  13. PKG_MD5SUM:=dc23612d6365a0b8a6a650ffe0bdcb4c
  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. --enable-vala=no \
  37. )
  38. endef
  39. define package/libsoup/decription
  40. Libsoup is an HTTP library implementation in C
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  49. $(1)/usr/lib/pkgconfig/
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  52. $(1)/usr/include/libsoup-2.4/libsoup/
  53. endef
  54. define Package/libsoup/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libsoup))