1 From: Baruch Siach <baruch@tkos.co.il>
2 Subject: [PATCH] mxml: workaround for cross build
4 The added patch is a workaround for cross build as follows:
6 * disable run of a test binary at build time
7 * disable generation of documentation using the mxmldoc binary
8 * remove now non-existent entries from the install target
9 * disable strip when running install
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
13 diff -Nuar mxml-2.7-orig/Makefile.in mxml-2.7/Makefile.in
14 --- mxml-2.7-orig/Makefile.in 2011-04-13 18:43:32.000000000 +0300
15 +++ mxml-2.7/Makefile.in 2012-05-16 07:21:42.677220980 +0300
20 -INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 -s
21 +INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755
22 INSTALL_DATA = $(INSTALL) -m 644
23 INSTALL_DIR = $(INSTALL) -d
24 INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
26 mxml-index.o mxml-node.o mxml-search.o mxml-set.o
27 LIBOBJS = $(PUBLIBOBJS) mxml-private.o mxml-string.o
28 OBJS = mxmldoc.o testmxml.o $(LIBOBJS)
29 -TARGETS = $(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
30 +TARGETS = $(LIBMXML) libmxml.a
37 install: $(TARGETS) install-$(LIBMXML) install-libmxml.a
38 - echo Installing mxmldoc in $(BUILDROOT)$(bindir)...
39 - $(INSTALL_DIR) $(BUILDROOT)$(bindir)
40 - $(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir)
41 echo Installing documentation in $(BUILDROOT)$(docdir)...
42 $(INSTALL_DIR) $(BUILDROOT)$(docdir)
43 for file in $(DOCFILES); do \
45 echo Installing pkgconfig files in $(BUILDROOT)$(libdir)/pkgconfig...
46 $(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
47 $(INSTALL_DATA) mxml.pc $(BUILDROOT)$(libdir)/pkgconfig
48 - echo Installing man pages in $(BUILDROOT)$(mandir)...
49 - $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1
50 - $(INSTALL_MAN) doc/mxmldoc.man $(BUILDROOT)$(mandir)/man1/mxmldoc.1
51 - $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
52 - $(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3
55 echo Installing libmxml.a to $(BUILDROOT)$(libdir)...