#!/bin/sh # Built on TCL v2.10 # Required extensions: # compiletc # binutils # base-devs # bison # diffutils # file # findutils # flex # gawk # gcc # gcc_libs # gperf # grep # m4 # make # patch # pkg-config # sed # squashfs-tools-4.0 # python-dev # python # sqlite3 # openssl-0.9.8 # tcl_tk # bzip2-lib export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig export EXTNAME="sip" export VER="-4.10.2" export DESTDIR=`pwd`/$EXTNAME mkdir $EXTNAME tar -zxf $EXTNAME$VER.tar.gz cd $EXTNAME$VER python configure.py && make install cd $DESTDIR sudo strip --strip-unneeded usr/local/bin/* find usr -not -type d > ../$EXTNAME.tcz.list cd .. mksquashfs $EXTNAME $EXTNAME.tcz -noappend md5sum $EXTNAME.tcz > $EXTNAME.tcz.md5.txt rm -rf $EXTNAME $EXTNAME$VER