79 lines
3.3 KiB
Plaintext
79 lines
3.3 KiB
Plaintext
# Template file for 'qt'
|
|
pkgname=qt
|
|
version=4.8.2
|
|
patch_args="-Np1"
|
|
_distname=qt-everywhere-opensource-src
|
|
wrksrc=${_distname}-${version}
|
|
homepage="http://qt.nokia.com/"
|
|
subpackages="qt-libphonon qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite qt-demos qt-docs qt-qmake qt-qtconfig qt-designer qt-devel qt-devel-tools qt-plugin-gstreamer"
|
|
# XXX Missing dependencies: unixodbc.
|
|
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"
|
|
short_desc="A cross-platform application and UI framework"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-3, LGPL-2.1"
|
|
distfiles="http://releases.qt-project.org/qt4/source/${_distname}-$version.tar.gz"
|
|
checksum=921b2a2d060934ceda65ae4615edec474cea13d3c893e7df19ad1262e7dc2379
|
|
long_desc="
|
|
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
|
|
maintaining GUI (graphical user interface) applications."
|
|
|
|
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 -v -confirm-license -opensource \
|
|
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins \
|
|
-importdir /usr/lib/qt/imports \
|
|
-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 \
|
|
-xmlpatterns -svg -no-webkit \
|
|
-scripttools -system-zlib -graphicssystem raster \
|
|
-system-libtiff -system-libpng -system-libmng -system-libjpeg \
|
|
-openssl-linked -optimized-qmake -no-rpath -reduce-relocations \
|
|
-no-separate-debug-info -gtkstyle -opengl -glib -gstreamer \
|
|
-no-sql-db2 -no-sql-ibase -gtkstyle \
|
|
-plugin-sql-mysql -plugin-sql-psql -no-sql-oci \
|
|
-no-sql-odbc -no-sql-sqlite2 \
|
|
-dbus-linked -no-nas-sound -iconv -shared \
|
|
-release -fast -no-sql-tds
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
|
|
|
|
make INSTALL_ROOT=${DESTDIR} install
|
|
|
|
# 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
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
|
${hicolordir}/64x64/apps/qtlogo.png
|
|
install -Dm644 src/gui/dialogs/images/qtlogo-64.png \
|
|
${DESTDIR}/usr/share/pixmaps/qtlogo.png
|
|
install -Dm644 tools/assistant/tools/assistant/images/assistant.png \
|
|
${hicolordir}/32x32/apps/assistant.png
|
|
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
|
|
|
|
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
|
|
}
|