blob: 8c28fb6a78069ccda612cb04ec8c4fae25e825e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Hack the xml2-config to return paths into WORKDIR.
--- a/xml2-config.in 2009-12-17 11:45:20.000000000 +0000
+++ b/xml2-config.in 2009-12-17 11:45:36.000000000 +0000
@@ -1,9 +1,14 @@
#! /bin/sh
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-includedir=@includedir@
-libdir=@libdir@
+#prefix=@prefix@
+#exec_prefix=@exec_prefix@
+#includedir=@includedir@
+#libdir=@libdir@
+
+prefix=${WORKDIR}/UnpackedTarball/libxml2
+exec_prefix=${WORKDIR}/UnpackedTarball/libxml2
+includedir=${WORKDIR}/UnpackedTarball/libxml2/include
+libdir=${WORKDIR}/UnpackedTarball/libxml2/.libs
usage()
{
@@ -67,7 +72,8 @@
;;
--cflags)
- cflags="@XML_INCLUDEDIR@ @XML_CFLAGS@"
+ #cflags="@XML_INCLUDEDIR@ @XML_CFLAGS@"
+ cflags="-I${includedir}"
;;
--libtool-libs)
@@ -91,7 +96,8 @@
libs="@XML_LIBDIR@ $libs"
fi
- libs="$libs @WIN32_EXTRA_LIBADD@"
+ #libs="$libs @WIN32_EXTRA_LIBADD@"
+ libs="-L${libdir} -lxml2 -lm"
;;
*)
|