1#
2# Copyright (C) 2014 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libroxml
11PKG_VERSION:=2.3.0
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://download.libroxml.net/pool/v2.x
16PKG_MD5SUM:=a975f91be150f7a19168a45ce15769ca
17PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
18
19PKG_INSTALL:=1
20PKG_BUILD_PARALLEL:=1
21PKG_LICENSE:=LGPL-2.1+
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libroxml
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=Minimum, easy-to-use, C implementation for xml file parsing
29  URL:=http://www.libroxml.net/
30endef
31
32CONFIGURE_ARGS += \
33	--enable-shared \
34	--enable-static \
35	--disable-roxml
36
37define Build/InstallDev
38	$(INSTALL_DIR) $(1)
39	$(CP) $(PKG_INSTALL_DIR)/* $(1)/
40endef
41
42define Package/libroxml/install
43	$(INSTALL_DIR) $(1)/usr/lib
44	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libroxml.so.* $(1)/usr/lib/
45endef
46
47$(eval $(call BuildPackage,libroxml))
48