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.

66 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.9.1
  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_MD5SUM:=2db62ab21187785ec5f870adc33b74e5
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_libstrophe-libxml2 \
  21. CONFIG_libstrophe-expat
  22. include $(INCLUDE_DIR)/package.mk
  23. ifeq ($(CONFIG_libstrophe-libxml2),y)
  24. CONFIGURE_ARGS += \
  25. --with-libxml2
  26. endif
  27. define Package/libstrophe
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. TITLE:=XMPP client library
  31. URL:=http://strophe.im/libstrophe
  32. DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
  33. MENU:=1
  34. endef
  35. define Package/libstrophe/description
  36. A simple, lightweight C library for writing XMPP clients
  37. endef
  38. define Package/libstrophe/config
  39. source "$(SOURCE)/Config.in"
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
  44. $(INSTALL_DIR) $(1)/usr/lib/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
  46. endef
  47. define Package/libstrophe/install
  48. $(INSTALL_DIR) $(1)/usr/lib/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
  50. endef
  51. $(eval $(call BuildPackage,libstrophe))