-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path008-libvorbis-1.3.2.sh
More file actions
executable file
·27 lines (20 loc) · 1.02 KB
/
008-libvorbis-1.3.2.sh
File metadata and controls
executable file
·27 lines (20 loc) · 1.02 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
# libvorbis-1.3.2.sh by Naomi Peori (naomi@peori.ca)
## Download the source code.
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.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 libvorbis-1.3.2 && tar xfvz libvorbis-1.3.2.tar.gz && cd libvorbis-1.3.2
## 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" --disable-shared
## Compile and install.
${MAKE:-make} -j4 && ${MAKE:-make} install