2009-12-29 22:17:58 +00:00
|
|
|
# Template file for 'qt'
|
|
|
|
pkgname=qt
|
2012-05-16 17:26:54 +00:00
|
|
|
version=4.8.1
|
|
|
|
patch_args="-Np1"
|
2010-01-05 22:13:52 +00:00
|
|
|
_distname=qt-everywhere-opensource-src
|
2009-12-29 22:17:58 +00:00
|
|
|
wrksrc=${_distname}-${version}
|
2011-10-08 08:54:06 +00:00
|
|
|
homepage="http://qt.nokia.com/"
|
2010-04-09 16:29:18 +00:00
|
|
|
distfiles="ftp://ftp.qt.nokia.com/qt/source/${_distname}-$version.tar.gz"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="pkg-config freetype-devel MesaLib-devel libXrender-devel fontconfig-devel libXext-devel libX11-devel libstdc++-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel libXcursor-devel zlib-devel dbus-devel glib-devel gstreamer-devel gst-plugins-base-devel sqlite-devel alsa-lib-devel openssl-devel tiff-devel libmng-devel jpeg-devel libpng-devel libSM-devel libICE-devel libmysqlclient-devel postgresql-libs-devel pulseaudio-devel gtk+-devel icu-devel cups-devel"
|
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"
|
2012-05-16 17:26:54 +00:00
|
|
|
checksum=ef851a36aa41b4ad7a3e4c96ca27eaed2a629a6d2fa06c20f072118caed87ae8
|
2009-12-29 22:17:58 +00:00
|
|
|
long_desc="
|
|
|
|
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
|
|
|
|
maintaining GUI (graphical user interface) applications."
|
|
|
|
|
2012-01-15 14:44:29 +00:00
|
|
|
subpackages="qt-libphonon qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite"
|
|
|
|
subpackages="${subpackages} qt-demos qt-docs qt-qmake qt-qtconfig"
|
2009-12-29 22:17:58 +00:00
|
|
|
subpackages="${subpackages} qt-designer qt-devel qt-devel-tools"
|
2012-01-14 18:33:35 +00:00
|
|
|
subpackages="${subpackages} qt-plugin-gstreamer"
|
2009-12-29 22:17:58 +00:00
|
|
|
|
2012-05-16 17:26:54 +00:00
|
|
|
# XXX Missing dependencies: unixodbc.
|
2010-04-24 09:53:22 +00:00
|
|
|
|
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}"
|
2010-12-04 08:56:30 +00: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 08:54:06 +00:00
|
|
|
-importdir /usr/lib/qt/imports \
|
2010-12-04 08:56:30 +00: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-05-16 17:26:54 +00:00
|
|
|
-xmlpatterns -svg -no-webkit \
|
|
|
|
-scripttools -system-zlib -graphicssystem raster \
|
2010-12-04 08:56:30 +00:00
|
|
|
-system-libtiff -system-libpng -system-libmng -system-libjpeg \
|
|
|
|
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations \
|
2012-01-13 09:45:25 +00:00
|
|
|
-no-separate-debug-info -gtkstyle -opengl -glib -gstreamer \
|
2011-11-09 09:44:27 +00:00
|
|
|
-no-sql-db2 -no-sql-ibase -gtkstyle \
|
2010-12-04 08:56:30 +00:00
|
|
|
-plugin-sql-mysql -plugin-sql-psql -no-sql-oci \
|
|
|
|
-no-sql-odbc -no-sql-sqlite2 \
|
2012-05-16 17:26:54 +00:00
|
|
|
-dbus-linked -no-nas-sound -iconv -shared \
|
2011-11-09 09:44:27 +00:00
|
|
|
-release -fast -no-sql-tds
|
2011-11-03 16:46:10 +00:00
|
|
|
}
|
2010-12-04 08:56:30 +00:00
|
|
|
|
2011-11-03 16:46:10 +00:00
|
|
|
do_build() {
|
2010-12-18 16:20:57 +00:00
|
|
|
make ${makejobs}
|
2010-01-05 22:13:52 +00:00
|
|
|
}
|
2009-12-29 22:17:58 +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
|
2009-12-29 22:17:58 +00:00
|
|
|
}
|