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.

71 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.9.2
  10. PKG_RELEASE=2
  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://codeload.github.com/strophe/libstrophe/tar.gz/$(PKG_VERSION)?
  15. PKG_SOURCE_VERSION:=9931ad4fa2aa7f204c608010eb2ebf84bcf7d542
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_HASH:=158145bc1565a5fd0bbd7f57e3e15d768e58b8a460897ab5918a5a689d67ae6f
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_CONFIG_DEPENDS:= \
  21. CONFIG_libstrophe-libxml2 \
  22. CONFIG_libstrophe-expat
  23. include $(INCLUDE_DIR)/package.mk
  24. ifeq ($(CONFIG_libstrophe-libxml2),y)
  25. CONFIGURE_ARGS += \
  26. --with-libxml2
  27. endif
  28. define Package/libstrophe
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. TITLE:=XMPP client library
  32. URL:=http://strophe.im/libstrophe
  33. DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
  34. MENU:=1
  35. endef
  36. define Package/libstrophe/description
  37. A simple, lightweight C library for writing XMPP clients
  38. endef
  39. define Package/libstrophe/config
  40. source "$(SOURCE)/Config.in"
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libstrophe.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libstrophe/install
  53. $(INSTALL_DIR) $(1)/usr/lib/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
  55. endef
  56. $(eval $(call BuildPackage,libstrophe))