Makefile 1.6 KB

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