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.

70 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. include $(INCLUDE_DIR)/nls.mk
  25. define Package/libstrophe
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=XMPP client library
  29. URL:=http://strophe.im/libstrophe
  30. DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
  31. MENU:=1
  32. endef
  33. define Package/libstrophe/description
  34. A simple, lightweight C library for writing XMPP clients
  35. endef
  36. define Package/libstrophe/config
  37. source "$(SOURCE)/Config.in"
  38. endef
  39. CONFIGURE_ARGS += \
  40. --with$(if $(CONFIG_libstrophe-libxml2),,out)-libxml2
  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. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libstrophe.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libstrophe/install
  52. $(INSTALL_DIR) $(1)/usr/lib/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
  54. endef
  55. $(eval $(call BuildPackage,libstrophe))