f8ad4df6c88ef31f8505ee259c51b5f234de8e5a
[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/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include/
48 $(CP) \
49 $(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/ \
50 $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib/
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
54 $(1)/usr/lib/
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
56 $(INSTALL_DATA) \
57 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
58 $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/loudmouth/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
65 $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,loudmouth))