2009-11-29 22:06:46 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2007-09-04 19:41:48 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iksemel
|
2009-11-29 22:06:46 +00:00
|
|
|
PKG_VERSION:=1.4
|
2007-09-04 19:41:48 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://iksemel.googlecode.com/files/
|
2009-11-29 22:06:46 +00:00
|
|
|
PKG_MD5SUM:=532e77181694f87ad5eb59435d11c1ca
|
2007-09-04 19:41:48 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-12-09 14:11:58 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-09-04 19:41:48 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libiksemel
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Iksemel Jabber Library
|
|
|
|
URL:=http://code.google.com/p/iksemel/
|
2008-09-29 03:36:48 +00:00
|
|
|
DEPENDS:= +libgnutls +libtasn1
|
2007-09-04 19:41:48 +00:00
|
|
|
endef
|
|
|
|
|
2009-11-29 22:06:46 +00:00
|
|
|
define Package/libiksemel/description
|
|
|
|
Iksemel is an XML parser library mainly designed for Jabber applications.
|
|
|
|
It provides SAX, DOM, and special Jabber stream APIs. Library is coded
|
|
|
|
in ANSI C except the network code (which is POSIX compatible), thus
|
|
|
|
highly portable.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-Wl,-rpath-link,$(STAGING_DIR)/usr/lib \
|
|
|
|
-lgnutls -lgcrypt -lgpg-error
|
2008-08-06 22:43:15 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-libgnutls-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
, \
|
|
|
|
LIBS="$(TARGET_LDFLAGS)" \
|
|
|
|
)
|
2007-09-04 19:41:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/iksemel.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/iksemel.pc $(1)/usr/lib/pkgconfig/
|
2007-09-04 19:41:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiksemel/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libiksemel))
|