2009-12-29 23:17:58 +01:00
|
|
|
# Template file for 'qt'
|
|
|
|
pkgname=qt
|
2012-09-13 17:42:53 +02:00
|
|
|
version=4.8.3
|
|
|
|
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}
|
2011-10-08 10:54:06 +02:00
|
|
|
homepage="http://qt.nokia.com/"
|
2012-08-14 16:53:39 +02:00
|
|
|
subpackages="qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite
|
|
|
|
qt-qmake qt-qtconfig qt-designer qt-devel qt-devel-tools"
|
2012-05-23 23:10:40 +02:00
|
|
|
# XXX Missing dependencies: unixodbc.
|
2012-06-14 10:34:31 +02:00
|
|
|
makedepends="pkg-config libpng-devel>=1.5.10 MesaLib-devel libXrender-devel
|
|
|
|
fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel
|
2012-08-14 16:53:39 +02:00
|
|
|
libXcursor-devel dbus-devel glib-devel icu-devel cups-devel
|
2012-06-14 10:34:31 +02:00
|
|
|
sqlite-devel alsa-lib-devel openssl-devel tiff-devel libmng-devel jpeg-devel
|
2012-08-14 16:53:39 +02:00
|
|
|
libmysqlclient-devel>=5.5.27 postgresql-libs-devel pulseaudio-devel gtk+-devel"
|
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-05-23 23:10:40 +02:00
|
|
|
distfiles="http://releases.qt-project.org/qt4/source/${_distname}-$version.tar.gz"
|
2012-09-13 17:42:53 +02:00
|
|
|
checksum=f1f72974f924861be04019f49f07cd43ab3c95056db2ba8f34b283487cccc728
|
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."
|
|
|
|
|
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
|
|
|
|
|
2012-08-14 16:53:39 +02:00
|
|
|
./configure -confirm-license -opensource \
|
2010-12-04 09:56:30 +01:00
|
|
|
-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 \
|
2012-08-14 16:53:39 +02:00
|
|
|
-nomake demos -nomake examples -nomake docs -gtkstyle \
|
|
|
|
-system-sqlite -no-phonon -no-phonon-backend -no-webkit \
|
|
|
|
-graphicssystem raster -openssl-linked -silent -no-rpath \
|
|
|
|
-optimized-qmake -reduce-relocations -dbus-linked -no-openvg
|
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
|
2012-05-23 23:10:40 +02:00
|
|
|
|
|
|
|
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
|
2009-12-29 23:17:58 +01:00
|
|
|
}
|