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