fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libxml2 / libxml2-config.patch.1
blob7b2b7f6041880014fbc075a5f13c158419583fa9
1 Hack the xml2-config to return paths into WORKDIR.
3 --- a/xml2-config.in    2009-12-17 11:45:20.000000000 +0000
4 +++ b/xml2-config.in    2009-12-17 11:45:36.000000000 +0000
5 @@ -1,9 +1,14 @@
6  #! /bin/sh
7  
8 -prefix=@prefix@
9 -exec_prefix=@exec_prefix@
10 -includedir=@includedir@
11 -libdir=@libdir@
12 +#prefix=@prefix@
13 +#exec_prefix=@exec_prefix@
14 +#includedir=@includedir@
15 +#libdir=@libdir@
17 +prefix=${WORKDIR}/UnpackedTarball/xml2
18 +exec_prefix=${WORKDIR}/UnpackedTarball/xml2
19 +includedir=${WORKDIR}/UnpackedTarball/xml2/include
20 +libdir=${WORKDIR}/UnpackedTarball/xml2/.libs
22  usage()
23  {
24 @@ -67,7 +72,8 @@
25         ;;
27      --cflags)
28 -               echo @XML_INCLUDEDIR@ @XML_CFLAGS@
29 +        echo -I${includedir}
30 +#              echo @XML_INCLUDEDIR@ @XML_CFLAGS@
31                 ;;
33      --libtool-libs)
34 @@ -82,19 +88,24 @@
35                 ;;
37      --libs)
38 -        if [ "`uname`" = "Linux" ]
39 -       then
40 -           if [ "@XML_LIBDIR@" = "-L/usr/lib" -o "@XML_LIBDIR@" = "-L/usr/lib64" ]
41 -           then
42 -               echo @XML_LIBS@ @MODULE_PLATFORM_LIBS@
43 -           else
44 -               echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@
45 -           fi
46 -       else
47 -           echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@ @WIN32_EXTRA_LIBADD@
48 -       fi
49 +        echo -L${libdir} -lxml2 -lm
50 +#        if [ "`uname`" = "Linux" ]
51 +#      then
52 +#          if [ "@XML_LIBDIR@" = "-L/usr/lib" -o "@XML_LIBDIR@" = "-L/usr/lib64" ]
53 +#          then
54 +#              echo @XML_LIBS@ @MODULE_PLATFORM_LIBS@
55 +#          else
56 +#              echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@
57 +#          fi
58 +#      else
59 +#          echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@ @WIN32_EXTRA_LIBADD@
60 +#      fi
61                 ;;
63 +    print) # ugly configure hack
64 +        exit 0
65 +        ;;
66
67      *)
68         usage
69         exit 1