2009-12-29 23:17:58 +01:00
|
|
|
# Template file for 'qt'
|
|
|
|
pkgname=qt
|
2012-01-13 10:45:25 +01:00
|
|
|
version=4.8.0
|
2010-01-05 23:13:52 +01:00
|
|
|
_distname=qt-everywhere-opensource-src
|
2009-12-29 23:17:58 +01:00
|
|
|
wrksrc=${_distname}-${version}
|
2011-10-08 10:54:06 +02:00
|
|
|
homepage="http://qt.nokia.com/"
|
2010-04-09 18:29:18 +02:00
|
|
|
distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz"
|
2012-01-14 20:27:57 +01:00
|
|
|
revision=3
|
2009-12-29 23:17:58 +01:00
|
|
|
short_desc="A cross-platform application and UI framework"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-08 10:54:06 +02:00
|
|
|
license="GPL-3, LGPL-2.1"
|
2012-01-13 10:45:25 +01:00
|
|
|
checksum=9392b74e485e15f75a3e07a527547d4f6747eaf55ebce71ba0e863a9fd320b6e
|
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-12-04 09:56:30 +01:00
|
|
|
subpackages="qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite qt-demos"
|
|
|
|
subpackages="${subpackages} qt-docs qt-qmake qt-qtconfig"
|
2009-12-29 23:17:58 +01:00
|
|
|
subpackages="${subpackages} qt-designer qt-devel qt-devel-tools"
|
2012-01-14 19:33:35 +01:00
|
|
|
subpackages="${subpackages} qt-plugin-gstreamer"
|
2009-12-29 23:17:58 +01:00
|
|
|
|
2010-04-24 11:53:22 +02:00
|
|
|
# XXX Missing dependencies: unixodbc and cups.
|
2010-01-12 11:33:17 +01:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
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
|
2011-07-04 12:54:27 +02:00
|
|
|
Add_dependency build libXi-devel
|
|
|
|
Add_dependency build libXv-devel
|
|
|
|
Add_dependency build libXinerama-devel
|
2011-11-03 17:46:10 +01:00
|
|
|
Add_dependency build libXrandr-devel
|
2010-01-12 11:33:17 +01:00
|
|
|
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
|
2012-01-13 10:45:25 +01:00
|
|
|
Add_dependency build gstreamer-devel
|
|
|
|
Add_dependency build gst-plugins-base-devel
|
2010-01-12 11:33:17 +01:00
|
|
|
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
|
2011-07-04 12:54:27 +02:00
|
|
|
Add_dependency build pulseaudio-devel
|
2011-11-09 10:44:27 +01:00
|
|
|
Add_dependency build gtk+-devel
|
2012-01-14 20:27:57 +01:00
|
|
|
Add_dependency build icu-devel
|
2010-04-24 11:53:22 +02:00
|
|
|
|
2011-11-03 17:46:10 +01:00
|
|
|
do_configure() {
|
2010-01-05 23:13:52 +01:00
|
|
|
export LD_LIBRARY_PATH="${wrksrc}/lib:${LD_LIBRARY_PATH}"
|
2010-12-04 09:56:30 +01:00
|
|
|
|
|
|
|
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 \
|
2011-10-08 10:54:06 +02:00
|
|
|
-importdir /usr/lib/qt/imports \
|
2010-12-04 09:56:30 +01:00
|
|
|
-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 \
|
2012-01-13 10:45:25 +01:00
|
|
|
-xmlpatterns -svg -webkit \
|
2010-12-04 09:56:30 +01:00
|
|
|
-scripttools -system-zlib \
|
|
|
|
-system-libtiff -system-libpng -system-libmng -system-libjpeg \
|
|
|
|
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations \
|
2012-01-13 10:45:25 +01:00
|
|
|
-no-separate-debug-info -gtkstyle -opengl -glib -gstreamer \
|
2011-11-09 10:44:27 +01:00
|
|
|
-no-sql-db2 -no-sql-ibase -gtkstyle \
|
2010-12-04 09:56:30 +01: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 \
|
2011-11-09 10:44:27 +01:00
|
|
|
-release -fast -no-sql-tds
|
2011-11-03 17:46:10 +01:00
|
|
|
}
|
2010-12-04 09:56:30 +01:00
|
|
|
|
2011-11-03 17:46:10 +01:00
|
|
|
do_build() {
|
2010-12-18 17:20:57 +01:00
|
|
|
make ${makejobs}
|
2010-01-05 23:13:52 +01:00
|
|
|
}
|
2009-12-29 23:17:58 +01:00
|
|
|
|
2011-11-03 17:46:10 +01:00
|
|
|
do_install() {
|
2009-12-29 23:17:58 +01:00
|
|
|
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
|
|
|
|
|
2010-12-18 17:20:57 +01:00
|
|
|
make INSTALL_ROOT=${DESTDIR} install
|
2010-12-04 09:56:30 +01:00
|
|
|
|
2012-01-13 10:45:25 +01:00
|
|
|
# delete tests
|
|
|
|
rm -rf ${DESTDIR}/usr/tests
|
|
|
|
|
2009-12-29 23:17:58 +01:00
|
|
|
# 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} \
|
2010-12-18 17:20:57 +01:00
|
|
|
${hicolordir}/${size}x${size}/apps/linguist.png
|
2009-12-29 23:17:58 +01:00
|
|
|
done
|
2011-11-03 17:46:10 +01:00
|
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2010-12-18 17:20:57 +01:00
|
|
|
${hicolordir}/64x64/apps/qtlogo.png
|
2011-11-03 17:46:10 +01:00
|
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2010-12-18 17:20:57 +01:00
|
|
|
${DESTDIR}/usr/share/pixmaps/qtlogo.png
|
2011-11-03 17:46:10 +01:00
|
|
|
install -Dm644 tools/assistant/tools/assistant/images/assistant.png \
|
2010-12-18 17:20:57 +01:00
|
|
|
${hicolordir}/32x32/apps/assistant.png
|
2011-11-03 17:46:10 +01:00
|
|
|
install -Dm644 tools/designer/src/designer/images/designer.png \
|
2010-12-18 17:20:57 +01:00
|
|
|
${hicolordir}/128x128/apps/designer.png
|
2009-12-29 23:17:58 +01:00
|
|
|
install -d ${DESTDIR}/usr/share/applications
|
|
|
|
install -m644 ${FILESDIR}/*.desktop \
|
2010-12-18 17:20:57 +01:00
|
|
|
${DESTDIR}/usr/share/applications
|
2009-12-29 23:17:58 +01:00
|
|
|
}
|