Merge pull request #3726 from dibdot/adblock
[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_SOURCE_PROTO:=git
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22 PKG_SOURCE_URL:=https://github.com/mcabber/loudmouth.git
23 PKG_SOURCE_VERSION:=$(PKG_VERSION)
24 PKG_MD5SUM:=7616cf124a8d72d007e7475b5aeb20ad
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
46 define Build/Configure
47 ( cd $(PKG_BUILD_DIR); ./autogen.sh )
48 $(call Build/Configure/Default)
49 endef
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))