Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.60.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.60
  13. PKG_HASH:=1b0dc762f23abe4e0d29b77370e539fd35f31d8e8e0318d6ddccff395be68a22
  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))