#!/bin/sh
## murgaPATH is the location of your murgaLua source folder '/Path/to/murgaLua/'
export murgaPATH='/murgaLua/'
## build steps as functions
muMakeLua(){
## First we build lua
cd $murgaPATH
cd lua-5.*/src
make bsd;
make install;
}
muMakesqLite(){
## Followed by sqLite
cd $murgaPATH
cd sqlite-3.*/
./configure
make
make install
cd ..
}
muMakeFltk(){
## The final dependency is Fltk
cd $murgaPATH
cd fltk-1.1*
## --enable-xft (For linux)
./configure --disable-gl --enable-localjpeg --enable-localzlib --enable-localpng
make
make install
## But we also want a working copy of fluid for GUI generation
cp fluid/fluid ../bin/MacOs-Intel
cd ..
cd $murgaPATH
strip bin/MacOs-Intel/fluid
}
muMakeMurgaLua(){
## If there is a MacOS upx equivalent it would be nice to do something like
## upx --lzma bin/MacOs-Intel/fluid
## But assuming there isn't
## we next build murgaLua
make macos
cd bin
mv murgaLua MacOs-Intel
}
## Do the making of murgaLua for Mac OS X
muMakeLua
echo "Finished install lua. Thank you"
muMakesqLite
echo "Finished install sqLite. Thank you"
muMakeFltk
echo "Finished install Fltk. Thank you"
muMakeMurgaLua
echo "Finished building murgaLua. Thank you"
exit;
##END murgaLuamaker.sh