#!/bin/sh # Built on TCL v1.4 # Required extensions: # compiletc # libgmp # libmpfr # libnec2pp # autotools # perl-xml # advcomp # cramfs-utils # qt-3.3.8-xorg # qt-3.3.8-xorg-devs # Xlibs_support # Xorg-7.4 # pixman # openssl-0.9.8h # graphics-2.6.26 # fontconfig # expat2 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 tar -zxf qucs-0.0.15.tar.gz cd qucs-0.0.15 # qucs has a problem with locating the qt headers sudo ln -s /usr/local/include/qt /usr/include ./autogen.sh ./configure CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" make touch ../mark sudo make install cd .. sudo cp qucs64x64.png /usr/local/tce.icons echo "i: /usr/local/tce.icons/qucs64x64.png" > /usr/local/tce.icons/qucs echo "t: qucs" >> /usr/local/tce.icons/qucs echo "c: qucs" >> /usr/local/tce.icons/qucs echo "" > /usr/local/tce.menu/qucs echo '/usr/local/bin/qucs' >> /usr/local/tce.menu/qucs echo "" >> /usr/local/tce.menu/qucs find /usr/local/ -newer mark -not -type d | grep -v -e man/ > filelist tar -czf qucs.tcel -T filelist advdef -z4 qucs.tce md5sum qucs.tce > qucs.tce.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../qucs.tce cd .. mkfs.cramfs $TCZDIR qucs.tcz md5sum qucs.tcz > qucs.tcz.md5.txt rm -rf $TCZDIR rm -rf qucs-0.0.15 mark filelist