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.

69 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2015 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:=libstrophe
  9. PKG_VERSION:=0.10.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/strophe/libstrophe/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=8d804e4c74cea1133203cc95a59a88f700fbdaead076e7959b495d734dd7936d
  14. PKG_MAINTAINER:=Chih-Wei Chen <changeway@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_CONFIG_DEPENDS:= \
  21. CONFIG_libstrophe-libxml2 \
  22. CONFIG_libstrophe-expat
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/libstrophe
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=XMPP client library
  28. URL:=http://strophe.im/libstrophe
  29. DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
  30. MENU:=1
  31. endef
  32. define Package/libstrophe/description
  33. A simple, lightweight C library for writing XMPP clients
  34. endef
  35. define Package/libstrophe/config
  36. source "$(SOURCE)/Config.in"
  37. endef
  38. CONFIGURE_ARGS += \
  39. --with$(if $(CONFIG_libstrophe-libxml2),,out)-libxml2
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
  43. $(INSTALL_DIR) $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libstrophe.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libstrophe/install
  51. $(INSTALL_DIR) $(1)/usr/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
  53. endef
  54. $(eval $(call BuildPackage,libstrophe))