|
|

楼主 |
发表于 2006-5-19 18:56:41
|
显示全部楼层
问题依旧 提示依旧........
我要崩溃了...
我用的是archlinux
附上qt3.6的 pkgbuild
- # $Id: PKGBUILD,v 1.16 2006/03/23 14:41:21 tpowa Exp $
- # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
- # Contributor: John Proctor <jproctor@prium.net>
- pkgname=qt
- pkgver=3.3.6
- pkgrel=2
- pkgdesc="The QT gui toolkit."
- url="http://www.trolltech.com/products/qt/index.html"
- pkgfqn=${pkgname}-x11-free-${pkgver}
- install=qt.install
- depends=('libpng' 'libjpeg' 'libxmu' 'libxcursor' 'libxinerama' 'mesa' \
- 'libxft' 'libxrandr')
- makedepends=('mysql' 'postgresql' 'sqlite3' 'unixodbc' 'libmng')
- source=(ftp://ftp.trolltech.com/qt/source/${pkgfqn}.tar.bz2 qt.profile \
- qt-copy-kde-patches.tar.bz2 qt-patches.tar.bz2)
- # qt-copy-kde-patches come from http://websvn.kde.org/trunk/qt-copy/patches/
- # other qt-patches come from fedora and gentoo
- build() {
- export QTDIR=$startdir/src/$pkgfqn
- export PATH=${QTDIR}/bin:${PATH}
- export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
- cd $startdir/src/$pkgfqn
- # apply qt patches from kde.org
- for i in ../qt-copy-kde-patches/*; do
- patch -Np0 -i $i || return 1
- done
- # apply other qt patches and one security fix from debian/gentoo
- for i in ../qt-patches/*; do
- patch -Np1 -i $i || return 1
- done
- # start compiling qt
- sed -i 's|-cp -P -f|-cp -L -f|' qmake/Makefile.unix
- rm -rf doc/html examples tutorial
- sed -i "s|sub-tutorial sub-examples||" Makefile
- sed -i "s|-O2|$CXXFLAGS|" mkspecs/linux-g++/qmake.conf
- sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix
- sed -i "s|read acceptance|acceptance=yes|" configure
- ./configure -prefix /opt/qt -platform linux-g++ \
- -system-zlib -qt-gif -release -shared -sm -nis -thread -stl \
- -{system-lib,plugin-imgfmt-}{png,jpeg,mng} \
- -no-g++-exceptions -plugin-sql-{mysql,psql,sqlite,odbc}
- cd $startdir/src/$pkgfqn/plugins/src/sqldrivers/mysql
- qmake -o Makefile "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/usr/lib/mysql -lmysqlclient" mysql.pro
- cd $startdir/src/$pkgfqn/plugins/src/sqldrivers/psql
- qmake -o Makefile "INCLUDEPATH+=/usr/src/include /usr/include/postgresql/server" "LIBS+=-L/usr/lib -lpq" psql.pro
- cd $startdir/src/$pkgfqn
- # fix the broken makefiles
- #sed -i 's|[[:space:]]*strip.*doc/html.*$|#|g' src/Makefile
- make || return 1
- make INSTALL_ROOT=$startdir/pkg install
- rm -rf `find $startdir/pkg/opt/qt/mkspecs/* | grep -v linux-g++`
- rm -rf $startdir/pkg/opt/qt/{phrasebooks,templates,translations}
- sed -i "s|-L$startdir/src/$pkgfqn/lib ||g" $startdir/pkg/opt/qt/lib/*.prl
- install -D -m755 qmake/qmake $startdir/pkg/opt/qt/bin/qmake
- install -D -m755 $startdir/qt.profile $startdir/pkg/etc/profile.d/qt.sh
- rm -f $startdir/pkg/opt/qt/mkspecs/linux-g++/linux-g++
- # install man pages
- mkdir -p $startdir/pkg/opt/qt/man
- cp -r $startdir/src/$pkgfqn/doc/man/{man1,man3} $startdir/pkg/opt/qt/man/
- #libtoolslay
- find $startdir/pkg -name '*.la' -exec rm {} \;
- }
- md5sums=('dc1384c03ac08af21f6fefab32d982cf' '71fee534492524002eb06ddceecc98d9'\
- '4b28b8a9461467bdeb8f1d6639d90ebb' 'c8937968e9807b3cdcdf0505728d99ce')
复制代码 |
|