yate: fix typo
[feed/telephony.git] / libs / iksemel / Makefile
1 #
2 # Copyright (C) 2014 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:=iksemel
11 PKG_VERSION:=1.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://iksemel.googlecode.com/files/
16 PKG_MD5SUM:=532e77181694f87ad5eb59435d11c1ca
17
18 PKG_FIXUP:=autoreconf
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libiksemel
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=Iksemel Jabber Library
28   URL:=http://code.google.com/p/iksemel/
29   DEPENDS:= +libgnutls +libtasn1 +libgcrypt +libgpg-error
30   MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
31 endef
32
33 define Package/libiksemel/description
34 Iksemel is an XML parser library mainly designed for Jabber applications.
35 It provides SAX, DOM, and special Jabber stream APIs. Library is coded
36 in ANSI C except the network code (which is POSIX compatible), thus
37 highly portable.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41 TARGET_LDFLAGS += \
42         -Wl,-rpath-link,$(STAGING_DIR)/usr/lib \
43         -lgnutls -lgcrypt -lgpg-error
44
45 define Build/Configure
46         $(call Build/Configure/Default, \
47                 --enable-shared \
48                 --enable-static \
49                 --with-libgnutls-prefix="$(STAGING_DIR)/usr" \
50                 , \
51                 LIBS="$(TARGET_LDFLAGS)" \
52         )
53 endef
54
55 define Build/InstallDev
56         $(INSTALL_DIR) $(1)/usr/include/
57         $(CP) $(PKG_INSTALL_DIR)/usr/include/iksemel.h $(1)/usr/include/
58         
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.{a,so*} $(1)/usr/lib/
61         
62         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
63         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/iksemel.pc $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libiksemel/install
67         $(INSTALL_DIR) $(1)/usr/lib
68         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.so* $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libiksemel))