-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path012-libxml2-2.7.8.sh
More file actions
executable file
·27 lines (20 loc) · 1.08 KB
/
012-libxml2-2.7.8.sh
File metadata and controls
executable file
·27 lines (20 loc) · 1.08 KB
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
#!/bin/sh -e
# libxml2-2.7.8.sh by Naomi Peori ([email protected])
## Download the source code.
wget --continue http://xmlsoft.org/sources/libxml2-2.7.8.tar.gz
## Download an up-to-date config.guess and config.sub
if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
## Unpack the source code.
rm -Rf libxml2-2.7.8 && tar xfvz libxml2-2.7.8.tar.gz && cd libxml2-2.7.8
## Replace config.guess and config.sub
cp ../config.guess ../config.sub .
## Create the build directory.
mkdir build-ppu && cd build-ppu
## Configure the build.
CFLAGS="-I$PSL1GHT/ppu/include -I$PS3DEV/portlibs/ppu/include" \
LDFLAGS="-L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib -lrt -llv2" \
PKG_CONFIG_PATH="$PS3DEV/portlibs/ppu/lib/pkgconfig" \
../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" --enable-static --disable-shared --without-ftp --without-http --without-python
## Compile and install.
${MAKE:-make} -j4 && ${MAKE:-make} install