Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libsoup
  7. PKG_VERSION:=2.54.1
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.54
  11. PKG_MD5SUM:=73b1fb774de16c29b380f87016f9f9dd
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_BUILD_DEPENDS:=intltool/host
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/libsoup
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=libsoup
  24. URL:=http://live.gnome.org/LibSoup
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  26. DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. endef
  28. CONFIGURE_ARGS += \
  29. --enable-ssl \
  30. --disable-glibtest \
  31. --without-apache-httpd \
  32. --without-gnome \
  33. --without-gssapi \
  34. --enable-vala=no \
  35. --disable-more-warnings
  36. define package/libsoup/decription
  37. Libsoup is an HTTP library implementation in C
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/libsoup-2.4/libsoup}
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.{so*,la,a} \
  43. $(1)/usr/lib/
  44. $(INSTALL_DATA) \
  45. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  46. $(1)/usr/lib/pkgconfig/
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/include/libsoup-2.4/libsoup/*.h \
  49. $(1)/usr/include/libsoup-2.4/libsoup/
  50. endef
  51. define Package/libsoup/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libsoup-2.4.so* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libsoup))