IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/lib:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.2.1 SUBVER=3.2 PROGNAME="Qt $VERSION" DESC="\ Qt (a multi-platform C++ graphical user interface toolkit) \n\ \n\ Qt is a complete and well-developed object-oriented framework for \n\ developing graphical user interface (GUI) applications using C++. \n\ \n\ This release is free only for development of free software for the X \n\ Window System. If you use Qt for developing commercial or other \n\ non-free software, you must have a professional license. Please see \n\ http://www.trolltech.com/purchase.html for information on how to \n\ obtain a professional license." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.troll.no/qt/source/ PKGNAME=qt-$VERSION-s390-$BUILD TAG=ADD compile() { # Pat says # # Trust me, we avoid a lot of problems building in the target location. :-) echo "Getting rid of old QT installation" cd /usr/lib rm -rf qt qt-x11-free-$VERSION tar -yxvf $CWD/qt-x11-free-$VERSION.tar.bz2 mv qt-x11-free-$VERSION qt # build cd qt export QTDIR=`pwd` export YACC='byacc -d' # The first diff is not applicable, since all it does is add # IA32-specific flags to the generated Makefiles # zcat $CWD/qt.cflags.diff.gz | patch -p1 zcat $CWD/qt-x11.diff.gz | patch -p1 zcat $CWD/qt.mysql.h.diff.gz | patch -p1 chown -R root.root . find . -perm 2775 -exec chmod 755 {} \; find . -perm 2755 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; echo "yes" | ./configure \ -prefix /usr/lib/qt \ -release \ -system-zlib \ -qt-gif \ -system-libpng \ -system-libjpeg \ -plugin-imgfmt-mng \ -thread \ -no-stl \ -no-g++-exceptions \ -xft \ -plugin-sql-mysql make -i symlinks sub-src sub-tools } install() { # Pat says # Half the time this doesn't work for squat, so don't write to tell me I should be # using "make install". The methods used here are more likely to continue to work. #make -i INSTALL_ROOT=$PKG moc-install src-install tools-install qmake-install plugins-install mkdir -p /package-qt/usr/lib cp -a /usr/lib/qt /package-qt/usr/lib/ ( cd /package-qt/usr/lib mv qt qt-$VERSION ln -sf qt-$VERSION qt ) ( cd /package-qt/usr/lib/qt-$VERSION mkdir -p /package-qt/usr/doc/qt-$VERSION mv \ FAQ INSTALL LICENSE.GPL LICENSE.QPL MANIFEST PLATFORMS README changes* \ /package-qt/usr/doc/qt-$VERSION ) gzip -9 /package-qt/usr/lib/qt/doc/man/man*/* ( cd /package-qt/usr/lib/qt/include/private mkdir tmp cp *.h tmp rm *.h mv tmp/* . rmdir tmp cd .. mkdir tmp cp *.h tmp rm *.h mv tmp/* . rmdir tmp ) ( cd /package-qt/usr/lib/qt/bin cp qmake qmake.bin rm qmake mv qmake.bin qmake ) mkdir -p /package-qt/usr/bin ( cd /package-qt/usr/bin for file in assistant designer linguist lrelease lupdate moc qm2ts qmake qtconfig uic ; do ln -sf /usr/lib/qt/bin/$file . done ) ( cd /package-qt/usr/lib/qt/lib rm README ) ( cd /package-qt/usr/lib/qt #rm -r accessibleqtwidgets.prl sqldrivers src styles find . -type d -name .obj -exec rm -r {} \; find . -type d -name .moc -exec rm -r {} \; ) ( cd /package-qt/usr/lib/qt rm -r config.tests qmake src tools translations rm config.status configure Makefile ) mkdir -p /package-qt/etc/profile.d cat $CWD/profile.d/qt.sh > /package-qt/etc/profile.d/qt.sh cat $CWD/profile.d/qt.csh > /package-qt/etc/profile.d/qt.csh ( cd /package-qt/usr/doc/qt-$VERSION rm -rf examples ; ln -sf /usr/lib/qt-$VERSION/examples examples rm -rf tutorial ; ln -sf /usr/lib/qt-$VERSION/tutorial tutorial rm -rf flyers ; ln -sf /usr/lib/qt-$VERSION/doc/flyers flyers rm -rf html ; ln -sf /usr/lib/qt-$VERSION/doc/html html rm -rf man ; ln -sf /usr/lib/qt-$VERSION/doc/man man ) ( cd /package-qt/usr/lib/qt-$VERSION/lib rm -rf libqt.so ; ln -sf libqt-mt.so.$VERSION libqt.so rm -rf libqt.so.3 ; ln -sf libqt-mt.so.$VERSION libqt.so.3 rm -rf libqt.so.$SUBVER ; ln -sf libqt-mt.so.$VERSION libqt.so.$SUBVER rm -rf libqt.so.$VERSION ; ln -sf libqt-mt.so.$VERSION libqt.so.$VERSION ) } special() { cd $PKG mv package-qt/* ./ rmdir package-qt/ chown -R root.bin usr/bin/ chmod 755 etc/profile.d/* cd $CTL cat $CWD/slack-desc > slack-desc zcat $CWD/doinst.sh.gz >> doinst.sh sed -e 's%package-qt/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }