[package] update libiksemel to 1.4 (#6250)
[openwrt/svn-archive/archive.git] / libs / iksemel / Makefile
1 #
2 # Copyright (C) 2006-2009 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 = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libiksemel
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Iksemel Jabber Library
26 URL:=http://code.google.com/p/iksemel/
27 DEPENDS:= +libgnutls +libtasn1
28 endef
29
30 define Package/libiksemel/description
31 Iksemel is an XML parser library mainly designed for Jabber applications.
32 It provides SAX, DOM, and special Jabber stream APIs. Library is coded
33 in ANSI C except the network code (which is POSIX compatible), thus
34 highly portable.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42 --with-libgnutls-prefix="$(STAGING_DIR)/usr" \
43
44 CONFIGURE_VARS += \
45 LIBS="$(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -lgnutls -lgcrypt -lgpg-error" \
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(1)/usr/include/
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/iksemel.h $(1)/usr/include/
54 mkdir -p $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.{a,so*} $(1)/usr/lib/
56 mkdir -p $(1)/usr/lib/pkgconfig
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/iksemel.pc $(1)/usr/lib/pkgconfig/
58 endef
59
60 define Package/libiksemel/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libiksemel))