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.

65 lines
1.4 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.8.8
  10. PKG_RELEASE=1
  11. PKG_LICENSE:=GPL-3.0
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_MAINTAINER:=Chih-Wei Chen <changeway@gmail.com>
  14. PKG_SOURCE_URL:=https://github.com/strophe/libstrophe/archive/
  15. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_CONFIG_DEPENDS:= \
  19. CONFIG_libstrophe-libxml2 \
  20. CONFIG_libstrophe-expat
  21. include $(INCLUDE_DIR)/package.mk
  22. ifeq ($(CONFIG_libstrophe-libxml2),y)
  23. CONFIGURE_ARGS += \
  24. --with-libxml2
  25. endif
  26. define Package/libstrophe
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=XMPP client library
  30. URL:=http://strophe.im/libstrophe
  31. DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
  32. MENU:=1
  33. endef
  34. define Package/libstrophe/description
  35. A simple, lightweight C library for writing XMPP clients
  36. endef
  37. define Package/libstrophe/config
  38. source "$(SOURCE)/Config.in"
  39. endef
  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. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
  45. endef
  46. define Package/libstrophe/install
  47. $(INSTALL_DIR) $(1)/usr/lib/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
  49. endef
  50. $(eval $(call BuildPackage,libstrophe))