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

Added Files:
      Tag: AUDACITY_1_2
        mac_release_build mkdmg 
Log Message:
Adding scripts to build Mac distributions


--- NEW FILE: mkdmg ---
#!/bin/sh
#
# Prepare a disk image
#

#
SUFFIX=$1
TYPE=$2

# Setup
VER=`grep AUDACITY_VERSION_STRING src/Audacity.h | cut -f 2 -d '"'`
VERSION=`echo $VER | cut -f 1 -d '.'`
RELEASE=`echo $VER | cut -f 2 -d '.'`
REVISION=`echo $VER | cut -f 3 -d '.' | cut -f 1 -d '-'`

if [ -z "$SUFFIX" ]
then
   SUFFIX=`echo $VER- | cut -f 2 -d '-'`
fi

if [ ! -z "$TYPE" ]
then
   TYPE="-$TYPE"
fi

VERSION=$VERSION.$RELEASE.$REVISION$SUFFIX

VOL="Audacity $VERSION"
DMG="audacity-macosx$TYPE-$VERSION"

# Preclean
rm -rf "$DMG" "$DMG.dmg" TMP.dmg

# Create structure
mkdir "$DMG"
mkdir "$DMG/Languages"
mkdir "$DMG/nyquist"
mkdir "$DMG/plug-ins"

# Copy Audacity and clean it
cp -pR Audacity.app "$DMG"
strip "$DMG/Audacity.app/Contents/MacOS/audacity"

# Copy Languages
for name in locale/*.po
do
   src=`echo $name | sed -e 's/.po//'`
   dst="$DMG/Languages/`basename $src`"
   cp -pR $src $dst
done

# Copy Nyquist
cp -pR nyquist "$DMG"
rm -rf "$DMG/nyquist/"*CVS*

# Copy Plug-ins
cp -pR plug-ins "$DMG"
rm -rf "$DMG/plug-ins/"*CVS*

# Install misc files
cp -pR README.txt LICENSE.txt audacity-*-help.htb "$DMG"

# Create and mount the image
hdiutil create -ov -srcdir "$DMG" -fs HFS+ -volname "$VOL" TMP.dmg

# Compress and prepare for Internet delivery
hdiutil convert TMP.dmg -format UDZO -imagekey zlib-level=9 -o "$DMG.dmg"
hdiutil internet-enable -yes "$DMG.dmg"

# Cleanup
rm TMP.dmg

exit

--- NEW FILE: mac_release_build ---
#!/bin/sh

if [ ! -d libiconv* -o ! -d wxMac* -o ! -d audacity ]
then
   cat <<EOF

You do not have the build directory setup correctly.  You should have
a structure that looks like this (as an example):

   .
   ..
   audacity
   libiconv-1.11
   wxMac-2.4.2

And you should execute this script like this:

   audacity/scripts/mac_release_build

This will build libiconv first, then wxMac, and finally Audacity using options
that will allow Audacity to run on OS X 10.3.9+.

The final DMG files will reside in this directory.

EOF
   exit 1
fi

echo "Selecting gcc 3.3...requires root access...enter password when prompted"
echo 
sudo gcc_select 3.3

top=$(pwd)

export MACOSX_DEPLOYMENT_TARGET=10.3
export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
export C_INCLUDE_PATH="$top/include /Developer/SDKs/MacOSX10.3.9.sdk 
/usr/include"
export LIBRARY_PATH="$top/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
export CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=1030
export WX_CONFIG="$top/bin/wx-config"

#
# Build libiconv
#
if [ ! -f include/iconv.h ]
then
   cd libiconv*
   ./configure --prefix=$top --enable-static=yes --enable-shared=no 
--disable-shared
   make -j 4
   make install
   make distclean
   cd $top
fi

#
# Build wxMac ANSI version
#
if [ ! -f lib/libwx_mac-* ]
then
   cd wxMac*
   mkdir bld
   cd bld
   ../configure --prefix=$top --with-libiconv-prefix=$top --enable-static=yes 
--enable-shared=no --enable-unicode=no
   make -j 4
   make install
   make distclean
   cd $top
fi

#
# Build Audacity ANSI version
#
cd audacity
export NEXT_ROOT="/Developer/SDKs/MacOSX10.3.9.sdk"
./configure --enable-static=yes --enable-shared=no --enable-unicode=no
make || exit 1
unset NEXT_ROOT
scripts/mkdmg rc1
mv *.dmg ..
make distclean
cd $top

#
# Change gcc back
#
sudo gcc_select 4.0


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to