Update of /cvsroot/audacity/audacity-src/scripts
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv8435

Modified Files:
        mac_release_build 
Log Message:
Fixup the script to allow both PPC and Intel builds.


Index: mac_release_build
===================================================================
RCS file: /cvsroot/audacity/audacity-src/scripts/mac_release_build,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mac_release_build   27 Oct 2006 04:38:00 -0000      1.1
+++ mac_release_build   26 Mar 2007 03:46:56 -0000      1.2
@@ -1,52 +1,89 @@
 #!/bin/sh
 
-
-cat <<EOF
-
-Did you remember to rebuild wxWidgets with these env vars set:
-
-export MACOSX_DEPLOYMENT_TARGET=10.3
-export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
-export C_INCLUDE_PATH="/usr/local/include:/Developer/SDKs/MacOSX10.3.9.sdk 
/usr/include"
-export LIBRARY_PATH="/usr/local/lib:/Developer/SDKs/MacOSX10.3.9.sdk 
/usr/lib/gcc/darwin/3.3"
-export LD_PREBIND=1
-export CPPFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=1030
-
-Press ENTER to continue
-
-EOF
-read dummy
-
 if [ -f mac_release_build ]
 then
    echo 'You must execute this script from the base Audacity directory'
    exit 1
 fi
 
-export MACOSX_DEPLOYMENT_TARGET=10.3
-export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
-export C_INCLUDE_PATH="/usr/local/include:/Developer/SDKs/MacOSX10.3.9.sdk 
/usr/include"
-export LIBRARY_PATH="/usr/local/lib:/Developer/SDKs/MacOSX10.3.9.sdk 
/usr/lib/gcc/darwin/3.3"
-export LD_PREBIND=1
-export CPPFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=1030
+plugs='gverb_1216.so hard_limiter_1413.so sc4_1882.so'
+for plug in $plugs
+do
+   if [ ! -f plug-ins/$plug ]
+   then
+      echo "Missing plugin: $plug"
+      echo
+      echo "You must copy the following to the plug-ins directory before 
building:"
+      echo
+      echo $plugs
+      echo
+      exit 1
+   fi
+done
+
+ARCH=$(uname -p)
 
+if [ "$ARCH" = "powerpc" ]
+then
+   cat <<'   EOF'
+   
+   Did you remember to rebuild wxWidgets with these env vars set:
+   
+   export MACOSX_DEPLOYMENT_TARGET=10.3
+   export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
+   export 
C_INCLUDE_PATH="/usr/local/include:/Developer/SDKs/MacOSX10.3.9.sdk/usr/include"
+   export 
LIBRARY_PATH="/usr/local/lib:/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3"
+   export CPPFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=1030
+   
+   Press ENTER to continue
+   
+   EOF
+   read dummy
+   
+   echo "Selecting gcc 3.3...requires root access...enter password when 
prompted"
+   echo 
+   sudo gcc_select 3.3
+
+   export MACOSX_DEPLOYMENT_TARGET=10.3
+   export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
+   export 
C_INCLUDE_PATH="/usr/local/include:/Developer/SDKs/MacOSX10.3.9.sdk/usr/include"
+   export 
LIBRARY_PATH="/usr/local/lib:/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3"
+   export CPPFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=1030
+fi
+   
 #
-# Build ANSI version
+# Build UNICODE version only
 #
-./configure --enable-static=yes --enable-shared=no --enable-unicode=no 
--with-lib-preference=local,system --with-portaudio=v19
-make
-unset NEXT_ROOT
-mkdmg rc1
-mv *.dmg ..
-make distclean
+./configure --enable-debug=no --enable-static=yes --enable-shared=no 
--enable-unicode=yes --with-lib-preference=local,system
 
 #
-# Build UNICODE version
+# gcc 3.3 doesn't understand '-msse'
+#
+sed -e 's/ -msse//' lib-src/soundtouch/source/SoundTouch/Makefile 
>lib-src/soundtouch/source/SoundTouch/Makefile.new
+mv lib-src/soundtouch/source/SoundTouch/Makefile.new 
lib-src/soundtouch/source/SoundTouch/Makefile
+
+#
+# Mac does not support elf binaries
+#
+if [ "$ARCH" = "i386" ]
+then
+   sed -e 's/OBJ_FORMAT = elf/OBJ_FORMAT = aout/;s/-f $(OBJ_FORMAT)/-f macho/' 
lib-src/libflac/src/libFLAC/ia32/Makefile 
>lib-src/libflac/src/libFLAC/ia32/Makefile.new
+   mv lib-src/libflac/src/libFLAC/ia32/Makefile.new 
lib-src/libflac/src/libFLAC/ia32/Makefile
+fi
+
+#
+# Build it
 #
-./configure --enable-static=yes --enable-shared=no --enable-unicode=yes 
--with-lib-preference=local,system --with-portaudio=v19
 make
-unset NEXT_ROOT
-mkdmg rc1 unicode
-mv *.dmg ..
-make distclean
 
+if [ "$ARCH" = "powerpc" ]
+then
+   unset NEXT_ROOT
+
+   echo "Selecting gcc 4.0...requires root access...enter password when 
prompted"
+   echo 
+   sudo gcc_select 4.0
+fi
+
+scripts/mkdmg $1 $2
+mv *.dmg ..


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to