Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dhewg
committed
Jul 6, 2011
1 parent
aeecd2a
commit da52f8d
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh -e | ||
# libmad-0.15.1b.sh by dhewg (dhewg@wiibrew.org) | ||
|
||
## Download the source code. | ||
wget --continue http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz | ||
|
||
## Unpack the source code. | ||
rm -Rf libmad-0.15.1b && tar xfvz libmad-0.15.1b.tar.gz && cd libmad-0.15.1b | ||
|
||
## 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 |