#Beware, currently FLTK-DEV has md5 broken, it causes a lot of headache using -lwi.
tce-load -i fltk-1.3-dev
tce-load -i compiletc git lua-5.4 lua-5.4-dev coreutils squashfs-tools
git clone https://github.com/stetre/moonfltk
cd moonfltk
#We do a build without gl but we still need the gl from fltk-full...
sed -i 's/--use-gl//g' src/Makefile
make -j$(nproc)
mkdir -p /tmp/moonfltk_tmp/usr/local/
CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions -fno-rtti" make PREFIX=/tmp/moonfltk_tmp/usr/local/ install
find /tmp/moonfltk_tmp -exec strip -s {} \;
mksquashfs /tmp/moonfltk_tmp/ ../moonfltk.tcz -e usr/local/include
