2009-12-29 22:17:58 +00:00
|
|
|
# Template file for 'qt'
|
|
|
|
pkgname=qt
|
2014-04-27 08:15:11 +00:00
|
|
|
version=4.8.6
|
2014-12-01 15:24:04 +00:00
|
|
|
revision=8
|
2010-01-05 22:13:52 +00:00
|
|
|
_distname=qt-everywhere-opensource-src
|
2014-03-08 10:41:19 +00:00
|
|
|
patch_args="-Np1"
|
2009-12-29 22:17:58 +00:00
|
|
|
wrksrc=${_distname}-${version}
|
2013-07-02 12:12:00 +00:00
|
|
|
homepage="http://qt-project.com/"
|
2009-12-29 22:17:58 +00:00
|
|
|
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"
|
2013-07-02 12:12:00 +00:00
|
|
|
distfiles="http://download.qt-project.org/official_releases/qt/4.8/${version}/${_distname}-${version}.tar.gz"
|
2014-04-27 08:15:11 +00:00
|
|
|
checksum=8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c
|
2009-12-29 22:17:58 +00:00
|
|
|
|
2014-08-21 10:08:17 +00:00
|
|
|
nocross=yes
|
2013-07-02 12:12:00 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-07-15 18:36:57 +00:00
|
|
|
makedepends="
|
|
|
|
libressl-devel libpng-devel>=1.6 MesaLib-devel libXrender-devel unixodbc-devel
|
2012-11-29 19:56:35 +00:00
|
|
|
fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel
|
2014-10-29 12:50:47 +00:00
|
|
|
libXcursor-devel dbus-devel glib-devel icu-devel>=54.1 cups-devel libjpeg-turbo-devel
|
2014-07-15 18:36:57 +00:00
|
|
|
sqlite-devel alsa-lib-devel tiff-devel libmng-devel libxshmfence-devel
|
2014-03-08 10:41:19 +00:00
|
|
|
libSM-devel gtk+-devel libmysqlclient-devel>=5.5.27 postgresql-libs-devel
|
|
|
|
pulseaudio-devel"
|
2014-11-30 18:31:37 +00:00
|
|
|
depends="qtchooser"
|
2014-03-08 10:41:19 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf
|
|
|
|
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
|
|
|
|
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf
|
|
|
|
}
|
2011-11-03 16:46:10 +00:00
|
|
|
do_configure() {
|
2010-01-05 22:13:52 +00:00
|
|
|
export LD_LIBRARY_PATH="${wrksrc}/lib:${LD_LIBRARY_PATH}"
|
2013-04-14 15:45:22 +00:00
|
|
|
export LD="$CXX"
|
2010-12-04 08:56:30 +00:00
|
|
|
|
2012-08-14 14:53:39 +00:00
|
|
|
./configure -confirm-license -opensource \
|
2010-12-04 08:56:30 +00:00
|
|
|
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins \
|
2011-10-08 08:54:06 +00:00
|
|
|
-importdir /usr/lib/qt/imports \
|
2010-12-04 08:56:30 +00:00
|
|
|
-translationdir /usr/share/qt/translations \
|
2014-11-30 18:17:06 +00:00
|
|
|
-datadir /usr/share/qt -bindir /usr/lib/qt/bin \
|
2012-08-14 14:53:39 +00:00
|
|
|
-nomake demos -nomake examples -nomake docs -gtkstyle \
|
2013-05-22 21:33:37 +00:00
|
|
|
-system-sqlite -no-phonon -no-phonon-backend \
|
2012-08-14 14:53:39 +00:00
|
|
|
-graphicssystem raster -openssl-linked -silent -no-rpath \
|
|
|
|
-optimized-qmake -reduce-relocations -dbus-linked -no-openvg
|
2011-11-03 16:46:10 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
2013-04-14 15:45:22 +00:00
|
|
|
export LD_LIBRARY_PATH="${wrksrc}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
export LD="$CXX"
|
2010-12-18 16:20:57 +00:00
|
|
|
make ${makejobs}
|
2010-01-05 22:13:52 +00:00
|
|
|
}
|
2011-11-03 16:46:10 +00:00
|
|
|
do_install() {
|
2009-12-29 22:17:58 +00:00
|
|
|
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
|
|
|
|
|
2010-12-18 16:20:57 +00:00
|
|
|
make INSTALL_ROOT=${DESTDIR} install
|
2010-12-04 08:56:30 +00:00
|
|
|
|
2012-01-13 09:45:25 +00:00
|
|
|
# delete tests
|
|
|
|
rm -rf ${DESTDIR}/usr/tests
|
|
|
|
|
2009-12-29 22:17:58 +00: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 16:20:57 +00:00
|
|
|
${hicolordir}/${size}x${size}/apps/linguist.png
|
2009-12-29 22:17:58 +00:00
|
|
|
done
|
2011-11-03 16:46:10 +00:00
|
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2010-12-18 16:20:57 +00:00
|
|
|
${hicolordir}/64x64/apps/qtlogo.png
|
2011-11-03 16:46:10 +00:00
|
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
2010-12-18 16:20:57 +00:00
|
|
|
${DESTDIR}/usr/share/pixmaps/qtlogo.png
|
2011-11-03 16:46:10 +00:00
|
|
|
install -Dm644 tools/assistant/tools/assistant/images/assistant.png \
|
2010-12-18 16:20:57 +00:00
|
|
|
${hicolordir}/32x32/apps/assistant.png
|
2011-11-03 16:46:10 +00:00
|
|
|
install -Dm644 tools/designer/src/designer/images/designer.png \
|
2010-12-18 16:20:57 +00:00
|
|
|
${hicolordir}/128x128/apps/designer.png
|
2009-12-29 22:17:58 +00:00
|
|
|
install -d ${DESTDIR}/usr/share/applications
|
|
|
|
install -m644 ${FILESDIR}/*.desktop \
|
2010-12-18 16:20:57 +00:00
|
|
|
${DESTDIR}/usr/share/applications
|
2012-05-23 21:10:40 +00:00
|
|
|
|
|
|
|
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
|
2014-11-30 18:17:06 +00:00
|
|
|
|
|
|
|
vmkdir usr/bin
|
|
|
|
for f in ${DESTDIR}/usr/lib/qt/bin/*; do
|
|
|
|
ln -s /usr/lib/qt/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt4
|
|
|
|
done
|
2009-12-29 22:17:58 +00:00
|
|
|
}
|
2013-04-14 09:26:34 +00:00
|
|
|
|
2013-04-14 15:45:22 +00:00
|
|
|
qt-designer_package() {
|
|
|
|
depends="hicolor-icon-theme"
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - GUI designer"
|
2013-04-14 15:45:22 +00:00
|
|
|
pkg_install() {
|
2014-11-30 18:17:06 +00:00
|
|
|
vmove usr/bin/designer-qt4
|
|
|
|
vmove usr/lib/qt/bin/designer
|
2013-04-14 15:45:22 +00:00
|
|
|
vmove "usr/lib/libQtDesigner.so*"
|
|
|
|
vmove "usr/lib/libQtDesignerComponents.so*"
|
|
|
|
vmove usr/lib/qt/plugins/designer
|
|
|
|
vmove "usr/share/icons/hicolor/128x128/apps/designer.*"
|
|
|
|
vmove "usr/share/applications/designer.*"
|
|
|
|
vmove "usr/share/qt/translations/designer*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-devel-tools_package() {
|
|
|
|
depends="hicolor-icon-theme"
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - development tools"
|
2013-04-14 15:45:22 +00:00
|
|
|
pkg_install() {
|
2014-11-30 19:04:02 +00:00
|
|
|
for f in assistant lconvert linguist pixeltool qcollectiongenerator \
|
|
|
|
qhelpgenerator qhelpconverter xmlpatterns xmlpatternsvalidator \
|
|
|
|
qttracereplay qdoc3 qmlviewer; do
|
2014-11-30 18:17:06 +00:00
|
|
|
vmove usr/bin/${f}-qt4
|
|
|
|
vmove usr/lib/qt/bin/${f}
|
2013-04-14 15:45:22 +00:00
|
|
|
done
|
|
|
|
vmove usr/share/icons/hicolor
|
|
|
|
for f in linguist assistant; do
|
|
|
|
vmove usr/share/applications/${f}.desktop
|
|
|
|
[ ! -f ${DESTDIR}/usr/share/pixmaps/${f}.png ] && continue
|
|
|
|
vmove usr/share/pixmaps/${f}.png
|
|
|
|
done
|
|
|
|
vmove usr/share/qt/phrasebooks
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-devel_package() {
|
2014-12-01 15:24:04 +00:00
|
|
|
depends="qt-qmake qt-devel-tools libX11-devel icu-devel qt>=${version}_${revision}"
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 15:45:22 +00:00
|
|
|
pkg_install() {
|
|
|
|
for f in lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp qt3to4 \
|
|
|
|
rcc uic uic3; do
|
2014-11-30 18:17:06 +00:00
|
|
|
vmove usr/bin/${f}-qt4
|
|
|
|
vmove usr/lib/qt/bin/${f}
|
2013-04-14 15:45:22 +00:00
|
|
|
done
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.prl"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-02 12:12:00 +00:00
|
|
|
qt-plugin-odbc_package() {
|
|
|
|
short_desc+=" - ODBC plugin"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/qt/plugins/sqldrivers/libqsqlodbc.so
|
|
|
|
}
|
|
|
|
}
|
2013-04-14 09:26:34 +00:00
|
|
|
qt-plugin-pgsql_package() {
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - PostgreSQL plugin"
|
2013-04-14 09:26:34 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/qt/plugins/sqldrivers/libqsqlpsql.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-plugin-mysql_package() {
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - MySQL plugin"
|
2013-04-14 09:26:34 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/qt/plugins/sqldrivers/libqsqlmysql.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-plugin-sqlite_package() {
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - SQLite plugin"
|
2013-04-14 09:26:34 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/qt/plugins/sqldrivers/libqsqlite.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-qmake_package() {
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - qmake Makefile generator tool"
|
2013-04-14 09:26:34 +00:00
|
|
|
pkg_install() {
|
2014-11-30 18:17:06 +00:00
|
|
|
vmove usr/bin/qmake-qt4
|
|
|
|
vmove usr/lib/qt/bin/qmake
|
2013-04-14 09:26:34 +00:00
|
|
|
vmove usr/share/qt/mkspecs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qt-qtconfig_package() {
|
|
|
|
depends="hicolor-icon-theme"
|
2013-06-17 13:12:37 +00:00
|
|
|
short_desc+=" - configuration tool"
|
2013-04-14 09:26:34 +00:00
|
|
|
pkg_install() {
|
2014-11-30 18:17:06 +00:00
|
|
|
vmove usr/bin/qtconfig-qt4
|
|
|
|
vmove usr/lib/qt/bin/qtconfig
|
2013-04-14 09:26:34 +00:00
|
|
|
vmove usr/share/applications/qtconfig.desktop
|
|
|
|
vmove usr/share/pixmaps/qtlogo.png
|
|
|
|
vmove "usr/share/qt/translations/qtconfig*"
|
|
|
|
}
|
|
|
|
}
|