From da52f8d00396a68c55700ad8d88de983abb9f538 Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 6 Jul 2011 21:25:29 +0200 Subject: [PATCH] Add libmad to the list of libs --- scripts/016-libmad-0.15.1b.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/016-libmad-0.15.1b.sh diff --git a/scripts/016-libmad-0.15.1b.sh b/scripts/016-libmad-0.15.1b.sh new file mode 100755 index 0000000..92d51a8 --- /dev/null +++ b/scripts/016-libmad-0.15.1b.sh @@ -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