-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path002-libpng-1.4.4.sh
More file actions
executable file
·28 lines (21 loc) · 1.12 KB
/
002-libpng-1.4.4.sh
File metadata and controls
executable file
·28 lines (21 loc) · 1.12 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
28
#!/bin/sh -e
# libpng-1.4.4.sh by Naomi Peori (naomi@peori.ca)
## Download the source code.
wget http://phoenixnap.dl.sourceforge.net/project/libpng/libpng14/older-releases/1.4.4/libpng-1.4.4.tar.gz
## Download an up-to-date config.guess and config.sub
if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
## Unpack the source code.
rm -Rf libpng-1.4.4 && tar xfvz libpng-1.4.4.tar.gz && cd libpng-1.4.4
## 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" \
CPPFLAGS="-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
## Compile and install.
${MAKE:-make} -j4 && ${MAKE:-make} install