[net] Telephony: Yate: Added conffiles. Fixes overwriting of configuration on reinst...
[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 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
30 endef
31
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
36 highly portable.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40 TARGET_LDFLAGS += \
41 -Wl,-rpath-link,$(STAGING_DIR)/usr/lib \
42 -lgnutls -lgcrypt -lgpg-error
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 --enable-shared \
47 --enable-static \
48 --with-libgnutls-prefix="$(STAGING_DIR)/usr" \
49 , \
50 LIBS="$(TARGET_LDFLAGS)" \
51 )
52 endef
53
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/
61 endef
62
63 define Package/libiksemel/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,libiksemel))