postgresql: moved to github
[packages.git] / libs / loudmouth / Makefile
1 #
2 # Copyright (C) 2011-2013 Entware
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:=libloudmouth1
11 PKG_VERSION:=1.5.0-20121201
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=loudmouth-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://mcabber.com/files/
16 PKG_MD5SUM:=c03025069d376049eee8af4fbaf4d9cf
17 PKG_BUILD_DIR:=$(BUILD_DIR)/loudmouth-$(PKG_VERSION)
18
19 PKG_INSTALL:=1
20
21 PKG_BUILD_DEPENDS:=libopenssl
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25
26 define Package/libloudmouth1
27         SECTION:=libs
28         CATEGORY:=Libraries
29         DEPENDS:=+libopenssl +glib2
30         TITLE:=Lightweight C Jabber library
31         URL:=http://mcabber.com
32         MAINTAINER:=Peter Wagner <tripolar@gmx.at>
33 endef
34
35 define Package/libloudmouth1/description
36   Loudmouth is a lightweight and easy-to-use C library for programming with the
37   Jabber protocol. It's designed to be easy to get started with and yet
38   extensible to let you do anything the Jabber protocol allows.
39 endef
40
41 CONFIGURE_VARS += \
42         ac_cv_path_KRB5CONFIG=no \
43         LIBS="-liconv -lgobject-2.0"
44
45 CONFIGURE_ARGS += \
46         --with-compile-warnings=no \
47         --with-ssl=openssl
48
49 define Build/InstallDev
50         $(INSTALL_DIR) $(1)/usr/include/loudmouth-1.0/loudmouth
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/loudmouth/*.h $(1)/usr/include/loudmouth-1.0/loudmouth
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libloudmouth-1.{a,la,so*} $(1)/usr/lib/
54         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/loudmouth-1.0.pc $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/libloudmouth1/install
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_BUILD_DIR)/loudmouth/.libs/libloudmouth-1.so* $(1)/usr/lib
61 endef
62
63 $(eval $(call BuildPackage,libloudmouth1))