diff --git a/srcpkgs/qt-demos b/srcpkgs/qt-demos new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-demos @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-designer b/srcpkgs/qt-designer new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-designer @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-devel b/srcpkgs/qt-devel new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-devel @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-devel-tools b/srcpkgs/qt-devel-tools new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-devel-tools @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-docs b/srcpkgs/qt-docs new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-docs @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-plugin-gstreamer b/srcpkgs/qt-plugin-gstreamer new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-plugin-gstreamer @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-qmake b/srcpkgs/qt-qmake new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-qmake @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt-qtconfig b/srcpkgs/qt-qtconfig new file mode 120000 index 00000000000..382f738416a --- /dev/null +++ b/srcpkgs/qt-qtconfig @@ -0,0 +1 @@ +qt \ No newline at end of file diff --git a/srcpkgs/qt/depends b/srcpkgs/qt/depends new file mode 100644 index 00000000000..2597692ce5d --- /dev/null +++ b/srcpkgs/qt/depends @@ -0,0 +1,2 @@ +abi_depends=">=4.5.3" +api_depends="${abi_depends}" diff --git a/srcpkgs/qt/files/assistant.desktop b/srcpkgs/qt/files/assistant.desktop new file mode 100644 index 00000000000..1b9f0a76804 --- /dev/null +++ b/srcpkgs/qt/files/assistant.desktop @@ -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 diff --git a/srcpkgs/qt/files/designer.desktop b/srcpkgs/qt/files/designer.desktop new file mode 100644 index 00000000000..8f362731bf0 --- /dev/null +++ b/srcpkgs/qt/files/designer.desktop @@ -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 diff --git a/srcpkgs/qt/files/gstreamer-logo.png b/srcpkgs/qt/files/gstreamer-logo.png new file mode 100644 index 00000000000..0994c819fa2 Binary files /dev/null and b/srcpkgs/qt/files/gstreamer-logo.png differ diff --git a/srcpkgs/qt/files/linguist.desktop b/srcpkgs/qt/files/linguist.desktop new file mode 100644 index 00000000000..94e92c1b084 --- /dev/null +++ b/srcpkgs/qt/files/linguist.desktop @@ -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 diff --git a/srcpkgs/qt/files/qtconfig.desktop b/srcpkgs/qt/files/qtconfig.desktop new file mode 100644 index 00000000000..7c221e5f889 --- /dev/null +++ b/srcpkgs/qt/files/qtconfig.desktop @@ -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; diff --git a/srcpkgs/qt/qt-demos.template b/srcpkgs/qt/qt-demos.template new file mode 100644 index 00000000000..f5b9fdbf003 --- /dev/null +++ b/srcpkgs/qt/qt-demos.template @@ -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 + +} diff --git a/srcpkgs/qt/qt-designer.template b/srcpkgs/qt/qt-designer.template new file mode 100644 index 00000000000..63001c6f3f5 --- /dev/null +++ b/srcpkgs/qt/qt-designer.template @@ -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 +} diff --git a/srcpkgs/qt/qt-devel-tools.template b/srcpkgs/qt/qt-devel-tools.template new file mode 100644 index 00000000000..d9dfca5ad65 --- /dev/null +++ b/srcpkgs/qt/qt-devel-tools.template @@ -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 +} diff --git a/srcpkgs/qt/qt-devel.template b/srcpkgs/qt/qt-devel.template new file mode 100644 index 00000000000..db86aadc48e --- /dev/null +++ b/srcpkgs/qt/qt-devel.template @@ -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 +} diff --git a/srcpkgs/qt/qt-docs.template b/srcpkgs/qt/qt-docs.template new file mode 100644 index 00000000000..0ce47de2a4d --- /dev/null +++ b/srcpkgs/qt/qt-docs.template @@ -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 +} diff --git a/srcpkgs/qt/qt-plugin-gstreamer.template b/srcpkgs/qt/qt-plugin-gstreamer.template new file mode 100644 index 00000000000..60d85428b92 --- /dev/null +++ b/srcpkgs/qt/qt-plugin-gstreamer.template @@ -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 + +} diff --git a/srcpkgs/qt/qt-qmake.template b/srcpkgs/qt/qt-qmake.template new file mode 100644 index 00000000000..cb007a076d8 --- /dev/null +++ b/srcpkgs/qt/qt-qmake.template @@ -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 +} diff --git a/srcpkgs/qt/qt-qtconfig.template b/srcpkgs/qt/qt-qtconfig.template new file mode 100644 index 00000000000..a4f0bb7e8ae --- /dev/null +++ b/srcpkgs/qt/qt-qtconfig.template @@ -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 +} diff --git a/srcpkgs/qt/template b/srcpkgs/qt/template new file mode 100644 index 00000000000..f4046a2b622 --- /dev/null +++ b/srcpkgs/qt/template @@ -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 " +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 +}