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.

72 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.3
  10. PKG_RELEASE=1
  11. PKG_LICENSE:=GPL-3.0-or-later
  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:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_HASH:=8a3b79f62177ed59c01d4d4108357ff20bd933d53b845ee4e350d304c051a4fe
  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. 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))