2009-12-29 23:17:58 +01:00
|
|
|
# Template file for 'qt'
|
|
|
|
pkgname=qt
|
2010-10-29 10:04:49 +02:00
|
|
|
version=4.7.0
|
2010-11-02 08:31:35 +01:00
|
|
|
revision=1
|
2010-01-05 23:13:52 +01:00
|
|
|
_distname=qt-everywhere-opensource-src
|
2009-12-29 23:17:58 +01:00
|
|
|
wrksrc=${_distname}-${version}
|
2010-04-09 18:29:18 +02:00
|
|
|
distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz"
|
2009-12-29 23:17:58 +01:00
|
|
|
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
|
2010-01-05 23:13:52 +01:00
|
|
|
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations
|
2009-12-29 23:17:58 +01:00
|
|
|
-no-separate-debug-info -gtkstyle -opengl -glib -no-sql-db2 -no-sql-ibase
|
2010-04-24 11:53:22 +02:00
|
|
|
-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"
|
2009-12-29 23:17:58 +01:00
|
|
|
make_install_target="INSTALL_ROOT=$XBPS_DESTDIR/$pkgname-$version install"
|
|
|
|
short_desc="A cross-platform application and UI framework"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-29 10:04:49 +02:00
|
|
|
checksum=e05256d560ca7d674cd4310bb791748900ad14ad662cbfe22b6d72ada43e7955
|
2009-12-29 23:17:58 +01:00
|
|
|
long_desc="
|
|
|
|
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
|
|
|
|
maintaining GUI (graphical user interface) applications."
|
|
|
|
|
2010-04-24 11:53:22 +02:00
|
|
|
subpackages="qt-plugin-gstreamer qt-plugin-pgsql qt-plugin-mysql"
|
|
|
|
subpackages="${subpackages} qt-demos qt-docs qt-qmake qt-qtconfig"
|
2009-12-29 23:17:58 +01:00
|
|
|
subpackages="${subpackages} qt-designer qt-devel qt-devel-tools"
|
|
|
|
|
2010-04-24 11:53:22 +02:00
|
|
|
# XXX Missing dependencies: unixodbc and cups.
|
2010-10-29 10:04:49 +02:00
|
|
|
Add_dependency run libgcc
|
2009-12-29 23:17:58 +01:00
|
|
|
Add_dependency run glibc
|
2010-10-29 10:04:49 +02:00
|
|
|
Add_dependency run libstdc++
|
2010-01-12 11:33:17 +01:00
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run MesaLib
|
|
|
|
Add_dependency run libXrender
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run libXext
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run zlib
|
2009-12-29 23:17:58 +01:00
|
|
|
Add_dependency run dbus-libs
|
2010-01-12 11:33:17 +01:00
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run sqlite
|
|
|
|
Add_dependency run alsa-lib
|
2010-11-02 08:31:35 +01:00
|
|
|
Add_dependency run libssl
|
2010-01-12 11:33:17 +01:00
|
|
|
Add_dependency run tiff
|
|
|
|
Add_dependency run libmng
|
|
|
|
Add_dependency run jpeg
|
|
|
|
Add_dependency run libpng
|
|
|
|
Add_dependency run libSM
|
|
|
|
Add_dependency run libICE
|
2010-10-29 10:04:49 +02:00
|
|
|
|
2010-01-12 11:33:17 +01:00
|
|
|
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
|
|
|
|
Add_dependency build fontconfig-devel
|
|
|
|
Add_dependency build libXext-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libstdc++-devel
|
|
|
|
Add_dependency build zlib-devel
|
2009-12-29 23:17:58 +01:00
|
|
|
Add_dependency build dbus-devel
|
2010-01-12 11:33:17 +01:00
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build sqlite-devel
|
|
|
|
Add_dependency build alsa-lib-devel
|
|
|
|
Add_dependency build openssl-devel
|
|
|
|
Add_dependency build tiff-devel
|
|
|
|
Add_dependency build libmng-devel
|
|
|
|
Add_dependency build jpeg-devel
|
|
|
|
Add_dependency build libpng-devel
|
|
|
|
Add_dependency build libSM-devel
|
|
|
|
Add_dependency build libICE-devel
|
2010-04-24 11:53:22 +02:00
|
|
|
Add_dependency build libmysqlclient-devel
|
|
|
|
Add_dependency build postgresql-libs-devel
|
|
|
|
Add_dependency build diffutils
|
|
|
|
|
|
|
|
pre_configure()
|
|
|
|
{
|
|
|
|
# Use cmp(1) from diffutils.
|
|
|
|
export PATH="/usr/bin:$PATH"
|
|
|
|
}
|
2010-01-05 23:13:52 +01:00
|
|
|
|
|
|
|
pre_build()
|
|
|
|
{
|
|
|
|
export LD_LIBRARY_PATH="${wrksrc}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
}
|
2009-12-29 23:17:58 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
|
|
|
|
|
|
|
|
cd ${wrksrc} || 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)
|
|
|
|
install -D -m644 ${icon} \
|
|
|
|
${hicolordir}/${size}x${size}/apps/linguist.png \
|
|
|
|
|| return 1
|
|
|
|
done
|
|
|
|
install -D -m644 src/gui/dialogs/images/qtlogo-64.png \
|
|
|
|
${hicolordir}/64x64/apps/qtlogo.png || return 1
|
2010-01-12 11:33:17 +01:00
|
|
|
install -D -m644 src/gui/dialogs/images/qtlogo-64.png \
|
|
|
|
${DESTDIR}/usr/share/pixmaps/qtlogo.png || return 1
|
2009-12-29 23:17:58 +01:00
|
|
|
install -D -m644 tools/assistant/tools/assistant/images/assistant.png \
|
|
|
|
${hicolordir}/32x32/apps/assistant.png || return 1
|
|
|
|
install -D -m644 tools/designer/src/designer/images/designer.png \
|
|
|
|
${hicolordir}/128x128/apps/designer.png || return 1
|
|
|
|
install -D -m644 ${FILESDIR}/gstreamer-logo.png \
|
|
|
|
${hicolordir}/128x128/apps/phonon-gstreamer.png || return 1
|
|
|
|
install -d ${DESTDIR}/usr/share/applications
|
|
|
|
install -m644 ${FILESDIR}/*.desktop \
|
|
|
|
${DESTDIR}/usr/share/applications || return 1
|
|
|
|
}
|