build() {
export QTDIR=$startdir/src/$pkgfqn
export PATH=${QTDIR}/bin:${PATH}
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
cd $startdir/src/$pkgfqn
patch -Np1 -i ../qt-3.2.3.patch || return 1
echo "yes" | ./configure -prefix /opt/qt -system-zlib -qt-gif
-system-libpng -system-libjpeg -plugin-imgfmt-mng -thread -no-stl
-no-g++-exceptions -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite
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+=$startdir/src/postgresql-$psqlver" "LIBS+=-L/usr/lib/mysql -lmysqlclient" mysql.pro
qmake -o Makefile "INCLUDEPATH+=$startdir/src/postgresql-$psqlver/src/include $startdir/src/postgresql-$psqlver/src/interfaces/libpq" "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
# optimize the build
sed -i "s:-O2:${CFLAGS}:g" mkspecs/linux-g++/qmake.conf
make || return 1
make INSTALL_ROOT=$startdir/pkg install
rm $startdir/pkg/opt/qt/bin/qmake
cp $startdir/src/$pkgfqn/qmake/qmake $startdir/pkg/opt/qt/bin
install -D -m755 $startdir/qt.profile $startdir/pkg/etc/profile.d/qt.sh
}
Is enyone there? :>
No. 8)
]]>If qmake doesn't work there, than it's a valid bug request.
]]>