qt: update to 4.7.1, remove gstreamer plugin, add sqlite plugin.

This commit is contained in:
Juan RP
2010-12-04 09:56:30 +01:00
parent 094a8844dc
commit b48547fcc7
5 changed files with 55 additions and 57 deletions

View File

@@ -1,32 +1,19 @@
# Template file for 'qt'
pkgname=qt
version=4.7.0
revision=1
version=4.7.1
_distname=qt-everywhere-opensource-src
wrksrc=${_distname}-${version}
distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz"
build_style=configure
configure_args="-confirm-license -opensource
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins
-translationdir /usr/share/qt/translations -datadir /usr/share/qt
-docdir /usr/share/doc/qt -examplesdir /usr/share/doc/qt/examples
-demosdir /usr/share/doc/qt/demos -largefile -plugin-sql-sqlite -system-sqlite
-xmlpatterns -phonon -phonon-backend -svg -webkit -scripttools -system-zlib
-system-libtiff -system-libpng -system-libmng -system-libjpeg
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations
-no-separate-debug-info -gtkstyle -opengl -glib -no-sql-db2 -no-sql-ibase
-plugin-sql-mysql -plugin-sql-psql -no-sql-oci -no-sql-odbc -no-sql-sqlite2
-no-cups -dbus-linked -no-nas-sound -iconv -shared -release -fast -no-sql-tds"
make_install_target="INSTALL_ROOT=$XBPS_DESTDIR/$pkgname-$version install"
build_style=custom-install
short_desc="A cross-platform application and UI framework"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e05256d560ca7d674cd4310bb791748900ad14ad662cbfe22b6d72ada43e7955
checksum=8cb5277c41f824cfc6dcee0e95e0bf23a9ad2c8d18d245105137481d092b124a
long_desc="
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
maintaining GUI (graphical user interface) applications."
subpackages="qt-plugin-gstreamer qt-plugin-pgsql qt-plugin-mysql"
subpackages="${subpackages} qt-demos qt-docs qt-qmake qt-qtconfig"
subpackages="qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite qt-demos"
subpackages="${subpackages} qt-docs qt-qmake qt-qtconfig"
subpackages="${subpackages} qt-designer qt-devel qt-devel-tools"
# XXX Missing dependencies: unixodbc and cups.
@@ -53,7 +40,6 @@ Add_dependency run libSM
Add_dependency run libICE
Add_dependency build pkg-config
Add_dependency build glibc-devel
Add_dependency build freetype-devel
Add_dependency build MesaLib-devel
Add_dependency build libXrender-devel
@@ -77,22 +63,44 @@ Add_dependency build libmysqlclient-devel
Add_dependency build postgresql-libs-devel
Add_dependency build diffutils
pre_configure()
do_build()
{
# Use cmp(1) from diffutils.
export PATH="/usr/bin:$PATH"
}
pre_build()
{
export LD_LIBRARY_PATH="${wrksrc}/lib:${LD_LIBRARY_PATH}"
sed -i "s|-O2|${XBPS_CXXFLAGS}|" mkspecs/common/g++.conf
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${XBPS_LDFLAGS}|g" mkspecs/common/g++.conf
./configure -v -confirm-license -opensource \
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins \
-translationdir /usr/share/qt/translations \
-datadir /usr/share/qt \
-docdir /usr/share/doc/qt \
-examplesdir /usr/share/doc/qt/examples \
-demosdir /usr/share/doc/qt/demos -largefile \
-plugin-sql-sqlite -system-sqlite \
-xmlpatterns -no-phonon -no-phonon-backend -svg -webkit \
-scripttools -system-zlib \
-system-libtiff -system-libpng -system-libmng -system-libjpeg \
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations \
-no-separate-debug-info -gtkstyle -opengl -glib \
-no-sql-db2 -no-sql-ibase \
-plugin-sql-mysql -plugin-sql-psql -no-sql-oci \
-no-sql-odbc -no-sql-sqlite2 \
-no-cups -dbus-linked -no-nas-sound -iconv -shared \
-release -fast -no-sql-tds || return 1
make ${makejobs} || return 1
}
post_install()
do_install()
{
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
cd ${wrksrc} || return 1
make INSTALL_ROOT=${DESTDIR} install || return 1
# install missing icons and desktop files
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
size=$(echo $(basename ${icon}) | cut -d- -f2)