All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Mini-XML: new package
@ 2011-07-13 13:40 Baruch Siach
  2011-07-13 14:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2011-07-13 13:40 UTC (permalink / raw)
  To: buildroot

The added patch is a workaround for cross build as follows:

	* disable run of a test binary at build time
	* disable generation of documentation using the mxmldoc binary
	* remove now non-existent entries from the install target
	* disable strip when running install

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/Config.in                                  |    1 +
 package/mxml/Config.in                             |    6 ++++
 .../mxml-2.6-fix-cross-target-installation.patch   |   32 ++++++++++++++++++++
 package/mxml/mxml.mk                               |   17 ++++++++++
 4 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 package/mxml/Config.in
 create mode 100644 package/mxml/mxml-2.6-fix-cross-target-installation.patch
 create mode 100644 package/mxml/mxml.mk

diff --git a/package/Config.in b/package/Config.in
index d073a1b..44f5b76 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -367,6 +367,7 @@ source "package/libroxml/Config.in"
 source "package/libxml-parser-perl/Config.in"
 source "package/libxml2/Config.in"
 source "package/libxslt/Config.in"
+source "package/mxml/Config.in"
 source "package/xerces/Config.in"
 source "package/yajl/Config.in"
 endmenu
diff --git a/package/mxml/Config.in b/package/mxml/Config.in
new file mode 100644
index 0000000..d3202b4
--- /dev/null
+++ b/package/mxml/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_MXML
+	bool "Mini-XML"
+	help
+	  Lightweight XML Library
+
+	  http://www.minixml.org
diff --git a/package/mxml/mxml-2.6-fix-cross-target-installation.patch b/package/mxml/mxml-2.6-fix-cross-target-installation.patch
new file mode 100644
index 0000000..f56efdc
--- /dev/null
+++ b/package/mxml/mxml-2.6-fix-cross-target-installation.patch
@@ -0,0 +1,32 @@
+diff -Nuar mxml-2.6-dist//Makefile.in mxml-2.6/Makefile.in
+--- mxml-2.6-dist//Makefile.in	2008-12-06 06:20:38.000000000 +0200
++++ mxml-2.6/Makefile.in	2011-07-13 07:25:36.615999491 +0300
+@@ -59,7 +59,7 @@
+ # Install commands...
+ #
+ 
+-INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755 -s
++INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755
+ INSTALL_DATA	=	$(INSTALL) -m 644
+ INSTALL_DIR	=	$(INSTALL) -d
+ INSTALL_LIB	=	$(LIBTOOL) $(INSTALL) -m 755
+@@ -88,7 +88,7 @@
+ 			mxml-node.o mxml-search.o mxml-set.o
+ LIBOBJS		=	$(PUBLIBOBJS) mxml-private.o mxml-string.o
+ OBJS		=	mxmldoc.o testmxml.o $(LIBOBJS)
+-TARGETS		=	$(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
++TARGETS		=	$(LIBMXML) mxmldoc libmxml.a
+ 
+ 
+ #
+@@ -144,10 +144,6 @@
+ 	$(INSTALL_DATA) mxml.h $(BUILDROOT)$(includedir)
+ 	$(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
+ 	$(INSTALL_DATA) mxml.pc $(BUILDROOT)$(libdir)/pkgconfig
+-	$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1
+-	$(INSTALL_MAN) doc/mxmldoc.man $(BUILDROOT)$(mandir)/man1/mxmldoc.1
+-	$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
+-	$(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3
+ 
+ install-libmxml.a:
+ 	$(INSTALL_DIR) $(BUILDROOT)$(libdir)
diff --git a/package/mxml/mxml.mk b/package/mxml/mxml.mk
new file mode 100644
index 0000000..a55d01d
--- /dev/null
+++ b/package/mxml/mxml.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# mxml
+#
+#############################################################
+MXML_VERSION = 2.6
+MXML_SOURCE = mxml-$(MXML_VERSION).tar.gz
+MXML_SITE = http://ftp.easysw.com/pub/mxml/2.6
+MXML_INSTALL_STAGING = YES
+MXML_INSTALL_TARGET = YES
+MXML_CONF_OPT = --enable-shared
+MXML_INSTALL_STAGING_OPT = DSTROOT=$(TARGET_DIR) install
+MXML_INSTALL_TARGET_OPT = DSTROOT=$(TARGET_DIR) install
+MXML_UNINSTALL_STAGING_OPT = DSTROOT=$(TARGET_DIR) uninstall
+MXML_UNINSTALL_TARGET_OPT = DSTROOT=$(TARGET_DIR) uninstall
+
+$(eval $(call AUTOTARGETS,package,mxml))
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] Mini-XML: new package
  2011-07-13 13:40 [Buildroot] [PATCH] Mini-XML: new package Baruch Siach
@ 2011-07-13 14:16 ` Thomas Petazzoni
  2011-07-13 14:22   ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-07-13 14:16 UTC (permalink / raw)
  To: buildroot

Le Wed, 13 Jul 2011 16:40:46 +0300,
Baruch Siach <baruch@tkos.co.il> a ?crit :

> The added patch is a workaround for cross build as follows:
> 
> 	* disable run of a test binary at build time
> 	* disable generation of documentation using the mxmldoc binary
> 	* remove now non-existent entries from the install target
> 	* disable strip when running install

Can you put these explanations in the header of the patch + add your
Signed-off-by line to this patch ?

Just curious, what is this library useful for compared to expat,
libxml2 or roxml ?

> +MXML_CONF_OPT = --enable-shared

This is not needed, it is passed automatically by Buildroot.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] Mini-XML: new package
  2011-07-13 14:16 ` Thomas Petazzoni
@ 2011-07-13 14:22   ` Baruch Siach
  0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2011-07-13 14:22 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Wed, Jul 13, 2011 at 04:16:55PM +0200, Thomas Petazzoni wrote:
> Le Wed, 13 Jul 2011 16:40:46 +0300,
> Baruch Siach <baruch@tkos.co.il> a ?crit :
> 
> > The added patch is a workaround for cross build as follows:
> > 
> > 	* disable run of a test binary at build time
> > 	* disable generation of documentation using the mxmldoc binary
> > 	* remove now non-existent entries from the install target
> > 	* disable strip when running install
> Can you put these explanations in the header of the patch + add your
> Signed-off-by line to this patch ?

OK.

> Just curious, what is this library useful for compared to expat,
> libxml2 or roxml ?

I don't know. It's quite small, ~40KB on PowerPC, thus suitable for embedded 
applications.  We use mini-xml here internally, so it's convenient to have it 
in Buildroot.

> > +MXML_CONF_OPT = --enable-shared
> This is not needed, it is passed automatically by Buildroot.

OK. I'll remove it.

Thanks for reviewing.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-13 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 13:40 [Buildroot] [PATCH] Mini-XML: new package Baruch Siach
2011-07-13 14:16 ` Thomas Petazzoni
2011-07-13 14:22   ` Baruch Siach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.