SHARE
TWEET

Untitled

a guest Jan 24th, 2011 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. export WIIROOT=$(pwd)
  3.  
  4. svn checkout http://wiimc.googlecode.com/svn/trunk/ wiimc-read-only
  5. svn checkout http://libext2fs-wii.googlecode.com/svn/trunk/ libext2fs-wii-read-only
  6. svn checkout http://grrlib.googlecode.com/svn/trunk/GRRLIB/lib/zlib
  7.  
  8. export WIIMCSRC=$WIIROOT/wiimc-read-only
  9.  
  10.  
  11. mkdir -p $WIIROOT/devkitpro
  12. export DEVKITPRO=$WIIROOT/devkitpro
  13.  
  14. echo THIS IS IMPORTANT
  15. echo export DEVKITPPC=$DEVKITPRO/devkitPPC
  16. echo export PATH=$DEVKITPPC/bin:$PATH
  17.  
  18. export DEVKITPPC=$DEVKITPRO/devkitPPC
  19. export PATH=$DEVKITPPC/bin:$PATH
  20.  
  21.  
  22. mkdir -p $WIIROOT/download
  23. cd $WIIROOT/download
  24.  
  25. DEVKITURL=http://sourceforge.net/projects/devkitpro/files
  26.  
  27. (
  28. wget -c ${DEVKITURL}/devkitPPC/devkitPPC_r22-osx.tar.bz2 &
  29. wget -c ${DEVKITURL}/libogc/libogc-1.8.6.tar.bz2 &
  30. wget -c ${DEVKITURL}/examples/wii/wii-examples-20100930.tar.bz2 &
  31. wget -c ${DEVKITURL}/examples/gamecube/gamecube-examples-20100930.tar.bz2 &
  32. wget -c ${DEVKITURL}/libfat/libfat-ogc-1.0.8.tar.bz2 &
  33.  
  34. # wget -c ${DEVKITURL}/portlibs/zlib-1.2.4-ppc.tar.bz2 &
  35. wget -c ${DEVKITURL}/portlibs/mxml-2.6-ppc.tar.bz2 &
  36. wget -c ${DEVKITURL}/portlibs/libpng-1.4.1-ppc.tar.bz2 &
  37. wget -c ${DEVKITURL}/portlibs/jpeg8a-ppc.tar.bz2 &
  38. wget -c ${DEVKITURL}/portlibs/freetype-2.4.2-ppc.tar.bz2 &
  39. wait
  40. )
  41.  
  42. diff <(md5 *bz2) <(cat << EOF
  43. MD5 (devkitPPC_r22-osx.tar.bz2) = 385300a31c4c2cc6890adfb8f220674c
  44. MD5 (freetype-2.4.2-ppc.tar.bz2) = 0e91ad37ead10137cc9f8d2f3454a245
  45. MD5 (gamecube-examples-20100930.tar.bz2) = e9ef264a5c7acd6ef6144b676527bacd
  46. MD5 (jpeg8a-ppc.tar.bz2) = ef4c03019ade885dbba05982e777ea2b
  47. MD5 (libfat-ogc-1.0.8.tar.bz2) = 495cb164afa9ca420fd21d4c78c0723f
  48. MD5 (libogc-1.8.6.tar.bz2) = 5be16c7c972e8c92e637220adb123be1
  49. MD5 (libpng-1.4.1-ppc.tar.bz2) = 29a9a6c754d32990f542990d3d38e715
  50. MD5 (mxml-2.6-ppc.tar.bz2) = b196036aa9f0b310efb6bdc4b02614dc
  51. MD5 (wii-examples-20100930.tar.bz2) = 5a37fb6cc1704f43cb3813ddbb964a24
  52. EOF)
  53.  
  54. #MD5 (zlib-1.2.4-ppc.tar.bz2) = c952918d7fb3e52e8fa66fa09f2edf87
  55.  
  56.  
  57. if [ ! $? ] ; then
  58.     echo The checksums on the downloaded files were wrong.
  59.     exit 1
  60. fi
  61.  
  62. cd $WIIROOT/download
  63.  
  64. tar -C $DEVKITPRO -xjf devkitPPC_r22-osx.tar.bz2
  65.  
  66. mkdir $DEVKITPRO/libogc
  67. tar -C $DEVKITPRO/libogc -xjf libogc-1.8.6.tar.bz2
  68. tar -C $DEVKITPRO/libogc -xjf libfat-ogc-1.0.8.tar.bz2
  69.  
  70. mkdir -p $DEVKITPRO/examples/{wii,gamecube}
  71. tar -C $DEVKITPRO/examples/wii  -jxf wii-examples-20100930.tar.bz2
  72. tar -C $DEVKITPRO/examples/gamecube  -jxf gamecube-examples-20100930.tar.bz2
  73.  
  74. mkdir -p $DEVKITPRO/portlibs/ppc
  75. #tar -C $DEVKITPRO/portlibs/ppc -xjf zlib-1.2.4-ppc.tar.bz2
  76. tar -C $DEVKITPRO/portlibs/ppc -xjf mxml-2.6-ppc.tar.bz2
  77. tar -C $DEVKITPRO/portlibs/ppc -xjf libpng-1.4.1-ppc.tar.bz2
  78. tar -C $DEVKITPRO/portlibs/ppc -xjf jpeg8a-ppc.tar.bz2
  79. tar -C $DEVKITPRO/portlibs/ppc -xjf freetype-2.4.2-ppc.tar.bz2
  80.  
  81.  
  82. ############################################
  83.  
  84.  
  85. cd $WIIMCSRC/libs/libntfs
  86. make
  87. make install
  88.  
  89. # remember: the powerpc-eabi commands must be in the path
  90. # so that 'configure' can find them)
  91.  
  92. for lib in fribidi libexif pcre libiconv ; do
  93.   echo Building $lib.  Press RETURN to start
  94.   read
  95.   cd $WIIMCSRC/libs/$lib
  96.   ./configure --host=powerpc-eabi --prefix="${DEVKITPRO}/portlibs/ppc" --libdir="${DEVKITPRO}/portlibs/ppc/lib" --disable-shared
  97.   make
  98.   make install
  99. done
  100.  
  101. cd $WIIROOT/libext2fs-wii-read-only
  102. make
  103. make install
  104.  
  105.  
  106. #install zlib 1.2.5 instead of 1.2.4 which is what we got from the devkitpro site
  107. cd $WIIROOT/zlib
  108. make
  109. make install
  110. cp $DEVKITPRO/libogc/include/{zconf,zlib}.h $DEVKITPRO/portlibs/ppc/include
  111. cp $DEVKITPRO/libogc/lib/wii/libz.a $DEVKITPRO/portlibs/ppc/lib/libz.a
  112. #sed -i -e 's/1\.2\.4/1\.2\.5/' $DEVKITPRO/portlibs/ppc/lib/pkgconfig/zlib.pc
  113.  
  114.  
  115. # fix missing include file in wiimc.cpp
  116.  
  117. ===================================================================
  118. --- source/wiimc.cpp    (revision 802)
  119. +++ source/wiimc.cpp    (working copy)
  120. @@ -14,6 +14,7 @@
  121.  #include <dirent.h>
  122.  #include <wiiuse/wpad.h>
  123.  #include <di/di.h>
  124. +#include <sys/iosupport.h>
  125.  
  126.  #include "utils/FreeTypeGX.h"
  127.  #include "utils/gettext.h"
  128.  
  129.  
  130.  
  131. cd $WIIMCSRC
  132. make
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top