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