void-packages/srcpkgs/qt/template

73 lines
2.6 KiB
Text
Raw Normal View History

# Template file for 'qt'
pkgname=qt
2012-11-29 19:56:35 +00:00
version=4.8.4
revision=2
_distname=qt-everywhere-opensource-src
wrksrc=${_distname}-${version}
2011-10-08 08:54:06 +00:00
homepage="http://qt.nokia.com/"
short_desc="A cross-platform application and UI framework"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-08 08:54:06 +00:00
license="GPL-3, LGPL-2.1"
2012-05-23 21:10:40 +00:00
distfiles="http://releases.qt-project.org/qt4/source/${_distname}-$version.tar.gz"
2012-11-29 19:56:35 +00:00
checksum=33b0e38ba4c54a0cf8a4be8ca5a4584f1c2e0adfecb57b21d9d1d267b0093270
2012-11-29 19:56:35 +00:00
subpackages="qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite
qt-qmake qt-qtconfig qt-designer qt-devel qt-devel-tools"
# XXX Missing dependencies: unixodbc.
makedepends="pkg-config libpng-devel>=1.5.10 MesaLib-devel libXrender-devel
fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel
libXcursor-devel dbus-devel glib-devel icu-devel cups-devel libjpeg-turbo-devel
2012-11-29 19:56:35 +00:00
sqlite-devel alsa-lib-devel openssl-devel tiff-devel libmng-devel gtk+-devel
libmysqlclient-devel>=5.5.27 postgresql-libs-devel pulseaudio-devel"
2011-11-03 16:46:10 +00:00
do_configure() {
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 -confirm-license -opensource \
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins \
2011-10-08 08:54:06 +00:00
-importdir /usr/lib/qt/imports \
-translationdir /usr/share/qt/translations \
-datadir /usr/share/qt \
-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 16:46:10 +00:00
}
2011-11-03 16:46:10 +00:00
do_build() {
make ${makejobs}
}
2011-11-03 16:46:10 +00:00
do_install() {
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
make INSTALL_ROOT=${DESTDIR} install
2012-01-13 09:45:25 +00:00
# delete tests
rm -rf ${DESTDIR}/usr/tests
# 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
done
2011-11-03 16:46:10 +00:00
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
${hicolordir}/64x64/apps/qtlogo.png
2011-11-03 16:46:10 +00:00
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
${DESTDIR}/usr/share/pixmaps/qtlogo.png
2011-11-03 16:46:10 +00:00
install -Dm644 tools/assistant/tools/assistant/images/assistant.png \
${hicolordir}/32x32/apps/assistant.png
2011-11-03 16:46:10 +00:00
install -Dm644 tools/designer/src/designer/images/designer.png \
${hicolordir}/128x128/apps/designer.png
install -d ${DESTDIR}/usr/share/applications
install -m644 ${FILESDIR}/*.desktop \
${DESTDIR}/usr/share/applications
2012-05-23 21:10:40 +00:00
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
}