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.53.2
  10. PKG_RELEASE:=2
  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_REMOVE_FILES:=m4/intltool.m4
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. TARGET_LDFLAGS+=\
  22. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
  23. define Package/libsoup
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=libsoup
  27. URL:=http://live.gnome.org/LibSoup
  28. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  29. DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  30. endef
  31. define Build/Configure
  32. $(call Build/Configure/Default, \
  33. --enable-ssl \
  34. --disable-glibtest \
  35. --without-apache-httpd \
  36. --without-gnome \
  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))