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.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:=3
  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:=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
  14. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  15. PKG_LICENSE:=LGPLv2.1
  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. define Package/loudmouth
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+glib2 +libopenssl +PACKAGE_krb5-libs:krb5-libs
  25. TITLE:=loudmouth
  26. URL:=https://github.com/mcabber/loudmouth
  27. endef
  28. define Package/loudmouth/description
  29. Lightweight and easy-to-use C library for programming with the Jabber protocol
  30. endef
  31. CONFIGURE_ARGS += \
  32. --disable-debug \
  33. --without-compile-warnings \
  34. --without-idn \
  35. --with-ssl=openssl
  36. CONFIGURE_VARS += \
  37. ac_cv_lib_crypto_BIO_f_base64=yes \
  38. ac_cv_lib_ssl_SSL_new=yes
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/ \
  43. $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib/
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  47. $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  49. $(INSTALL_DATA) \
  50. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  51. $(1)/usr/lib/pkgconfig/
  52. endef
  53. define Package/loudmouth/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,loudmouth))