@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := libxml2
PKG_NAME := libxml2
PKG_VERSION := 2.9.9
PKG_VERSION := 2.9.9
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://xmlsoft.org/sources/
PKG_SOURCE_URL := http://xmlsoft.org/sources/
@ -40,6 +40,34 @@ define Package/libxml2/description
A library for manipulating XML and HTML resources.
A library for manipulating XML and HTML resources.
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - d e v
SECTION:= devel
CATEGORY:= Development
SUBMENU:= Libraries
TITLE:= Development files for libxml2
URL:= http://xmlsoft.org/
DEPENDS:= +libxml2
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - d e v / d e s c r i p t i o n
A library for manipulating XML and HTML resources.
This package contains the headers and xml2-config binary.
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - u t i l s
SECTION:= utils
CATEGORY:= Utilities
TITLE:= XML command line utilities ( xmllint...)
URL:= http://xmlsoft.org/
DEPENDS:= +libxml2
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - u t i l s / d e s c r i p t i o n
This package contains the binaries xmllint and xmlcatalog
from libxml2, a library for manipulating XML and HTML resources.
e n d e f
TARGET_CFLAGS += $( FPIC)
TARGET_CFLAGS += $( FPIC)
CONFIGURE_ARGS += \
CONFIGURE_ARGS += \
@ -130,7 +158,32 @@ endef
d e f i n e P a c k a g e / l i b x m l 2 / i n s t a l l
d e f i n e P a c k a g e / l i b x m l 2 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libxml2.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libxml2.so.* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - d e v / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/xml2-config $( 1) /usr/bin/
$( SED) " s, $( STAGING_DIR) ,,g " $( 1) /usr/bin/xml2-config
$( INSTALL_DIR) $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/include/* $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libxml2.so $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/{ cmake,pkgconfig}
$( CP) $( PKG_INSTALL_DIR) /usr/lib/{ cmake,pkgconfig} $( 1) /usr/lib/
$( SED) " s, $( STAGING_DIR) ,,g " $( 1) /usr/lib/pkgconfig/*.pc
$( INSTALL_DIR) $( 1) /usr/share/aclocal
$( CP) $( PKG_INSTALL_DIR) /usr/share/aclocal/* $( 1) /usr/share/aclocal
e n d e f
d e f i n e P a c k a g e / l i b x m l 2 - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/xmllint $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/xmlcatalog $( 1) /usr/bin/
e n d e f
e n d e f
d e f i n e H o s t / I n s t a l l
d e f i n e H o s t / I n s t a l l
@ -140,3 +193,5 @@ endef
$( eval $ ( call HostBuild ) )
$( eval $ ( call HostBuild ) )
$( eval $ ( call BuildPackage ,libxml 2) )
$( eval $ ( call BuildPackage ,libxml 2) )
$( eval $ ( call BuildPackage ,libxml 2-dev ) )
$( eval $ ( call BuildPackage ,libxml 2-utils ) )