From d35a8f408fa4c97259471c848dbed0da9f3be659 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 19 Feb 2015 12:49:56 +0000 Subject: [PATCH] Build fltk on osx --- data/macos/build-deps.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/macos/build-deps.sh b/data/macos/build-deps.sh index 6aa127aee..5659d7fab 100755 --- a/data/macos/build-deps.sh +++ b/data/macos/build-deps.sh @@ -330,6 +330,25 @@ touch build-done cd .. fi +# ------------------------------------------------------------------------------------ +# fltk + +if [ ! -d fltk-1.3.3 ]; then +curl -O http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz +tar -xf fltk-1.3.3-source.tar.gz +fi + +if [ ! -f fltk-1.3.3/build-done ]; then +cd fltk-1.3.3 +./configure --disable-shared --disable-debug --prefix=$PREFIX \ +--enable-threads --disable-gl \ +--enable-localjpeg --enable-localzlib --enable-localpng +make +sudo make install +touch build-done +cd .. +fi + # ------------------------------------------------------------------------------------ # fluidsynth @@ -365,6 +384,7 @@ fi if [ ! -f fftw-3.3.4/build-done ]; then export CFLAGS="-O2 -mtune=generic -msse -msse2 -ffast-math -mfpmath=sse -m$ARCH -fPIC -DPIC" export CXXFLAGS=$CFLAGS +export LDFLAGS="-m$ARCH" cd fftw-3.3.4 ./configure --enable-static --enable-sse2 --disable-shared --disable-debug --prefix=$PREFIX make