Added qt-4.5.3 build template.
--HG-- extra : convert_revision : b8b4a237bece5c4dd0a33dc5d4c352e306b0ef35
This commit is contained in:
parent
be6bc2332e
commit
044314e928
23 changed files with 370 additions and 0 deletions
1
srcpkgs/qt-demos
Symbolic link
1
srcpkgs/qt-demos
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-designer
Symbolic link
1
srcpkgs/qt-designer
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-devel
Symbolic link
1
srcpkgs/qt-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-devel-tools
Symbolic link
1
srcpkgs/qt-devel-tools
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-docs
Symbolic link
1
srcpkgs/qt-docs
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-plugin-gstreamer
Symbolic link
1
srcpkgs/qt-plugin-gstreamer
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-qmake
Symbolic link
1
srcpkgs/qt-qmake
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
1
srcpkgs/qt-qtconfig
Symbolic link
1
srcpkgs/qt-qtconfig
Symbolic link
|
@ -0,0 +1 @@
|
|||
qt
|
2
srcpkgs/qt/depends
Normal file
2
srcpkgs/qt/depends
Normal file
|
@ -0,0 +1,2 @@
|
|||
abi_depends=">=4.5.3"
|
||||
api_depends="${abi_depends}"
|
8
srcpkgs/qt/files/assistant.desktop
Normal file
8
srcpkgs/qt/files/assistant.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Exec=/usr/bin/assistant
|
||||
Name=Qt Assistant
|
||||
GenericName=Qt Document Browser
|
||||
Icon=assistant
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;Documentation
|
9
srcpkgs/qt/files/designer.desktop
Normal file
9
srcpkgs/qt/files/designer.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Exec=/usr/bin/designer
|
||||
Name=Qt Designer
|
||||
GenericName=Interface Designer
|
||||
MimeType=application/x-designer
|
||||
Icon=designer
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;GUIDesigner
|
BIN
srcpkgs/qt/files/gstreamer-logo.png
Normal file
BIN
srcpkgs/qt/files/gstreamer-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
9
srcpkgs/qt/files/linguist.desktop
Normal file
9
srcpkgs/qt/files/linguist.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Exec=/usr/bin/linguist
|
||||
Name=Qt Linguist
|
||||
GenericName=Translation Tool
|
||||
MimeType=application/x-linguist
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=linguist
|
||||
Categories=Qt;Development;Translation
|
8
srcpkgs/qt/files/qtconfig.desktop
Normal file
8
srcpkgs/qt/files/qtconfig.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt Config
|
||||
Comment=Configure Qt behavior, styles, fonts
|
||||
Exec=/usr/bin/qtconfig
|
||||
Icon=qtlogo
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Settings;
|
25
srcpkgs/qt/qt-demos.template
Normal file
25
srcpkgs/qt/qt-demos.template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'qt-demos'.
|
||||
#
|
||||
short_desc="Qt examples and demos"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains Qt 4 examples and demos."
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
Add_dependency run hicolor-icon-theme
|
||||
Add_dependency run qt-docs
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/doc/qt ${DESTDIR}/usr/bin
|
||||
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/64x64/apps
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/qtdemo ${DESTDIR}/usr/bin
|
||||
mv ${SRCPKGDESTDIR}/usr/share/doc/qt/demos ${DESTDIR}/usr/share/doc/qt
|
||||
mv ${SRCPKGDESTDIR}/usr/share/doc/qt/examples \
|
||||
${DESTDIR}/usr/share/doc/qt
|
||||
mv ${SRCPKGDESTDIR}/usr/share/icons/hicolor/64x64/apps/qtlogo.png \
|
||||
${DESTDIR}/usr/share/icons/hicolor/64x64/apps || return 1
|
||||
|
||||
}
|
35
srcpkgs/qt/qt-designer.template
Normal file
35
srcpkgs/qt/qt-designer.template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'qt-designer'.
|
||||
#
|
||||
short_desc="Qt GUI designer"
|
||||
long_desc="${long_desc}
|
||||
|
||||
Qt Designer is a tool for designing and building graphical user
|
||||
interfaces (GUIs) from Qt components."
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
# XXX Add missing gst-plugins-good dependency.
|
||||
Add_dependency run hicolor-icon-theme
|
||||
Add_dependency run qt-plugin-gstreamer
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib/qt/plugins \
|
||||
${DESTDIR}/usr/bin \
|
||||
${DESTDIR}/usr/share/icons/hicolor/128x128/apps \
|
||||
${DESTDIR}/usr/share/applications
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/designer ${DESTDIR}/usr/bin || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libQtDesigner.so.* \
|
||||
${DESTDIR}/usr/lib || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libQtDesignerComponents.so.* \
|
||||
${DESTDIR}/usr/lib || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/designer \
|
||||
${DESTDIR}/usr/lib/qt/plugins || return 1
|
||||
for d in /usr/share/icons/hicolor/128x128/apps \
|
||||
/usr/share/applications; do
|
||||
mkdir -p ${DESTDIR}/${d} || return 1
|
||||
mv ${SRCPKGDESTDIR}/${d}/designer.* ${DESTDIR}/${d} || return 1
|
||||
done
|
||||
}
|
40
srcpkgs/qt/qt-devel-tools.template
Normal file
40
srcpkgs/qt/qt-devel-tools.template
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Template file for 'qt-devel-tools'.
|
||||
#
|
||||
short_desc="Qt development tools"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This packages contains tools used to assist in Qt development, including
|
||||
the Qt Assistant, Linguist, D-Bus Viewer and Pixel Tool applications. "
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
Add_dependency run hicolor-icon-theme
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/qt/translations ${DESTDIR}/usr/bin
|
||||
for f in assistant* lconvert linguist pixeltool qcollectiongenerator \
|
||||
qdbusviewer qhelp* xmlpatterns qdbus; do
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin || return 1
|
||||
done
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mkdir -p ${DESTDIR}/usr/share/applications
|
||||
mkdir -p ${DESTDIR}/usr/share/pixmaps
|
||||
mkdir -p ${DESTDIR}/usr/share/icons
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/share/icons/hicolor \
|
||||
${DESTDIR}/usr/share/icons || return 1
|
||||
for f in linguist assistant; do
|
||||
mv ${SRCPKGDESTDIR}/usr/share/applications/${f}.desktop \
|
||||
${DESTDIR}/usr/share/applications || return 1
|
||||
[ ! -f ${SRCPKGDESTDIR}/usr/share/pixmaps/${f}.png ] && continue
|
||||
mv ${SRCPKGDESTDIR}/usr/share/pixmaps/${f}.png \
|
||||
${DESTDIR}/usr/share/pixmaps || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/share/qt/translations/${f}* \
|
||||
${DESTDIR}/usr/share/qt/translations || return 1
|
||||
done
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/share/qt/phrasebooks \
|
||||
${DESTDIR}/usr/share/qt || return 1
|
||||
}
|
43
srcpkgs/qt/qt-devel.template
Normal file
43
srcpkgs/qt/qt-devel.template
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Template file for 'qt-devel'.
|
||||
#
|
||||
short_desc="Qt development files"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the header development files and development
|
||||
programs used for runing Qt applications."
|
||||
|
||||
Add_dependency run openssl-devel
|
||||
Add_dependency run dbus-devel
|
||||
Add_dependency run fontconfig-devel
|
||||
Add_dependency run freetype-devel
|
||||
Add_dependency run glib-devel
|
||||
Add_dependency run MesaLib-devel
|
||||
Add_dependency run gst-plugins-base-devel
|
||||
Add_dependency run jpeg-devel
|
||||
Add_dependency run libmng-devel
|
||||
Add_dependency run libpng-devel
|
||||
Add_dependency run tiff-devel
|
||||
Add_dependency run sqlite-devel
|
||||
Add_dependency run libxml2-devel
|
||||
Add_dependency run libICE-devel
|
||||
Add_dependency run libSM-devel
|
||||
Add_dependency run libX11-devel
|
||||
Add_dependency run libXext-devel
|
||||
Add_dependency run libXrender-devel
|
||||
Add_dependency run zlib-devel
|
||||
Add_dependency run qt-qmake
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/bin
|
||||
for f in lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp qt3to4 \
|
||||
rcc uic uic3; do
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin || return 1
|
||||
done
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.prl ${DESTDIR}/usr/lib || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib || return 1
|
||||
}
|
16
srcpkgs/qt/qt-docs.template
Normal file
16
srcpkgs/qt/qt-docs.template
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Template file for 'qt-docs'.
|
||||
#
|
||||
short_desc="Qt API documentation"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the complete Qt 4 API documentation (new help format)."
|
||||
|
||||
noarch=yes
|
||||
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/doc
|
||||
mv ${SRCPKGDESTDIR}/usr/share/doc/qt ${DESTDIR}/usr/share/doc
|
||||
}
|
25
srcpkgs/qt/qt-plugin-gstreamer.template
Normal file
25
srcpkgs/qt/qt-plugin-gstreamer.template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'qt-plugin-gstreamer'.
|
||||
#
|
||||
short_desc="Qt GStreamer phonon plugin"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains a Qt GStreamer plugin for the phonon backend."
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
Add_dependency run hicolor-icon-theme
|
||||
Add_dependency run gst-plugins-base
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
local icondir=/usr/share/icons/hicolor/128x128/apps
|
||||
|
||||
mkdir -p ${DESTDIR}/usr/lib/qt/plugins ${DESTDIR}/${icondir}
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/phonon_backend \
|
||||
${DESTDIR}/usr/lib/qt/plugins || return 1
|
||||
mv ${SRCPKGDESTDIR}/${icondir}/phonon-gstreamer.png \
|
||||
${DESTDIR}/${icondir} || return 1
|
||||
|
||||
}
|
25
srcpkgs/qt/qt-qmake.template
Normal file
25
srcpkgs/qt/qt-qmake.template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'qt-qmake'.
|
||||
#
|
||||
short_desc="Qt qmake Makefile generator tool"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains Qt 4 qmake (qmake), a tool that helps simplify the
|
||||
build process for development project across different platforms. qmake
|
||||
automates the generation of Makefiles so that only a few lines of information
|
||||
are needed to create each Makefile. qmake can be used for any software
|
||||
project, whether it is written using Qt or not.
|
||||
|
||||
Qt qmake requires a platform and compiler description file which contains
|
||||
many default values used to generate appropriate Makefiles.
|
||||
|
||||
This package contains also these platform specifications."
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run libstdc++
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/qt
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/qmake ${DESTDIR}/usr/bin
|
||||
mv ${SRCPKGDESTDIR}/usr/share/qt/mkspecs ${DESTDIR}/usr/share/qt
|
||||
}
|
23
srcpkgs/qt/qt-qtconfig.template
Normal file
23
srcpkgs/qt/qt-qtconfig.template
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'qt-qtconfig'.
|
||||
#
|
||||
short_desc="Qt configuration tool"
|
||||
long_desc="${long_desc}
|
||||
|
||||
The Qt Configuration program allows end users to configure the look
|
||||
and behavior of any Qt application."
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
Add_dependency run hicolor-icon-theme
|
||||
Add_dependency run qt-plugin-gstreamer
|
||||
Add_dependency run qt
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/applications
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/bin/qtconfig \
|
||||
${DESTDIR}/usr/bin || return 1
|
||||
mv ${SRCPKGDESTDIR}/usr/share/applications/qtconfig.desktop \
|
||||
${DESTDIRR}/usr/share/applications || return 1
|
||||
}
|
94
srcpkgs/qt/template
Normal file
94
srcpkgs/qt/template
Normal file
|
@ -0,0 +1,94 @@
|
|||
# Template file for 'qt'
|
||||
pkgname=qt
|
||||
version=4.5.3
|
||||
_distname=qt-x11-opensource-src
|
||||
wrksrc=${_distname}-${version}
|
||||
distfiles="ftp://ftp.qtsoftware.com/qt/source/${_distname}-$version.tar.gz"
|
||||
build_style=configure
|
||||
configure_args="-confirm-license -opensource
|
||||
-prefix /usr -sysconfdir /etc -plugindir /usr/lib/qt/plugins
|
||||
-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 -phonon -phonon-backend -svg -webkit -scripttools -system-zlib
|
||||
-system-libtiff -system-libpng -system-libmng -system-libjpeg
|
||||
-openssl-linked -no-rpath -optimized-qmake -reduce-relocations
|
||||
-no-separate-debug-info -gtkstyle -opengl -glib -no-sql-db2 -no-sql-ibase
|
||||
-no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-sqlite2 -no-sql-tds
|
||||
-no-cups -dbus-linked -no-nas-sound -iconv -shared -release -fast"
|
||||
make_install_target="INSTALL_ROOT=$XBPS_DESTDIR/$pkgname-$version install"
|
||||
short_desc="A cross-platform application and UI framework"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=0c87fc42825d3556970db4412257c6874e716ac3bc45e6f273924d5d6a089aa6
|
||||
long_desc="
|
||||
Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and
|
||||
maintaining GUI (graphical user interface) applications."
|
||||
|
||||
subpackages="qt-plugin-gstreamer qt-demos qt-docs qt-qmake qt-qtconfig"
|
||||
subpackages="${subpackages} qt-designer qt-devel qt-devel-tools"
|
||||
|
||||
# XXX Missing dependencies: unixodbc, postgresql, mysql, cups.
|
||||
Add_dependency run glibc
|
||||
Add_dependency run openssl
|
||||
Add_dependency run dbus-libs
|
||||
Add_dependency run fontconfig
|
||||
Add_dependency run freetype
|
||||
Add_dependency run glib
|
||||
Add_dependency run MesaLib
|
||||
Add_dependency run jpeg
|
||||
Add_dependency run libmng
|
||||
Add_dependency run libpng
|
||||
Add_dependency run tiff
|
||||
Add_dependency run sqlite
|
||||
Add_dependency run libxml2
|
||||
Add_dependency run libICE
|
||||
Add_dependency run libSM
|
||||
Add_dependency run libX11
|
||||
Add_dependency run libXext
|
||||
Add_dependency run libXrender
|
||||
Add_dependency run libstdc++
|
||||
Add_dependency run zlib
|
||||
Add_dependency build openssl-devel
|
||||
Add_dependency build dbus-devel
|
||||
Add_dependency build fontconfig-devel
|
||||
Add_dependency build freetype-devel
|
||||
Add_dependency build glib-devel
|
||||
Add_dependency build MesaLib-devel
|
||||
Add_dependency build gst-plugins-base-devel
|
||||
Add_dependency build jpeg-devel
|
||||
Add_dependency build libmng-devel
|
||||
Add_dependency build libpng-devel
|
||||
Add_dependency build tiff-devel
|
||||
Add_dependency build sqlite-devel
|
||||
Add_dependency build libxml2-devel
|
||||
Add_dependency build libICE-devel
|
||||
Add_dependency build libSM-devel
|
||||
Add_dependency build libX11-devel
|
||||
Add_dependency build libXext-devel
|
||||
Add_dependency build libXrender-devel
|
||||
Add_dependency build zlib-devel
|
||||
|
||||
post_install()
|
||||
{
|
||||
local hicolordir=${DESTDIR}/usr/share/icons/hicolor
|
||||
|
||||
cd ${wrksrc} || return 1
|
||||
# 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 \
|
||||
|| return 1
|
||||
done
|
||||
install -D -m644 src/gui/dialogs/images/qtlogo-64.png \
|
||||
${hicolordir}/64x64/apps/qtlogo.png || return 1
|
||||
install -D -m644 tools/assistant/tools/assistant/images/assistant.png \
|
||||
${hicolordir}/32x32/apps/assistant.png || return 1
|
||||
install -D -m644 tools/designer/src/designer/images/designer.png \
|
||||
${hicolordir}/128x128/apps/designer.png || return 1
|
||||
install -D -m644 ${FILESDIR}/gstreamer-logo.png \
|
||||
${hicolordir}/128x128/apps/phonon-gstreamer.png || return 1
|
||||
install -d ${DESTDIR}/usr/share/applications
|
||||
install -m644 ${FILESDIR}/*.desktop \
|
||||
${DESTDIR}/usr/share/applications || return 1
|
||||
}
|
Loading…
Reference in a new issue