#
# Copyright (C) 2007-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=xmlstarlet
PKG_VERSION:=1.5.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://sourceforge.net/projects/xmlstar/files/xmlstarlet/1.5.0
PKG_MD5SUM:=0c6db295d0cf9ff0d439edb755b7e8f6

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/xmlstarlet
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=An xml editor
  URL:=http://xmlstar.sourceforge.net/
  MAINTAINER:=Mikhail Grushinskiy
  DEPENDS:=
endef

define Package/xmlstarlet/description
  XMLStarlet is open source free software under MIT license which allows free use and distribution for both commercial and non-commercial projects.
endef

CONFIGURE_ARGS += 


CONFIGURE_VARS += \
	ac_cv_header_regex_h=no \

define Package/xmlstarlet/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
endef

$(eval $(call BuildPackage,xmlstarlet))
