2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://iksemel.googlecode.com
/files
/
16 PKG_MD5SUM
:=532e77181694f87ad5eb59435d11c1ca
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libiksemel
27 TITLE
:=Iksemel Jabber Library
28 URL
:=http
://code.google.com
/p
/iksemel
/
29 DEPENDS
:= +libgnutls
+libtasn1
+libgcrypt
+libgpg-error
32 define Package
/libiksemel
/description
33 Iksemel is an XML parser library mainly designed for Jabber applications.
34 It provides SAX
, DOM
, and special Jabber stream APIs. Library is coded
35 in ANSI C except the network code
(which is POSIX compatible
), thus
39 TARGET_CFLAGS
+= $(FPIC
)
41 -Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib \
42 -lgnutls
-lgcrypt
-lgpg-error
44 define Build
/Configure
45 $(call Build
/Configure
/Default
, \
48 --with-libgnutls-prefix
="$(STAGING_DIR)/usr" \
50 LIBS
="$(TARGET_LDFLAGS)" \
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/iksemel.h
$(1)/usr
/include/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiksemel.
{a
,so
*} $(1)/usr
/lib
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/iksemel.
pc $(1)/usr
/lib
/pkgconfig
/
63 define Package
/libiksemel
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiksemel.so.
* $(1)/usr
/lib
/
68 $(eval
$(call BuildPackage
,libiksemel
))