[PD-cvs] SF.net SVN: pure-data: [9510] sources/build-libs-on-mingw.sh

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Sat Feb 23 17:05:48 CET 2008


Revision: 9510
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9510&view=rev
Author:   eighthave
Date:     2008-02-23 08:05:47 -0800 (Sat, 23 Feb 2008)

Log Message:
-----------
this script builds and installs of the sources here for MinGW in the MSYS shell.  It currently builds flac, lame, libogg, libvorbis, pthreads, regex, speex, tcl, and tk.  fftw2, fftw3, and libsndfile still seem to have some issues

Added Paths:
-----------
    sources/build-libs-on-mingw.sh

Added: sources/build-libs-on-mingw.sh
===================================================================
--- sources/build-libs-on-mingw.sh	                        (rev 0)
+++ sources/build-libs-on-mingw.sh	2008-02-23 16:05:47 UTC (rev 9510)
@@ -0,0 +1,166 @@
+#!/bin/sh
+
+# This script builds everything needed to build Pd-extended on MinGW.  You
+# need to download all of the source files listed on
+# http://puredata.org/docs/developer/win first, put them all into one
+# directory, then run this script in that directory.  It should build and
+# install everything.  Make sure you have this line in your
+# c:\msys\1.0\etc\fstab:
+
+# c:\MinGW  /usr/local
+
+# This ensures that everything will be installed in the right
+# place. <hans at at.or.at>
+
+# make sure we are using gcc, some ./configure scripts will find cygwin's cc
+export CC=gcc
+
+# pthreads
+testfile=/usr/local/bin/pthreadGC2.dll
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd pthreads/pthreads.2
+	 make clean GC-inlined
+	 cp libpthreadGC2.a /usr/local/lib
+	 cp pthreadGC2.dll /usr/local/bin
+	 cp pthread.h sched.h semaphore.h /usr/local/include/
+	 cd ../..
+fi
+
+# Tcl
+testfile=/usr/local/bin/tcl84.dll
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd tcl/win
+	 ./configure && make CYGPATH=echo && make install
+	 cd ../..
+fi
+
+# Tk
+testfile=/usr/local/bin/tk84.dll
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd tk/win
+	 ./configure && make CYGPATH=echo && make install
+	 cd ../..
+fi
+
+# ogg
+testfile=/usr/local/lib/libogg.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd libogg
+	 ./configure && make && make install
+	 cd ..
+fi
+
+
+# GNU regex
+testfile=/usr/local/lib/libregex.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd regex
+	 ./configure && make
+	 ar ru libregex.a regex.o
+	 cp libregex.a /usr/local/lib
+	 cp regex.h /usr/local/include
+	 cd ..
+fi
+
+
+# vorbis
+testfile=/usr/local/lib/libvorbisfile.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd libvorbis
+	 ./configure && make
+	 cd lib
+	 /bin/sh ../libtool --tag=CC --mode=link gcc  -O20 -D__NO_MATH_INLINES \
+		  -fsigned-char  -DUSE_MEMORY_H   -o libvorbisfile.la -rpath \
+		  /usr/local/lib -no-undefined -version-info 4:0:1 vorbisfile.lo \
+		  libvorbis.la /usr/local/lib/libogg.la 
+	 cd ..
+	 make && make install
+	 cd ..
+fi
+
+# LAME
+testfile=/usr/local/bin/libmp3lame-0.dll
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd lame
+	 ./configure && make && make install
+	 cd ..
+fi
+
+# speex
+testfile=/usr/local/lib/libspeex.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd speex
+	 ./configure --enable-sse && make && make install
+	 cd ..
+fi
+
+# FLAC
+testfile=/usr/local/lib/libFLAC.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd flac
+	 ./configure && make && make install
+	 cd ..
+fi
+
+# libsndfile
+# the FLAC build bombs, so disable FLAC support in libsndfile
+testfile=/usr/local/lib/libsndfile.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd libsndfile
+	 ./configure && make && make check && make install
+	 cd ..
+fi
+
+# fftw3
+testfile=/usr/local/lib/libsndfile.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd fftw3
+	 ./configure --with-our-malloc16 --with-windows-f77-mangling --enable-shared --disable-static --enable-threads --with-combined-threads --enable-portable-binary --enable-float --enable-sse && \
+	     make && make install
+	 cd ..
+fi
+
+#fftw2
+testfile=/usr/local/lib/libsndfile.a
+if [ -e "$testfile" ]; then 
+	 echo "$testfile exists, skipping..."
+else
+	 echo "Building everything for $testfile"
+	 cd fftw2
+	 ./configure --enable-float --enable-i386-hacks
+	 make && make install
+	 cd ..
+fi


Property changes on: sources/build-libs-on-mingw.sh
___________________________________________________________________
Name: svn:executable
   + *


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list