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.

73 lines
1.7 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.4
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/mcabber/loudmouth/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=d1f66d479bb9a2794c52e997a9db9271f7fd004e264fe1ff4302607deb083375
  14. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/loudmouth
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:=+glib2 +libopenssl +PACKAGE_krb5-libs:krb5-libs
  26. TITLE:=loudmouth
  27. URL:=https://github.com/mcabber/loudmouth
  28. endef
  29. define Package/loudmouth/description
  30. Lightweight and easy-to-use C library for programming with the Jabber protocol
  31. endef
  32. CONFIGURE_ARGS += \
  33. --disable-debug \
  34. --without-compile-warnings \
  35. --without-idn \
  36. --with-ssl=openssl
  37. CONFIGURE_VARS += \
  38. ac_cv_lib_crypto_BIO_f_base64=yes \
  39. ac_cv_lib_ssl_SSL_new=yes
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include/
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/ \
  44. $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/loudmouth/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,loudmouth))