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.

69 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2016 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:=loudmouth
  9. PKG_VERSION:=1.5.3
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2.1
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_MIRROR_HASH:=46a3f1a13a6ec5ff5377c028ce25bc723ab86247af40e686aa2b24718a5cd0d1
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE_URL:=https://github.com/mcabber/loudmouth.git
  19. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/loudmouth
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+glib2 +libopenssl +PACKAGE_krb5-libs:krb5-libs
  27. TITLE:=loudmouth
  28. URL:=https://github.com/mcabber/loudmouth
  29. endef
  30. define Package/loudmouth/description
  31. Lightweight and easy-to-use C library for programming with the Jabber protocol
  32. endef
  33. CONFIGURE_ARGS += \
  34. --with-ssl=openssl \
  35. --with-idn=no
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/ \
  40. $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib/
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  44. $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  46. $(INSTALL_DATA) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/loudmouth/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,loudmouth))