|
Script d'installation linux pour DevkitPro - NewsScript d'installation linux pour DevkitProPosté par Snouki le 20/01/10 à 09:17:00 3761 affichages, 3 commentaires #!/bin/bash ## Configuration DEVKITFILE=devkitPPC_r19-i686-linux.tar.bz2 LIBOGCFILE=libogc-1.8.1.tar.bz2 LIBFATFILE=libfat-ogc-1.0.6.tar.bz2 WIIEXAMPLEFILE=wii-examples-20091124.tar.bz2 GCEXAMPLEFILE=gamecube-examples-20091212.tar.bz2 EXTRALIBS="zlib-1.2.3-ppc.tar.bz2 jpeg7-ppc.tar.bz2 mxml-2.6-ppc.tar.bz2 freetype-2.3.11-ppc.tar.bz2 libpng-1.2.40-ppc.tar.bz2 expat-2.0.1-ppc.tar.bz2" #Update libogc to latest source version. ("yes" or "no") UPDATE_LIBOGC_TO_HEAD="yes" #install the GOF drum patch in libogc. ("yes" or "no") This needs the UPDATE_LIBOGC_TO_HEAD INSTALL_GOF_DRUM_PATCH="yes" ####################################################################### ## Don't edit anything below this unless you know what you are doing ## ####################################################################### if [ `whoami` != "root" ] ; then echo "This script needs to be run as root." exit fi function fetchAndInstall { #$1 = URL base #$2 = filename to fetch #$3 = install path if [ ! -f "$2" ] ; then echo "Downloading $2" wget "$1/$2" RET=$? if [ $RET -ne 0 ] ; then echo "Failed to download $2" exit fi fi mkdir -p "/opt/devkitpro/$3" echo "Extracting $2 to $3" tar -xjf "$2" -C "/opt/devkitpro/$3" RET=$? if [ $RET -ne 0 ] ; then echo "Failed to extract $2" exit fi } mkdir -p /opt/devkitpro/ cd /opt/devkitpro/ fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/devkitPPC" "$DEVKITFILE" "" fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/libogc" "$LIBOGCFILE" "libogc" fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/libfat" "$LIBFATFILE" "libogc" fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/examples/wii" "$WIIEXAMPLEFILE" "examples/wii" fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/examples/gamecube" "$GCEXAMPLEFILE" "examples/gamecube" for FILE in $EXTRALIBS ; do fetchAndInstall "http://downloads.sourceforge.net/project/devkitpro/portlibs" "$FILE" "libogc" done rm -rf $DEVKITFILE $LIBOGCFILE $LIBFATFILE $WIIEXAMPLEFILE $GCEXAMPLEFILE rm -rf $EXTRALIBS if [ "$UPDATE_LIBOGC_TO_HEAD" = "yes" ] ; then echo "Getting HEAD revision of libogc" rm -rf /opt/devkitpro/tmp_src/ mkdir -p /opt/devkitpro/tmp_src/ cd /opt/devkitpro/tmp_src/ svn checkout http://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc/ RET=$? if [ $RET -ne 0 ] ; then rm -rf /opt/devkitpro/tmp_src/ echo "Failed to get HEAD of libogc" echo "DevkitPPC will still work, but without new libogc/drum patch" exit fi cd /opt/devkitpro/tmp_src/libogc/ if [ "$INSTALL_GOF_DRUM_PATCH" = "yes" ] ; then wget http://daid2.mine.nu/svn/Wii/GuitarsOnFire/libogc_patch.patch patch -p0 < libogc_patch.patch RET=$? if [ $RET -ne 0 ] ; then rm -rf /opt/devkitpro/tmp_src/ echo "Failed to apply GoF GH3 Drum patch." echo "DevkitPPC will still work, but without new libogc/drum patch" exit fi fi export DEVKITPRO=/opt/devkitpro/ export DEVKITPPC=/opt/devkitpro/devkitPPC/ make wii RET=$? if [ $RET -ne 0 ] ; then rm -rf /opt/devkitpro/tmp_src/ echo "Failed to build libogc." echo "DevkitPPC will still work, but without new libogc/drum patch" exit fi make install rm -rf /opt/devkitpro/tmp_src/ fi echo "#######################################" echo "Done downloading & installing devkitPPC" echo "#######################################" Téléchargement du script : http://daid2.mine.nu/svn/Wii/DevkitProLinuxInstall/install_devkit.sh Site officiel : http://wiibrew.org/wiki/DevkitProLinuxInstall Pages: 1 Messages:
Pages: 1 Ajouter commentaire: Créez un compte ou identifiez vous pour poster un commentaire. Pour votre téléphone, Jailbreak iPhone et Jailbreak iPad. - Hack PS3 - Hacker sa WiiU - Hacker PS Vita - Rage Comics, troll face - Retrouvez chaque jour des image drole sur internet grâce à LOLTube. - Meme Internet |
222 connectés (0 membre, 222 anonymes) | © 2007-2015 Attila |