2008-10-08 15:03:30 +00:00
|
|
|
#
|
2010-04-18 14:03:59 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-19 01:13:35 +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:=libxml2
|
2010-04-18 14:03:59 +00:00
|
|
|
PKG_VERSION:=2.7.7
|
|
|
|
PKG_RELEASE:=1
|
2006-07-19 01:13:35 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
|
|
|
|
ftp://fr.rpmfind.net/pub/libxml/
|
2010-04-18 14:03:59 +00:00
|
|
|
PKG_MD5SUM:=9abc9959823ca9ff904f1fbcf21df066
|
2009-10-05 15:27:32 +00:00
|
|
|
|
2008-10-08 15:03:30 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2009-10-05 15:27:32 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2006-07-19 01:13:35 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libxml2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Gnome XML library
|
|
|
|
URL:=http://xmlsoft.org/
|
2010-04-18 14:03:59 +00:00
|
|
|
DEPENDS:=+libpthread +zlib
|
2006-07-19 01:13:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-03 07:20:44 +00:00
|
|
|
define Package/libxml2/description
|
2008-10-08 15:03:30 +00:00
|
|
|
A library for manipulating XML and HTML resources.
|
2007-10-03 07:20:44 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2007-10-03 07:20:44 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2010-01-24 01:31:26 +00:00
|
|
|
--with-c14n \
|
2007-10-03 07:20:44 +00:00
|
|
|
--without-catalog \
|
|
|
|
--without-debug \
|
|
|
|
--without-docbook \
|
|
|
|
--with-html \
|
|
|
|
--without-ftp \
|
|
|
|
--without-http \
|
|
|
|
--without-iconv \
|
|
|
|
--without-iso8859x \
|
|
|
|
--without-legacy \
|
|
|
|
--with-output \
|
|
|
|
--without-pattern \
|
|
|
|
--without-push \
|
|
|
|
--without-python \
|
|
|
|
--with-reader \
|
|
|
|
--without-readline \
|
|
|
|
--without-regexps \
|
|
|
|
--with-sax1 \
|
|
|
|
--with-schemas \
|
|
|
|
--with-threads \
|
|
|
|
--with-tree \
|
|
|
|
--with-valid \
|
|
|
|
--with-writer \
|
|
|
|
--with-xinclude \
|
|
|
|
--with-xpath \
|
|
|
|
--with-xptr \
|
|
|
|
--with-zlib \
|
|
|
|
|
2008-10-08 15:03:30 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
|
|
|
|
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
|
2007-10-03 07:20:44 +00:00
|
|
|
|
2008-10-08 15:03:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/libxml2 \
|
|
|
|
$(1)/usr/include/
|
2006-07-19 01:13:35 +00:00
|
|
|
|
2008-10-08 15:03:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} \
|
2008-10-08 15:03:30 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(2)/share/aclocal/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/* \
|
|
|
|
$(2)/share/aclocal
|
2006-07-19 01:13:35 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libxml2/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-10-08 15:03:30 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* \
|
|
|
|
$(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-03 07:20:44 +00:00
|
|
|
|
2006-07-19 01:13:35 +00:00
|
|
|
$(eval $(call BuildPackage,libxml2))
|