From da1be5a21ba06235b67a999f696ec66e35dc17a1 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 9 Jan 2015 00:06:49 +0100 Subject: Prepare for new KDE 5: Frameworks 5.6.0, Plasma 5.1.2, Applications 14.12.0. KDE 5_1501 ========== This is going to be KDE 5 for Slackware-current, composed of Frameworks 5.6.0, Plasma 5.1.2 and Applications 14.12.0. Note that there is still a lot of KDE 4 stuff in here, which is necessary to support all the Applications that have not yet been ported to KDE Frameworks 5. The Applications 15.04 (march 2015) release should offer a lot more KF5 ports. Preliminary build procedure (not verified 100% yet): ---------------------------------------------------- - (crude) get rid of Slackware's KDE: removepkg /var/log/packages/*-4.10.5-* - build all the deps using "updates.SlackBuild" script in the "deps/" directory - note that extra-cmake-modules is required here as well as when building the frameworks, so I just copied it from frameworks to deps. - logoff/login to activate Qt5 profile script. - removepkg akonadi-qt5 or else kdepimlibs-4.14.3 picks up Qt5 dependencies and its compilation will fail as a result - build all the KDE 4 stuff in the "kde/" directory, using "./KDE.SlackBuild kde libs kdebase:nepomuk-core kdepimlibs kdebase kdebindings kdebase:kde-workspace k depim extragear" - installpkg akonadi-qt5 - build the remaining KDE 5 stuff in the "kde/" directory, using "./KDE.SlackBui ld frameworks plasma plasma-extra polkit-kde applications" - build kdei ============================================================================== Eric Hameleers / alien at slackware dot com / 09-jan-2015 --- deps/LibRaw/LibRaw.SlackBuild | 121 ++++++++++ deps/LibRaw/slack-desc | 19 ++ deps/OpenAL/OpenAL.SlackBuild | 12 +- .../akonadi-qt5-coinstallable-libs.patch | 113 +++++++++ .../akonadi-qt5-coinstallable-libs.patch.gz | Bin 1469 -> 0 bytes deps/akonadi-qt5/akonadi-qt5.SlackBuild | 8 +- deps/akonadi/akonadi.SlackBuild | 116 +++++++++ deps/akonadi/doinst.sh.gz | Bin 0 -> 110 bytes deps/akonadi/slack-desc | 19 ++ deps/alldeps.SlackBuild | 19 +- deps/attica/attica.SlackBuild | 107 +++++++++ deps/attica/slack-desc | 19 ++ deps/cmake/cmake.SlackBuild | 4 +- deps/eigen3/eigen3.SlackBuild | 100 ++++++++ deps/eigen3/slack-desc | 19 ++ .../extra-cmake-modules.SlackBuild | 115 +++++++++ deps/extra-cmake-modules/slack-desc | 19 ++ .../gst1-plugins-base/gst1-plugins-base.SlackBuild | 136 +++++++++++ deps/gst1-plugins-base/slack-desc | 19 ++ .../gst1-plugins-good/gst1-plugins-good.SlackBuild | 136 +++++++++++ deps/gst1-plugins-good/slack-desc | 19 ++ deps/gstreamer1/gstreamer1.SlackBuild | 125 ++++++++++ deps/gstreamer1/slack-desc | 19 ++ deps/harfbuzz/harfbuzz.SlackBuild | 6 +- deps/harfbuzz/harfbuzz_unbreak_abi.patch | 81 +++++++ deps/harfbuzz/harfbuzz_unbreak_abi.patch.gz | Bin 607 -> 0 bytes deps/libdbusmenu-qt5/libdbusmenu-qt5.SlackBuild | 4 +- deps/libfakekey/libfakekey.SlackBuild | 114 +++++++++ deps/libfakekey/slack-desc | 19 ++ deps/libssh/libssh.SlackBuild | 115 +++++++++ deps/libssh/libssh.no.example.build.diff | 11 + deps/libssh/slack-desc | 19 ++ deps/orc/orc.SlackBuild | 138 +++++++++++ deps/orc/slack-desc | 19 ++ deps/phonon-gstreamer/phonon-gstreamer.SlackBuild | 41 ++-- deps/phonon-vlc/phonon-vlc.SlackBuild | 142 +++++++++++ deps/phonon-vlc/slack-desc | 19 ++ deps/phonon/phonon.SlackBuild | 54 +++-- deps/polkit-qt5-1/polkit-qt5-1.SlackBuild | 17 +- deps/poppler/poppler.SlackBuild | 4 +- deps/poppler/poppler.mocversiongrep.patch | 28 +++ deps/poppler/poppler.mocversiongrep.patch.gz | Bin 532 -> 0 bytes deps/qca-qt5/qca-qt5.SlackBuild | 102 ++++++++ deps/qca-qt5/slack-desc | 19 ++ deps/qt-gstreamer/doinst.sh.gz | Bin 0 -> 110 bytes deps/qt-gstreamer/qt-gstreamer.SlackBuild | 125 ++++++++++ deps/qt-gstreamer/slack-desc | 19 ++ deps/qt-gstreamer1/doinst.sh.gz | Bin 0 -> 110 bytes deps/qt-gstreamer1/qt-gstreamer1.SlackBuild | 126 ++++++++++ deps/qt-gstreamer1/slack-desc | 19 ++ deps/qt5-gstreamer/doinst.sh.gz | Bin 110 -> 0 bytes deps/qt5-gstreamer/qt5-gstreamer.SlackBuild | 127 ---------- deps/qt5-gstreamer/slack-desc | 19 -- deps/qt5/archive/qt5.SlackBuild1 | 265 --------------------- deps/qt5/archive/qt5.SlackBuild2 | 236 ------------------ .../patches/platformplugin-install-path-fix.patch | 15 ++ .../platformplugin-install-path-fix.patch.gz | Bin 360 -> 0 bytes deps/qt5/patches/qt5.mysql.h.diff | 12 + deps/qt5/patches/qt5.mysql.h.diff.gz | Bin 290 -> 0 bytes deps/qt5/patches/qt5.pulseaudio.diff | 12 + deps/qt5/qt5.SlackBuild | 44 ++-- .../shared-desktop-ontologies.SlackBuild | 115 +++++++++ deps/shared-desktop-ontologies/slack-desc | 19 ++ deps/soprano/slack-desc | 19 ++ deps/soprano/soprano.SlackBuild | 110 +++++++++ deps/soprano/soprano_tcpclient_stub.diff | 196 +++++++++++++++ deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff | 16 ++ deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff.gz | Bin 325 -> 0 bytes deps/strigi/strigi-fix-jpeg-isospeedratings.diff | 18 ++ .../strigi/strigi-fix-jpeg-isospeedratings.diff.gz | Bin 464 -> 0 bytes deps/strigi/strigi-fix-missing-lucene-lib.diff | 7 + deps/strigi/strigi-fix-missing-lucene-lib.diff.gz | Bin 294 -> 0 bytes deps/strigi/strigi.SlackBuild | 21 +- deps/updates.SlackBuild | 25 +- deps/xapian-core/slack-desc | 19 ++ deps/xapian-core/xapian-core.SlackBuild | 111 +++++++++ 76 files changed, 3149 insertions(+), 762 deletions(-) create mode 100755 deps/LibRaw/LibRaw.SlackBuild create mode 100644 deps/LibRaw/slack-desc create mode 100644 deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch delete mode 100644 deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch.gz create mode 100755 deps/akonadi/akonadi.SlackBuild create mode 100644 deps/akonadi/doinst.sh.gz create mode 100644 deps/akonadi/slack-desc create mode 100755 deps/attica/attica.SlackBuild create mode 100644 deps/attica/slack-desc create mode 100755 deps/eigen3/eigen3.SlackBuild create mode 100644 deps/eigen3/slack-desc create mode 100755 deps/extra-cmake-modules/extra-cmake-modules.SlackBuild create mode 100644 deps/extra-cmake-modules/slack-desc create mode 100755 deps/gst1-plugins-base/gst1-plugins-base.SlackBuild create mode 100644 deps/gst1-plugins-base/slack-desc create mode 100755 deps/gst1-plugins-good/gst1-plugins-good.SlackBuild create mode 100644 deps/gst1-plugins-good/slack-desc create mode 100755 deps/gstreamer1/gstreamer1.SlackBuild create mode 100644 deps/gstreamer1/slack-desc create mode 100644 deps/harfbuzz/harfbuzz_unbreak_abi.patch delete mode 100644 deps/harfbuzz/harfbuzz_unbreak_abi.patch.gz create mode 100755 deps/libfakekey/libfakekey.SlackBuild create mode 100644 deps/libfakekey/slack-desc create mode 100755 deps/libssh/libssh.SlackBuild create mode 100644 deps/libssh/libssh.no.example.build.diff create mode 100644 deps/libssh/slack-desc create mode 100755 deps/orc/orc.SlackBuild create mode 100644 deps/orc/slack-desc create mode 100755 deps/phonon-vlc/phonon-vlc.SlackBuild create mode 100644 deps/phonon-vlc/slack-desc create mode 100644 deps/poppler/poppler.mocversiongrep.patch delete mode 100644 deps/poppler/poppler.mocversiongrep.patch.gz create mode 100755 deps/qca-qt5/qca-qt5.SlackBuild create mode 100644 deps/qca-qt5/slack-desc create mode 100644 deps/qt-gstreamer/doinst.sh.gz create mode 100755 deps/qt-gstreamer/qt-gstreamer.SlackBuild create mode 100644 deps/qt-gstreamer/slack-desc create mode 100644 deps/qt-gstreamer1/doinst.sh.gz create mode 100755 deps/qt-gstreamer1/qt-gstreamer1.SlackBuild create mode 100644 deps/qt-gstreamer1/slack-desc delete mode 100644 deps/qt5-gstreamer/doinst.sh.gz delete mode 100755 deps/qt5-gstreamer/qt5-gstreamer.SlackBuild delete mode 100644 deps/qt5-gstreamer/slack-desc delete mode 100644 deps/qt5/archive/qt5.SlackBuild1 delete mode 100644 deps/qt5/archive/qt5.SlackBuild2 create mode 100644 deps/qt5/patches/platformplugin-install-path-fix.patch delete mode 100644 deps/qt5/patches/platformplugin-install-path-fix.patch.gz create mode 100644 deps/qt5/patches/qt5.mysql.h.diff delete mode 100644 deps/qt5/patches/qt5.mysql.h.diff.gz create mode 100644 deps/qt5/patches/qt5.pulseaudio.diff create mode 100755 deps/shared-desktop-ontologies/shared-desktop-ontologies.SlackBuild create mode 100644 deps/shared-desktop-ontologies/slack-desc create mode 100644 deps/soprano/slack-desc create mode 100755 deps/soprano/soprano.SlackBuild create mode 100644 deps/soprano/soprano_tcpclient_stub.diff create mode 100644 deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff delete mode 100644 deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff.gz create mode 100644 deps/strigi/strigi-fix-jpeg-isospeedratings.diff delete mode 100644 deps/strigi/strigi-fix-jpeg-isospeedratings.diff.gz create mode 100644 deps/strigi/strigi-fix-missing-lucene-lib.diff delete mode 100644 deps/strigi/strigi-fix-missing-lucene-lib.diff.gz create mode 100644 deps/xapian-core/slack-desc create mode 100755 deps/xapian-core/xapian-core.SlackBuild (limited to 'deps') diff --git a/deps/LibRaw/LibRaw.SlackBuild b/deps/LibRaw/LibRaw.SlackBuild new file mode 100755 index 0000000..77e4607 --- /dev/null +++ b/deps/LibRaw/LibRaw.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/sh + +# Copyright 2013 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2013, 2014, 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=LibRaw +VERSION=${VERSION:-0.16.0} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION-build +mkdir $PKGNAM-$VERSION-build +cd $PKGNAM-$VERSION-build +tar xvf $CWD/$PKGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PKGNAM-demosaic-pack-GPL2-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PKGNAM-demosaic-pack-GPL3-$VERSION.tar.gz || exit 1 +cd $PKGNAM-$VERSION || exit 1 + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --disable-static \ + --enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-$VERSION \ + --enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-$VERSION \ + --enable-jasper \ + --enable-lcms \ + --disable-examples \ + --build=$TARGET \ + || exit 1 + +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + COPYRIGHT Changelog.txt LICENSE.* README* doc \ + $PKG/usr/doc/$PKGNAM-$VERSION + mv $PKG/usr/doc/$PKGNAM-$VERSION/doc $PKG/usr/doc/$PKGNAM-$VERSION/html + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/LibRaw/slack-desc b/deps/LibRaw/slack-desc new file mode 100644 index 0000000..b5c3b7b --- /dev/null +++ b/deps/LibRaw/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +LibRaw: LibRaw (library for decoding raw digital photos) +LibRaw: +LibRaw: LibRaw is a library for reading RAW files obtained from digital +LibRaw: cameras (CRW/CR2, NEF, RAF, DNG, and others). It is based on the +LibRaw: source code of the dcraw utility. +LibRaw: +LibRaw: +LibRaw: +LibRaw: +LibRaw: Homepage: http://www.libraw.org/ +LibRaw: diff --git a/deps/OpenAL/OpenAL.SlackBuild b/deps/OpenAL/OpenAL.SlackBuild index 138dc73..28c42f6 100755 --- a/deps/OpenAL/OpenAL.SlackBuild +++ b/deps/OpenAL/OpenAL.SlackBuild @@ -1,5 +1,6 @@ #!/bin/sh -# Copyright 2012, 2013, 2014 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -24,7 +25,7 @@ PKGNAM=OpenAL SRCNAM=openal-soft -VERSION=${VERSION:-1.15.1} +VERSION=${VERSION:-1.16.0} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} @@ -89,8 +90,8 @@ cd build -DSYSCONF_INSTALL_DIR=/etc \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ .. - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG || exit 1 + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 cd - # Add an example configuration file: @@ -99,7 +100,7 @@ install -m0644 alsoftrc.sample $PKG/etc/openal/alsoft.conf.sample # Add documentation: mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PKGNAM-$VERSION || true +cp -a COPYING README env-vars.txt hrtf.txt $PKG/usr/doc/$PKGNAM-$VERSION || true chown -R root:root $PKG/usr/doc/$PKGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \; @@ -115,4 +116,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg --linkadd y --chown n $TMP/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}.txz - diff --git a/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch b/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch new file mode 100644 index 0000000..3f6ddea --- /dev/null +++ b/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch @@ -0,0 +1,113 @@ +diff -uar akonadi-1.12.91.orig/AkonadiConfig.cmake.in akonadi-1.12.91/AkonadiConfig.cmake.in +--- akonadi-1.12.91.orig/AkonadiConfig.cmake.in 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/AkonadiConfig.cmake.in 2014-07-29 09:18:23.555430363 +0200 +@@ -32,7 +32,7 @@ + set(AKONADI_TARGET_PREFIX @AKONADI_TARGET_PREFIX@) + + # Load the exported targets. +-if(NOT TARGET Akonadi__akonadiprotocolinternals) ++if(NOT TARGET Akonadi__akonadiprotocolinternalsqt5) + get_filename_component(_currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH) + include("${_currentDir}/AkonadiTargetsWithPrefix.cmake") + endif() +@@ -41,4 +41,4 @@ + set(AKONADI_${_prefix}_LIBRARIES ${AKONADI_TARGET_PREFIX}${_lib}) + endmacro() + +-_akonadi_set_lib_vars(COMMON akonadiprotocolinternals) ++_akonadi_set_lib_vars(COMMON akonadiprotocolinternalsqt5) +diff -uar akonadi-1.12.91.orig/CMakeLists.txt akonadi-1.12.91/CMakeLists.txt +--- akonadi-1.12.91.orig/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/CMakeLists.txt 2014-07-29 09:18:23.588430155 +0200 +@@ -332,7 +332,7 @@ + + add_subdirectory(interfaces) + add_subdirectory(libs) +-set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternals) ++set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternalsqt5) + + add_subdirectory(shared) + add_subdirectory(agentserver) +Only in akonadi-1.12.91: CMakeLists.txt.orig +diff -uar akonadi-1.12.91.orig/akonadi.pc.cmake akonadi-1.12.91/akonadi.pc.cmake +--- akonadi-1.12.91.orig/akonadi.pc.cmake 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/akonadi.pc.cmake 2014-07-29 09:18:23.645430154 +0200 +@@ -7,5 +7,5 @@ + Description: Akonadi server and infrastructure needed to build client libraries and applications + Version: @AKONADI_VERSION@ + Requires: QtCore QtSql QtDBus +-Libs: -L${libdir} -lakonadiprotocolinternals ++Libs: -L${libdir} -lakonadiprotocolinternalsqt5 + Cflags: -I${includedir} +diff -uar akonadi-1.12.91.orig/asapcat/CMakeLists.txt akonadi-1.12.91/asapcat/CMakeLists.txt +--- akonadi-1.12.91.orig/asapcat/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/asapcat/CMakeLists.txt 2014-07-29 09:18:23.672430153 +0200 +@@ -1,7 +1,7 @@ + project(asapcat) + + #set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_ENABLE_EXCEPTIONS}" ) +-set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternals) ++set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternalsqt5) + + set(asapcat_srcs + main.cpp +diff -uar akonadi-1.12.91.orig/libs/CMakeLists.txt akonadi-1.12.91/libs/CMakeLists.txt +--- akonadi-1.12.91.orig/libs/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/libs/CMakeLists.txt 2014-07-29 09:20:29.132426304 +0200 +@@ -12,16 +12,16 @@ + xdgbasedirs.cpp + ) + +-add_library(akonadiprotocolinternals ${LIBRARY_TYPE} ${akonadiprotocolinternals_srcs}) ++add_library(akonadiprotocolinternalsqt5 ${LIBRARY_TYPE} ${akonadiprotocolinternals_srcs}) + +-target_link_libraries(akonadiprotocolinternals ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY}) +-set_target_properties(akonadiprotocolinternals PROPERTIES ++target_link_libraries(akonadiprotocolinternalsqt5 ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY}) ++set_target_properties(akonadiprotocolinternalsqt5 PROPERTIES + VERSION ${AKONADI_VERSION} + SOVERSION ${AKONADI_SOVERSION} + DEFINE_SYMBOL MAKE_AKONADIPROTOCOLINTERNALS_LIB + ) + +-install(TARGETS akonadiprotocolinternals EXPORT akonadiLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ++install(TARGETS akonadiprotocolinternalsqt5 EXPORT akonadiLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) + + install(FILES + ${Akonadi_BINARY_DIR}/akonadiprotocolinternals_export.h +diff -uar akonadi-1.12.91.orig/libs/tests/CMakeLists.txt akonadi-1.12.91/libs/tests/CMakeLists.txt +--- akonadi-1.12.91.orig/libs/tests/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/libs/tests/CMakeLists.txt 2014-07-29 09:18:23.729430152 +0200 +@@ -6,7 +6,7 @@ + get_filename_component(_name ${_source} NAME_WE) + add_executable(${_name} ${_source}) + add_test(akonadi-${_name} ${_name}) +- target_link_libraries(${_name} akonadiprotocolinternals ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARIES}) ++ target_link_libraries(${_name} akonadiprotocolinternalsqt5 ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARIES}) + endmacro() + + add_unit_test(notificationmessagetest.cpp) +diff -uar akonadi-1.12.91.orig/rds/CMakeLists.txt akonadi-1.12.91/rds/CMakeLists.txt +--- akonadi-1.12.91.orig/rds/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/rds/CMakeLists.txt 2014-07-29 09:18:23.758430151 +0200 +@@ -1,7 +1,7 @@ + project(akonadi_rds) + + #set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_ENABLE_EXCEPTIONS}" ) +-set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternals) ++set(AKONADI_PROTOCOLINTERNALS_LIBS ${akonadiprotocolinternals_LIB_DEPENDS} akonadiprotocolinternalsqt5) + + ########### next target ############### + +diff -uar akonadi-1.12.91.orig/server/akonadictl/CMakeLists.txt akonadi-1.12.91/server/akonadictl/CMakeLists.txt +--- akonadi-1.12.91.orig/server/akonadictl/CMakeLists.txt 2014-07-09 22:14:29.000000000 +0200 ++++ akonadi-1.12.91/server/akonadictl/CMakeLists.txt 2014-07-29 09:18:23.788430150 +0200 +@@ -16,7 +16,7 @@ + set_target_properties(akonadictl PROPERTIES OUTPUT_NAME akonadictl) + target_link_libraries(akonadictl + akonadi_shared +- akonadiprotocolinternals ++ akonadiprotocolinternalsqt5 + ${QT_QTCORE_LIBRARY} + ${QT_QTDBUS_LIBRARY} + ${AKONADI_PROTOCOLINTERNALS_LIBS} diff --git a/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch.gz b/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch.gz deleted file mode 100644 index 3fe4565..0000000 Binary files a/deps/akonadi-qt5/akonadi-qt5-coinstallable-libs.patch.gz and /dev/null differ diff --git a/deps/akonadi-qt5/akonadi-qt5.SlackBuild b/deps/akonadi-qt5/akonadi-qt5.SlackBuild index d3233ba..0d6852a 100755 --- a/deps/akonadi-qt5/akonadi-qt5.SlackBuild +++ b/deps/akonadi-qt5/akonadi-qt5.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for akonadi # Copyright 2008 Robby Workman, Northport, Alabama, USA -# Copyright 2008, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2011, 2014, 2015 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +26,8 @@ PKGNAM=akonadi-qt5 SRCNAM=akonadi -VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.13.0} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:--j7} @@ -72,7 +72,7 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* || exit 1 cd $SRCNAM-$VERSION || exit 1 # Allow akonadi-qt5 libraries to co-exist with akonadi: -zcat $CWD/akonadi-qt5-coinstallable-libs.patch.gz | patch -p1 --verbose || exit 1 +cat $CWD/akonadi-qt5-coinstallable-libs.patch | patch -p1 --verbose || exit 1 chown -R root:root . find . \ diff --git a/deps/akonadi/akonadi.SlackBuild b/deps/akonadi/akonadi.SlackBuild new file mode 100755 index 0000000..fdeb2af --- /dev/null +++ b/deps/akonadi/akonadi.SlackBuild @@ -0,0 +1,116 @@ +#!/bin/sh + +# Slackware build script for akonadi + +# Copyright 2008 Robby Workman, Northport, Alabama, USA +# Copyright 2008, 2009, 2010, 2011, 2014, 2015 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=akonadi +VERSION=${VERSION:-1.13.0} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# If we do not specify the correct QT_PLUGINS_DIR, then the application +# decides on using $QT4DIR/qt4/plugins instead. +mkdir -p build +cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DMAN_INSTALL_DIR=/usr/man \ + -DINSTALL_QSQLITE_IN_QT_PREFIX:BOOL=ON \ + -DQT_PLUGINS_DIR=/usr/lib$LIBDIRSUFFIX/qt/plugins \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +if [ -d $PKG/usr/man ]; then + gzip -9 $PKG/usr/man/man?/* +fi + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS INSTALL README lgpl-license \ + $PKG/usr/doc/$PKGNAM-$VERSION + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/akonadi/doinst.sh.gz b/deps/akonadi/doinst.sh.gz new file mode 100644 index 0000000..bedb7a0 Binary files /dev/null and b/deps/akonadi/doinst.sh.gz differ diff --git a/deps/akonadi/slack-desc b/deps/akonadi/slack-desc new file mode 100644 index 0000000..d0c26bb --- /dev/null +++ b/deps/akonadi/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +akonadi: akonadi (PIM storage service) +akonadi: +akonadi: akonadi is an extensible cross-desktop storage service for PIM data +akonadi: and meta data providing concurrent read, write, and query access. +akonadi: It will provide a unique desktop wide object identification and +akonadi: retrieval. +akonadi: +akonadi: Homepage: http://www.kdepim.org/akonadi/ +akonadi: +akonadi: +akonadi: diff --git a/deps/alldeps.SlackBuild b/deps/alldeps.SlackBuild index 8663d9f..86bce1e 100755 --- a/deps/alldeps.SlackBuild +++ b/deps/alldeps.SlackBuild @@ -14,22 +14,37 @@ TMP=${TMP:-/tmp} QTDIR=/usr/lib${LIBDIRSUFFIX}/qt ; export QTDIR ALLDEPS=" \ + cmake \ + extra-cmake-modules \ + harfbuzz \ + qt \ + qt5 \ soprano \ akonadi \ + attica \ shared-desktop-ontologies \ LibRaw \ eigen3 \ + orc \ xapian-core \ + libfakekey \ OpenAL \ - harfbuzz \ - qt5 \ + gstreamer1 \ + gst1-plugins-base \ + gst1-plugins-good \ + qt-gstreamer1 \ + qjson \ + sip \ + PyQt \ phonon \ phonon-gstreamer \ qt-gstreamer \ strigi \ libssh \ + qca-qt5 \ akonadi-qt5 \ libdbusmenu-qt5 \ + polkit-qt-1 \ polkit-qt5-1 \ poppler \ " diff --git a/deps/attica/attica.SlackBuild b/deps/attica/attica.SlackBuild new file mode 100755 index 0000000..6180422 --- /dev/null +++ b/deps/attica/attica.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/sh + +# Copyright 2009, 2010, 2011, 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=attica +VERSION=${VERSION:-0.4.2} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + QTDIR=/usr/lib${LIBDIRSUFFIX}/qt \ + PATH=$QTDIR/bin:$PATH \ + cmake \ + $KDE_OPT_ARGS \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT4_BUILD=ON \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a AUTHORS* COPYING* README* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/attica/slack-desc b/deps/attica/slack-desc new file mode 100644 index 0000000..18aedb8 --- /dev/null +++ b/deps/attica/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-------------------------------------------------------| +attica: attica (Qt Collaboration library) +attica: +attica: Attica is a Qt library that implements the freedesktop.org +attica: specification for the Open Collaboration Services API version 1.4. +attica: It grants easy access to the services such as querying information +attica: about persons and contents. +attica: +attica: Homepage: http://www.kde.org +attica: +attica: +attica: diff --git a/deps/cmake/cmake.SlackBuild b/deps/cmake/cmake.SlackBuild index 6150598..e6cf56b 100755 --- a/deps/cmake/cmake.SlackBuild +++ b/deps/cmake/cmake.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2011, 2013, 2014, 2015 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PKGNAM=cmake -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-3.1.0} BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: diff --git a/deps/eigen3/eigen3.SlackBuild b/deps/eigen3/eigen3.SlackBuild new file mode 100755 index 0000000..49992ca --- /dev/null +++ b/deps/eigen3/eigen3.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=eigen3 +VERSION=3.1.2 +SRCVER="eigen-5097c01bcdc4" +BUILD=${BUILD:-2} + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $PKG $TMP +cd $TMP +rm -rf eigen-$SRCVER +tar xvf $CWD/eigen-$VERSION.tar.bz2 +cd eigen-$SRCVER +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + QTDIR=/usr/lib${LIBDIRSUFFIX}/qt \ + PATH=$QTDIR/bin:$PATH \ + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make + make install DESTDIR=$PKG +cd .. + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a COPYING* $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/eigen3/slack-desc b/deps/eigen3/slack-desc new file mode 100644 index 0000000..8670031 --- /dev/null +++ b/deps/eigen3/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +eigen3: Eigen3 (c++ math library) +eigen3: +eigen3: Eigen is a C++ template library for linear algebra: matrices, vectors, +eigen3: numerical solvers, and related algorithms. +eigen3: +eigen3: +eigen3: +eigen3: +eigen3: +eigen3: Homepage: http://eigen.tuxfamily.org +eigen3: diff --git a/deps/extra-cmake-modules/extra-cmake-modules.SlackBuild b/deps/extra-cmake-modules/extra-cmake-modules.SlackBuild new file mode 100755 index 0000000..8edfc93 --- /dev/null +++ b/deps/extra-cmake-modules/extra-cmake-modules.SlackBuild @@ -0,0 +1,115 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=extra-cmake-modules +VERSION=${VERSION:-1.6.0} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j7 "} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -m32 -march=i486 -mtune=i686" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG + +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ../ChangeLog.txt ]; then + DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) + cat ../ChangeLog.txt | head -n 1000 > $DOCSDIR/ChangeLog.txt + touch -r ../ChangeLog.txt $DOCSDIR/ChangeLog.txt +fi + +# Compress and link manpages, if any: +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + for manpagedir in $(find . -type d -name "man*") ; do + ( cd $manpagedir + for eachpage in $( find . -type l -maxdepth 1) ; do + ln -s $( readlink $eachpage ).gz $eachpage.gz + rm $eachpage + done + gzip -9 *.? + ) + done + ) +fi + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$(echo $VERSION |tr - _)-$ARCH-$BUILD.txz + diff --git a/deps/extra-cmake-modules/slack-desc b/deps/extra-cmake-modules/slack-desc new file mode 100644 index 0000000..6fdc90c --- /dev/null +++ b/deps/extra-cmake-modules/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +extra-cmake-modules: CMake extra modules (extra cmake modules for compiling KDE Frameworks +extra-cmake-modules: +extra-cmake-modules: This package contains additional cmake modules required for +extra-cmake-modules: compiling KDE Frameworks 5. +extra-cmake-modules: +extra-cmake-modules: +extra-cmake-modules: +extra-cmake-modules: +extra-cmake-modules: +extra-cmake-modules: +extra-cmake-modules: diff --git a/deps/gst1-plugins-base/gst1-plugins-base.SlackBuild b/deps/gst1-plugins-base/gst1-plugins-base.SlackBuild new file mode 100755 index 0000000..98ac9f5 --- /dev/null +++ b/deps/gst1-plugins-base/gst1-plugins-base.SlackBuild @@ -0,0 +1,136 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=gst1-plugins-base +SRCNAM=gst-plugins-base +VERSION=${VERSION:-1.4.4} +BUILD=${BUILD:-2} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG + +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.xz || exit 1 +cd $SRCNAM-$VERSION || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure: +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="$SLKLDFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --build=$TARGET + +# Build and install: +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Strip binaries: +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Compress and link manpages, if any: +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + for manpagedir in $(find . -type d -name "man*") ; do + ( cd $manpagedir + for eachpage in $( find . -type l -maxdepth 1) ; do + ln -s $( readlink $eachpage ).gz $eachpage.gz + rm $eachpage + done + gzip -9 *.? + ) + done + ) +fi + +# Add documentation: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING* ChangeLog INSTALL NEWS RE* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# Add a description: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Create the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/gst1-plugins-base/slack-desc b/deps/gst1-plugins-base/slack-desc new file mode 100644 index 0000000..94a1382 --- /dev/null +++ b/deps/gst1-plugins-base/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gst1-plugins-base: gst1-plugins-base (base set of GStreamer1 plugins) +gst1-plugins-base: +gst1-plugins-base: GStreamer Base Plug-ins is a well-groomed and well-maintained +gst1-plugins-base: collection of GStreamer plug-ins and elements, spanning the +gst1-plugins-base: range of possible types of elements one would want to write +gst1-plugins-base: for GStreamer. It also contains helper libraries and base +gst1-plugins-base: classes useful for writing elements. A wide range of video +gst1-plugins-base: and audio decoders, encoders, and filters are included. +gst1-plugins-base: +gst1-plugins-base: Homepage: http://gstreamer.freedesktop.org/ +gst1-plugins-base: diff --git a/deps/gst1-plugins-good/gst1-plugins-good.SlackBuild b/deps/gst1-plugins-good/gst1-plugins-good.SlackBuild new file mode 100755 index 0000000..63798fe --- /dev/null +++ b/deps/gst1-plugins-good/gst1-plugins-good.SlackBuild @@ -0,0 +1,136 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=gst1-plugins-good +SRCNAM=gst-plugins-good +VERSION=${VERSION:-1.4.4} +BUILD=${BUILD:-2} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG + +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.xz || exit 1 +cd $SRCNAM-$VERSION || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure: +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="$SLKLDFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --build=$TARGET + +# Build and install: +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Strip binaries: +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Compress and link manpages, if any: +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + for manpagedir in $(find . -type d -name "man*") ; do + ( cd $manpagedir + for eachpage in $( find . -type l -maxdepth 1) ; do + ln -s $( readlink $eachpage ).gz $eachpage.gz + rm $eachpage + done + gzip -9 *.? + ) + done + ) +fi + +# Add documentation: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING* ChangeLog INSTALL NEWS RE* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# Add a description: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Create the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/gst1-plugins-good/slack-desc b/deps/gst1-plugins-good/slack-desc new file mode 100644 index 0000000..a4d55f0 --- /dev/null +++ b/deps/gst1-plugins-good/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gst1-plugins-good: gst1-plugins-good (good set of GStreamer 1.x plugins) +gst1-plugins-good: +gst1-plugins-good: GStreamer Good Plug-ins is a set of plug-ins that have good +gst1-plugins-good: quality code, correct functionality, and a good license +gst1-plugins-good: (LGPL for the plug-in code, LGPL or LGPL-compatible for the +gst1-plugins-good: supporting library). +gst1-plugins-good: +gst1-plugins-good: +gst1-plugins-good: +gst1-plugins-good: Homepage: http://gstreamer.freedesktop.org/ +gst1-plugins-good: diff --git a/deps/gstreamer1/gstreamer1.SlackBuild b/deps/gstreamer1/gstreamer1.SlackBuild new file mode 100755 index 0000000..7fe578c --- /dev/null +++ b/deps/gstreamer1/gstreamer1.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# ----------------------------------------------------------------------------- + +PKGNAM=gstreamer1 +VERSION=${VERSION:-1.4.4} +BUILD=${BUILD:-2} +SRCNAM=gstreamer + +# Automatically determine the architecture we're building on: +MARCH=$( uname -m ) +if [ -z "$ARCH" ]; then + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$MARCH ;; + esac +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.xz || exit 1 +cd $SRCNAM-$VERSION || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure: +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="$SLKLDFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --build=$TARGET + +# Build and install: +make || exit 1 +make install DESTDIR=$PKG + +# Strip binaries: +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Compress and link manpages, if any: +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +# Add a documentation directory: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a AUTHORS COPYING INSTALL MAINTAINERS NEWS README RELEASE TODO \ + $PKG/usr/doc/$PKGNAM-$VERSION +cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild + +# Add a package description and the post-install script if it exists: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Build package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/gstreamer1/slack-desc b/deps/gstreamer1/slack-desc new file mode 100644 index 0000000..443efb9 --- /dev/null +++ b/deps/gstreamer1/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gstreamer1: GStreamer v1.x (streaming multimedia framework) +gstreamer1: +gstreamer1: GStreamer is a LGPL library that allows the construction of graphs +gstreamer1: of media-handling components. +gstreamer1: Applications can take advantage of advances in codec and filter +gstreamer1: technology transparently. +gstreamer1: +gstreamer1: +gstreamer1: +gstreamer1: Homepage: http://gstreamer.freedesktop.org/ +gstreamer1: diff --git a/deps/harfbuzz/harfbuzz.SlackBuild b/deps/harfbuzz/harfbuzz.SlackBuild index d6bcc22..0564d22 100755 --- a/deps/harfbuzz/harfbuzz.SlackBuild +++ b/deps/harfbuzz/harfbuzz.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2013, 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2013, 2014, 2015 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PKGNAM=harfbuzz -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-0.9.37} BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: @@ -69,7 +69,7 @@ cd $PKGNAM-$VERSION || exit 1 # Apply a patch (borrowed from debian) which 'unbreaks' the ABI breakage # caused by moving the ICU functionality into a separate backend library. -zcat $CWD/harfbuzz_unbreak_abi.patch.gz | patch -p1 --verbose || exit 1 +cat $CWD/harfbuzz_unbreak_abi.patch | patch -p1 --verbose || exit 1 chown -R root:root . find . \ diff --git a/deps/harfbuzz/harfbuzz_unbreak_abi.patch b/deps/harfbuzz/harfbuzz_unbreak_abi.patch new file mode 100644 index 0000000..05497f3 --- /dev/null +++ b/deps/harfbuzz/harfbuzz_unbreak_abi.patch @@ -0,0 +1,81 @@ +Description: Re-add hb_version_check to unbreak API/ABI + This patch should be removed on the next API/ABI break by upstream. +Author: ???? ???????? (Ahmed El-Mahmoudy) +Bug-Debian: http://bugs.debian.org/755094 +Forwarded: not-needed + +--- a/src/hb-common.cc ++++ b/src/hb-common.cc +@@ -587,3 +587,23 @@ + { + return HB_VERSION_ATLEAST (major, minor, micro); + } ++ ++/** ++ * hb_version_check: ++ * @major: ++ * @minor: ++ * @micro: ++ * ++ * ++ * ++ * Return value: ++ * ++ * Since: 1.0 ++ **/ ++hb_bool_t ++hb_version_check (unsigned int major, ++ unsigned int minor, ++ unsigned int micro) ++{ ++ return HB_VERSION_CHECK (major, minor, micro); ++} +--- a/src/hb-version.h ++++ b/src/hb-version.h +@@ -45,6 +45,9 @@ + #define HB_VERSION_ATLEAST(major,minor,micro) \ + ((major)*10000+(minor)*100+(micro) <= \ + HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO) ++#define HB_VERSION_CHECK(major,minor,micro) \ ++ ((major)*10000+(minor)*100+(micro) >= \ ++ HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO) + + + void +@@ -60,6 +63,11 @@ + unsigned int minor, + unsigned int micro); + ++hb_bool_t ++hb_version_check (unsigned int major, ++ unsigned int minor, ++ unsigned int micro); ++ + + HB_END_DECLS + +--- a/src/hb-version.h.in ++++ b/src/hb-version.h.in +@@ -45,6 +45,10 @@ + #define HB_VERSION_ATLEAST(major,minor,micro) \ + ((major)*10000+(minor)*100+(micro) <= \ + HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO) ++#define HB_VERSION_CHECK(major,minor,micro) \ ++ ((major)*10000+(minor)*100+(micro) >= \ ++ HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO) ++ + + + void +@@ -60,6 +64,11 @@ + unsigned int minor, + unsigned int micro); + ++hb_bool_t ++hb_version_check (unsigned int major, ++ unsigned int minor, ++ unsigned int micro); ++ + + HB_END_DECLS + diff --git a/deps/harfbuzz/harfbuzz_unbreak_abi.patch.gz b/deps/harfbuzz/harfbuzz_unbreak_abi.patch.gz deleted file mode 100644 index 029aaae..0000000 Binary files a/deps/harfbuzz/harfbuzz_unbreak_abi.patch.gz and /dev/null differ diff --git a/deps/libdbusmenu-qt5/libdbusmenu-qt5.SlackBuild b/deps/libdbusmenu-qt5/libdbusmenu-qt5.SlackBuild index 57768a6..21ff2f6 100755 --- a/deps/libdbusmenu-qt5/libdbusmenu-qt5.SlackBuild +++ b/deps/libdbusmenu-qt5/libdbusmenu-qt5.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2010, 2011, 2012, 2014 Eric Hameleers, Eindhoven, The Netherlands +# Copyright 2010, 2011, 2012, 2014, 2015 Eric Hameleers, Eindhoven, The Netherlands # Copyright 2010, 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -30,7 +30,7 @@ # grep dbusmenu_qt_VERSION dbusmenu-qt/CMakeLists.txt PKGNAM=libdbusmenu-qt5 -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-r267_20140619} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:--j7} diff --git a/deps/libfakekey/libfakekey.SlackBuild b/deps/libfakekey/libfakekey.SlackBuild new file mode 100755 index 0000000..c7618fe --- /dev/null +++ b/deps/libfakekey/libfakekey.SlackBuild @@ -0,0 +1,114 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=libfakekey +VERSION=${VERSION:-0.1} +BUILD=${BUILD:-2} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS="" + LIBDIRSUFFIX="64" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP + +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.bz2 || exit 1 +cd $PKGNAM-$VERSION || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure: +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="$SLKLDFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --disable-static \ + --build=$TARGET + +# Build and install: +make AM_LDFLAGS=-lX11 || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Strip binaries (if any): +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Add documentation: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + ChangeLog COPYING \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# Add a package description: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Build the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/libfakekey/slack-desc b/deps/libfakekey/slack-desc new file mode 100644 index 0000000..0195f18 --- /dev/null +++ b/deps/libfakekey/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libfakekey: libfakekey (X Virtual Keyboard Library) +libfakekey: +libfakekey: X virtual keyboard library of the Matchbox WM project. +libfakekey: +libfakekey: +libfakekey: +libfakekey: +libfakekey: +libfakekey: See also: +libfakekey: https://www.yoctoproject.org/tools-resources/projects/matchbox +libfakekey: diff --git a/deps/libssh/libssh.SlackBuild b/deps/libssh/libssh.SlackBuild new file mode 100755 index 0000000..e131abb --- /dev/null +++ b/deps/libssh/libssh.SlackBuild @@ -0,0 +1,115 @@ +#!/bin/sh + +# Copyright 2011, 2012, 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=libssh +VERSION=${VERSION:-0.6.4} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:-" -j7 "} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-${PKGNAM} +rm -rf $PKG +mkdir -p $TMP $PKG + +cd $TMP +rm -rf ${PKGNAM}-${VERSION} +tar xvf $CWD/${PKGNAM}-$VERSION.tar.xz || exit 1 +cd ${PKGNAM}-$VERSION || exit 1 + +# These fail to build and are not packaged anyway: +zcat $CWD/libssh.no.example.build.diff | patch -p1 --verbose || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Build and install: +mkdir build +cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DWITH_GCRYPT=1 \ + -DWITH_SSH1=1 \ + -DWITH_PCAP=1 \ + -DWITH_SFTP=1 \ + -DWITH_SERVER=1 \ + -DWITH_STATIC_LIB=0 \ + .. + make $NUMJOBS VERBOSE=1 || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +# Strip binaries: +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +# Add a documentation directory: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS BSD ChangeLog COPYING INSTALL README doc/{API*,libssh*.txt} \ + $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/libssh/libssh.no.example.build.diff b/deps/libssh/libssh.no.example.build.diff new file mode 100644 index 0000000..e7f5025 --- /dev/null +++ b/deps/libssh/libssh.no.example.build.diff @@ -0,0 +1,11 @@ +--- ./CMakeLists.txt.orig 2013-01-22 04:51:59.000000000 -0600 ++++ ./CMakeLists.txt 2013-03-28 18:56:18.490047174 -0500 +@@ -89,8 +89,6 @@ + pkgconfig + ) + +-add_subdirectory(examples) +- + if (WITH_TESTING) + find_package(CMockery REQUIRED) + include(AddCMockeryTest) diff --git a/deps/libssh/slack-desc b/deps/libssh/slack-desc new file mode 100644 index 0000000..12a1c19 --- /dev/null +++ b/deps/libssh/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libssh: libssh (library implementing ssh protocols) +libssh: +libssh: libssh is a mulitplatform C library implementing the SSHv2 and SSHv1 +libssh: protocol on client and server side. With libssh, you can remotely +libssh: execute programs, transfer files, and use a secure and transparent +libssh: tunnel for your remote applications. +libssh: +libssh: Homepage: http://www.libssh.org/ +libssh: +libssh: +libssh: diff --git a/deps/orc/orc.SlackBuild b/deps/orc/orc.SlackBuild new file mode 100755 index 0000000..eb4d741 --- /dev/null +++ b/deps/orc/orc.SlackBuild @@ -0,0 +1,138 @@ +#!/bin/sh + +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2014 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=orc +VERSION=${VERSION:-0.4.22} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:-" -j7 "} + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + SLKLDFLAGS="-L/usr/lib64" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + SLKLDFLAGS="" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1 +cd $PKGNAM-$VERSION || exit 1 + +# Make sure ownerships and permissions are sane: +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure: +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="$SLKLDFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --disable-static \ + --build=$TARGET + +# Build and install: +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Strip binaries: +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Compress and link manpages, if any: +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + for manpagedir in $(find . -type d -name "man*") ; do + ( cd $manpagedir + for eachpage in $( find . -type l -maxdepth 1) ; do + ln -s $( readlink $eachpage ).gz $eachpage.gz + rm $eachpage + done + gzip -9 *.? + ) + done + ) +fi + +# Add documentation: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + COPYING README TODO \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# Add a description: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Create the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz + diff --git a/deps/orc/slack-desc b/deps/orc/slack-desc new file mode 100644 index 0000000..f76fe21 --- /dev/null +++ b/deps/orc/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +orc: orc (The Oil Runtime Compiler) +orc: +orc: Orc is a library and set of tools for compiling and executing very +orc: simple programs that operate on arrays of data. The language is +orc: a generic assembly language that represents many of the features +orc: available in SIMD architectures, including saturated addition and +orc: subtraction, and many arithmetic operations. +orc: +orc: +orc: Homepage: http://code.entropywave.com/projects/orc/ +orc: diff --git a/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild b/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild index 19cff86..ccdbd8b 100755 --- a/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild +++ b/deps/phonon-gstreamer/phonon-gstreamer.SlackBuild @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2011, 2012, 2014 Eric Hameleers, Eindhoven, NL +# Copyright 2011, 2012, 2014, 2015 Eric Hameleers, Eindhoven, NL # Copyright 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # @@ -25,7 +25,7 @@ PKGNAM=phonon-gstreamer SRCNAM=phonon-backend-gstreamer -VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} +VERSION=${VERSION:-4.8.2} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j7 "} @@ -95,23 +95,26 @@ cd build make DESTDIR=$PKG install cd - -mkdir -p build-qt5 -cd build-qt5 - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMAN_INSTALL_DIR=/usr/man \ - -DSYSCONF_INSTALL_DIR=/etc \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DPHONON_BUILD_PHONON4QT5=ON \ - .. - make $NUMJOBS - make DESTDIR=$PKG install -cd - +# Conditional build of Qt5 support: +if qtpaths-qt5 --qt-version 1>/dev/null 2>/dev/null ; then + mkdir -p build-qt5 + cd build-qt5 + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DPHONON_BUILD_PHONON4QT5=ON \ + .. + make $NUMJOBS + make DESTDIR=$PKG install + cd - +fi # Add documentation: mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION diff --git a/deps/phonon-vlc/phonon-vlc.SlackBuild b/deps/phonon-vlc/phonon-vlc.SlackBuild new file mode 100755 index 0000000..03b62be --- /dev/null +++ b/deps/phonon-vlc/phonon-vlc.SlackBuild @@ -0,0 +1,142 @@ +#!/bin/sh +# Copyright 2011, 2012, 2014, 2015 Eric Hameleers, Eindhoven, NL +# Copyright 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# ----------------------------------------------------------------------------- + + +PKGNAM=phonon-vlc +SRCNAM=phonon-backend-vlc +VERSION=${VERSION:-0.8.2} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:" -j7 "} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* || exit 1 +cd $SRCNAM-$VERSION || exit 1 + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +echo Building ... +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + .. + make $NUMJOBS + make DESTDIR=$PKG install +cd - + +# Conditional build of Qt5 support: +if qtpaths-qt5 --qt-version 1>/dev/null 2>/dev/null ; then + mkdir -p build-qt5 + cd build-qt5 + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DPHONON_BUILD_PHONON4QT5=ON \ + .. + make $NUMJOBS + make DESTDIR=$PKG install + cd - +fi + +# Add documentation: +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING* \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# Compress the man page(s): +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ). +gz $i.gz ; rm $i ; done +fi + +# Strip binaries (if any): +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Add a package description: +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Build the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/phonon-vlc/slack-desc b/deps/phonon-vlc/slack-desc new file mode 100644 index 0000000..bbab3ec --- /dev/null +++ b/deps/phonon-vlc/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +phonon-vlc: phonon-vlc (vlc backend for phonon) +phonon-vlc: +phonon-vlc: This package provides an additional vlc backend for +phonon-vlc: the phonon multimedia framework used in KDE. +phonon-vlc: +phonon-vlc: +phonon-vlc: +phonon-vlc: +phonon-vlc: +phonon-vlc: Home: http://code.google.com/p/phonon-mplayer-vlc/ +phonon-vlc: diff --git a/deps/phonon/phonon.SlackBuild b/deps/phonon/phonon.SlackBuild index 45783cc..cda7266 100755 --- a/deps/phonon/phonon.SlackBuild +++ b/deps/phonon/phonon.SlackBuild @@ -21,25 +21,24 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified 2010, 2011, 2012, 2014 Eric Hameleers, Eindhoven, NL +# Modified 2010, 2011, 2012, 2014, 2015 Eric Hameleers, Eindhoven, NL PKGNAM=phonon -VERSION=${VERSION:-4.7.2} +VERSION=${VERSION:-4.8.3} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:--j7} # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi if [ "$ARCH" = "i486" ]; then @@ -94,24 +93,27 @@ cd build make install DESTDIR=$PKG || exit 1 cd - -mkdir build-qt5 -cd build-qt5 - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMAN_INSTALL_DIR=/usr/man \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \ - -DPHONON_QT_PLUGIN_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX/qt/plugins/designer \ - -DWITH_QZeitgeist=BOOL:OFF \ - -DWITH_PulseAudio=BOOL:OFF \ - -DPHONON_BUILD_PHONON4QT5=ON \ - -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \ - .. - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG || exit 1 -cd - +# Conditional build of Qt5 support: +if qtpaths-qt5 --qt-version 1>/dev/null 2>/dev/null ; then + mkdir build-qt5 + cd build-qt5 + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \ + -DPHONON_QT_PLUGIN_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX/qt/plugins/designer \ + -DWITH_QZeitgeist=BOOL:OFF \ + -DWITH_PulseAudio=BOOL:OFF \ + -DPHONON_BUILD_PHONON4QT5=ON \ + -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 + cd - +fi # PyQT won't find the header files otherwise: sed -i -e 's#{includedir}$#& -I\${includedir}/phonon#' $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/phonon.pc diff --git a/deps/polkit-qt5-1/polkit-qt5-1.SlackBuild b/deps/polkit-qt5-1/polkit-qt5-1.SlackBuild index 49725e9..cb5ecc5 100755 --- a/deps/polkit-qt5-1/polkit-qt5-1.SlackBuild +++ b/deps/polkit-qt5-1/polkit-qt5-1.SlackBuild @@ -20,25 +20,24 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified 2014 by Eric Hameleers +# Modified 2014, 2015 by Eric Hameleers PKGNAM=polkit-qt5-1 -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +VERSION=${VERSION:-3882e11_20140802git} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:--j7} # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi if [ "$ARCH" = "i486" ]; then diff --git a/deps/poppler/poppler.SlackBuild b/deps/poppler/poppler.SlackBuild index 0ad28a4..e36953a 100755 --- a/deps/poppler/poppler.SlackBuild +++ b/deps/poppler/poppler.SlackBuild @@ -22,7 +22,7 @@ PKGNAM=poppler -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-0.24.3} BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j7 "} @@ -82,7 +82,7 @@ tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1 cd ${PKGNAM}-$VERSION || exit 1 # Properly detect Qt5: -zcat $CWD/poppler.mocversiongrep.patch.gz | patch -p1 --verbose || exit 1 +cat $CWD/poppler.mocversiongrep.patch | patch -p1 --verbose || exit 1 chown -R root:root . find . \ diff --git a/deps/poppler/poppler.mocversiongrep.patch b/deps/poppler/poppler.mocversiongrep.patch new file mode 100644 index 0000000..1343f8f --- /dev/null +++ b/deps/poppler/poppler.mocversiongrep.patch @@ -0,0 +1,28 @@ +diff -up poppler-0.24.2/configure.ac.mocversiongrep poppler-0.24.2/configure.ac +--- poppler-0.24.2/configure.ac.mocversiongrep 2013-10-18 09:51:24.223114884 -0500 ++++ poppler-0.24.2/configure.ac 2013-10-18 09:54:33.408681067 -0500 +@@ -661,20 +661,20 @@ if test x$enable_poppler_qt5 = xyes; the + AC_CHECK_TOOL(MOCQT5, moc) + AC_MSG_CHECKING([for Qt5 moc]) + mocversion=`$MOCQT5 -v 2>&1` +- mocversiongrep=`echo $mocversion | grep "Qt 5"` ++ mocversiongrep=`echo $mocversion | grep " 5\."` + if test x"$mocversiongrep" != x"$mocversion"; then + AC_MSG_RESULT([no]) + # moc was not the qt5 one, try with moc-qt5 + AC_CHECK_TOOL(MOCQT52, moc-qt5) + AC_MSG_CHECKING([for Qt5 moc-qt5]) + mocversion=`$MOCQT52 -v 2>&1` +- mocversiongrep=`echo $mocversion | grep "Qt 5"` ++ mocversiongrep=`echo $mocversion | grep " 5\."` + if test x"$mocversiongrep" != x"$mocversion"; then + AC_CHECK_TOOL(QTCHOOSER, qtchooser) + AC_MSG_CHECKING([for qtchooser]) + qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2` + mocversion=`$qt5tooldir/moc -v 2>&1` +- mocversiongrep=`echo $mocversion | grep "Qt 5"` ++ mocversiongrep=`echo $mocversion | grep " 5\."` + if test x"$mocversiongrep" != x"$mocversion"; then + # no valid moc found + enable_poppler_qt5=no; + diff --git a/deps/poppler/poppler.mocversiongrep.patch.gz b/deps/poppler/poppler.mocversiongrep.patch.gz deleted file mode 100644 index c478695..0000000 Binary files a/deps/poppler/poppler.mocversiongrep.patch.gz and /dev/null differ diff --git a/deps/qca-qt5/qca-qt5.SlackBuild b/deps/qca-qt5/qca-qt5.SlackBuild new file mode 100755 index 0000000..6c95f74 --- /dev/null +++ b/deps/qca-qt5/qca-qt5.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh + +# Copyright 2015 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=qca-qt5 +VERSION=2.1.0.1 +BUILD=${BUILD:-1} +NUMJOBS=${NUMJOBS:--j6} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-${PKGNAM} + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DQCA_MAN_INSTALL_DIR=/usr/man \ + -DQCA_INSTALL_IN_QT_PREFIX:BOOL=ON \ + -DQCA_SUFFIX=qt5 \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DBUILD_TESTS:BOOL=OFF \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mv $PKG/usr/share/man $PKG/usr/ +gzip -9 $PKG/usr/man/man?/*.1 + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + COPYING INSTALL README TODO \ + $PKG/usr/doc/$PKGNAM-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n /tmp/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/qca-qt5/slack-desc b/deps/qca-qt5/slack-desc new file mode 100644 index 0000000..30fc532 --- /dev/null +++ b/deps/qca-qt5/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +qca-qt5: qca-qt5 (Qt5 Cryptographic Architecture) +qca-qt5: +qca-qt5: QCA aims to provide a straightforward and cross-platform crypto API, +qca-qt5: using Qt datatypes and conventions. QCA separates the API from the +qca-qt5: implementation, using plugins known as Providers. The advantage of +qca-qt5: this model is to allow applications to avoid linking to or explicitly +qca-qt5: depending on any particular cryptographic library. This allows one +qca-qt5: to easily change or upgrade crypto implementations without needing +qca-qt5: to recompile the application. +qca-qt5: +qca-qt5: QCA was written by Justin Karneges. This package contains Qt5 bindings. diff --git a/deps/qt-gstreamer/doinst.sh.gz b/deps/qt-gstreamer/doinst.sh.gz new file mode 100644 index 0000000..bedb7a0 Binary files /dev/null and b/deps/qt-gstreamer/doinst.sh.gz differ diff --git a/deps/qt-gstreamer/qt-gstreamer.SlackBuild b/deps/qt-gstreamer/qt-gstreamer.SlackBuild new file mode 100755 index 0000000..e75f55d --- /dev/null +++ b/deps/qt-gstreamer/qt-gstreamer.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh + +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=qt-gstreamer +VERSION=${VERSION:-0.10.3} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT_VERSION=4 \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +# Conditional build of Qt5 support: +if qtpaths-qt5 --qt-version 1>/dev/null 2>/dev/null ; then + mkdir -p build-qt5 + cd build-qt5 + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT_VERSION=5 \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 + cd - +fi + +if [ -d $PKG/usr/man ]; then + gzip -9 $PKG/usr/man/man?/* +fi + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + COPYING HACKING NEWS README \ + $PKG/usr/doc/$PKGNAM-$VERSION + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/qt-gstreamer/slack-desc b/deps/qt-gstreamer/slack-desc new file mode 100644 index 0000000..3ae6605 --- /dev/null +++ b/deps/qt-gstreamer/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +qt-gstreamer: qt-gstreamer (C++ bindings for gstreamer) +qt-gstreamer: +qt-gstreamer: QtGStreamer provides C++ bindings for GStreamer with a Qt-style API, +qt-gstreamer: plus some helper classes and elements for integrating GStreamer +qt-gstreamer: better in Qt applications. +qt-gstreamer: The goal of this module is to allow easy use of GStreamer for +qt-gstreamer: applications targetting MeeGo Mobile or the KDE desktop. +qt-gstreamer: +qt-gstreamer: Homepage: +qt-gstreamer: http://gstreamer.freedesktop.org/modules/qt-gstreamer.html +qt-gstreamer: diff --git a/deps/qt-gstreamer1/doinst.sh.gz b/deps/qt-gstreamer1/doinst.sh.gz new file mode 100644 index 0000000..bedb7a0 Binary files /dev/null and b/deps/qt-gstreamer1/doinst.sh.gz differ diff --git a/deps/qt-gstreamer1/qt-gstreamer1.SlackBuild b/deps/qt-gstreamer1/qt-gstreamer1.SlackBuild new file mode 100755 index 0000000..b2cc3c0 --- /dev/null +++ b/deps/qt-gstreamer1/qt-gstreamer1.SlackBuild @@ -0,0 +1,126 @@ +#!/bin/sh + +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=qt-gstreamer1 +SRCNAM=qt-gstreamer +VERSION=${VERSION:-1.2.0} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* || exit 1 +cd $SRCNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT_VERSION=4 \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +# Conditional build of Qt5 support: +if qtpaths-qt5 --qt-version 1>/dev/null 2>/dev/null ; then + mkdir -p build-qt5 + cd build-qt5 + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT_VERSION=5 \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 + cd - +fi + +if [ -d $PKG/usr/man ]; then + gzip -9 $PKG/usr/man/man?/* +fi + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + COPYING HACKING NEWS README \ + $PKG/usr/doc/$PKGNAM-$VERSION + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/qt-gstreamer1/slack-desc b/deps/qt-gstreamer1/slack-desc new file mode 100644 index 0000000..cf20a0e --- /dev/null +++ b/deps/qt-gstreamer1/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +qt-gstreamer1: qt-gstreamer1 (C++ bindings for gstreamer1) +qt-gstreamer1: +qt-gstreamer1: QtGStreamer provides C++ bindings for GStreamer with a Qt-style API, +qt-gstreamer1: plus some helper classes and elements for integrating GStreamer +qt-gstreamer1: better in Qt applications. +qt-gstreamer1: The goal of this module is to allow easy use of GStreamer for +qt-gstreamer1: applications targetting MeeGo Mobile or the KDE desktop. +qt-gstreamer1: +qt-gstreamer1: Homepage: +qt-gstreamer1: http://gstreamer.freedesktop.org/modules/qt-gstreamer.html +qt-gstreamer1: diff --git a/deps/qt5-gstreamer/doinst.sh.gz b/deps/qt5-gstreamer/doinst.sh.gz deleted file mode 100644 index bedb7a0..0000000 Binary files a/deps/qt5-gstreamer/doinst.sh.gz and /dev/null differ diff --git a/deps/qt5-gstreamer/qt5-gstreamer.SlackBuild b/deps/qt5-gstreamer/qt5-gstreamer.SlackBuild deleted file mode 100755 index 12be5a4..0000000 --- a/deps/qt5-gstreamer/qt5-gstreamer.SlackBuild +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/sh - -# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA -# Copyright 2014 Eric Hameleers, Eindhoven, NL -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -PKGNAM=qt5-gstreamer -SRCNAM=qt-gstreamer -VERSION=${VERSION:-0.10.3} -BUILD=${BUILD:-1} - -NUMJOBS=${NUMJOBS:--j7} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac -fi - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - LIBDIRSUFFIX="" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-$SRCNAM - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* || exit 1 -cd $SRCNAM-$VERSION || exit 1 -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# Eventually, we need to merge qt5-gstreamer into the qt-gstreamer package. -# When that happens, simply un-comment the section below and rename the package -# to qt-gstreamer. It will then have both qt4 and qt5 support. -#mkdir -p build -#cd build -# cmake \ -# -DCMAKE_BUILD_TYPE=Release \ -# -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -# -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -# -DCMAKE_INSTALL_PREFIX=/usr \ -# -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -# -DQT_VERSION=4 \ -# .. -# make $NUMJOBS || make || exit 1 -# make install DESTDIR=$PKG || exit 1 -#cd - - -mkdir -p build-qt5 -cd build-qt5 - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DQT_VERSION=5 \ - .. - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG || exit 1 -cd - - -if [ -d $PKG/usr/man ]; then - gzip -9 $PKG/usr/man/man?/* -fi - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a \ - COPYING HACKING NEWS README \ - $PKG/usr/doc/$PKGNAM-$VERSION - -find $PKG | xargs file | grep -e "executable" -e "shared object" \ - | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz - diff --git a/deps/qt5-gstreamer/slack-desc b/deps/qt5-gstreamer/slack-desc deleted file mode 100644 index b8cbdd3..0000000 --- a/deps/qt5-gstreamer/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler-----------------------------------------------------| -qt5-gstreamer: qt5-gstreamer (C++ bindings for gstreamer) -qt5-gstreamer: -qt5-gstreamer: QtGStreamer provides C++ bindings for GStreamer with a Qt-style API, -qt5-gstreamer: plus some helper classes and elements for integrating GStreamer -qt5-gstreamer: better in Qt applications. -qt5-gstreamer: The goal of this module is to allow easy use of GStreamer for -qt5-gstreamer: applications targetting MeeGo Mobile or the KDE desktop. -qt5-gstreamer: -qt5-gstreamer: Homepage: -qt5-gstreamer: http://gstreamer.freedesktop.org/modules/qt5-gstreamer.html -qt5-gstreamer: diff --git a/deps/qt5/archive/qt5.SlackBuild1 b/deps/qt5/archive/qt5.SlackBuild1 deleted file mode 100644 index b68cbe6..0000000 --- a/deps/qt5/archive/qt5.SlackBuild1 +++ /dev/null @@ -1,265 +0,0 @@ -#!/bin/sh - -# Slackware build script for qt5 - -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Patrick J. Volkerding, Sebeka, MN, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# Merged some ideas from Alex Sarmardzic's script for qt4 at SlackBuilds.org -# ^^ Modified by Robby Workman for QT4 & KDE4 - -# Modifications 2010, 2011, 2012, 2013, 2014 Eric Hameleers, Eindhoven, NL - -# Tailored to Qt5 by Larry Hajali 2013, 2014. - -PKGNAM=qt5 -SRCNAM=qt5 -VERSION=${VERSION:-5.2.1} -BUILD=${BUILD:-1} - -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-$PKGNAM - -if [ -e $CWD/machine.conf ]; then - . $CWD/machine.conf ] -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf ] -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" - elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" - elif [ "$ARCH" = "arm" ]; then - SLKCFLAGS="-O2 -march=armv5te" - LIBDIRSUFFIX="" - elif [ "$ARCH" = "armv7hl" ]; then - # To prevent "qatomic_armv6.h error: output number 2 not directly addressable" - # More permanent solution is to patch gcc: - # http://bazaar.launchpad.net/~linaro-toolchain-dev/gcc-linaro/4.6/revision/106731 - SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -fno-strict-volatile-bitfields" - LIBDIRSUFFIX="" - else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - fi -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf ${SRCNAM}-everywhere-opensource-src-$VERSION || exit 1 -tar xvf $CWD/${SRCNAM}-everywhere-opensource-src-$VERSION.tar.xz || exit 1 -cd ${SRCNAM}-everywhere-opensource-src-$VERSION || exit 1 -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# Fix path to mysql header -zcat $CWD/patches/qt5.mysql.h.diff.gz | patch -p1 --verbose || exit 1 - -# Install path fix for libplatformplugin.so. -# https://bugs.webkit.org/show_bug.cgi?id=117077 -zcat $CWD/patches/platformplugin-install-path-fix.patch.gz | patch -p1 --verbose || exit 1 - -if [ $ARCH = "i486" ]; then - sed -i -e "s/QMAKE_CFLAGS_RELEASE += -O2/QMAKE_CFLAGS_RELEASE += $SLKCFLAGS/" mkspecs/common/gcc-base.conf || exit 1 -fi - -export CFLAGS="$SLKCFLAGS" -export CXXFLAGS="$SLKCFLAGS" -export OPENSOURCE_CXXFLAGS="$SLKCFLAGS" -./configure \ - -confirm-license \ - -opensource \ - -release \ - -prefix "/usr/lib${LIBDIRSUFFIX}/$PKGNAM" \ - -sysconfdir "/etc/xdg" \ - -docdir "/usr/doc/$PKGNAM-$VERSION" \ - -accessibility \ - -dbus-linked \ - -glib \ - -icu \ - -javascript-jit \ - -openssl \ - -optimized-qmake \ - -plugin-sql-sqlite \ - -qpa xcb \ - -reduce-relocations \ - -verbose \ - -xcb \ - -nomake examples \ - -no-pch \ - -no-rpath \ - -no-separate-debug-info \ - -no-strip \ - -system-harfbuzz \ - -system-libjpeg \ - -system-libpng \ - -system-pcre \ - -system-sqlite \ - -system-zlib - -# Sometimes a failure happens when parallelizing make. Try again if make fails, -# but make a failure the second time around (single threaded) a fatal error: -make $NUMJOBS || make || exit 1 -make install INSTALL_ROOT=$PKG || exit 1 - -# The infamous qt -> qt-${VERSION} link that keeps the full path out of .la files: -ln -s $PKGNAM $PKG/usr/lib${LIBDIRSUFFIX}/qt-$VERSION - -mkdir -p $PKG/usr/bin -for BIN in $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/bin/*; do - TMP_FILE=$(echo $BIN | sed -e "s|$PKG||") - case $(basename $BIN) in - syncqt.pl) - ln -s $TMP_FILE $PKG/usr/bin/$(basename $BIN) - ;; - *) - ln -s $TMP_FILE $PKG/usr/bin/$(basename $BIN)-$PKGNAM - ;; - esac -done - -for LIBS in $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/*so*; do - TMP_FILE=$(echo $LIBS | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/$(basename $LIBS) -done - -# Create Environment variables -mkdir -p $PKG/etc/profile.d -sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PKGNAM.sh \ - > $PKG/etc/profile.d/$PKGNAM.sh -sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PKGNAM.csh \ - > $PKG/etc/profile.d/$PKGNAM.csh -chmod 0755 $PKG/etc/profile.d/* - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# Add a missing Qt.pc which is needed by KDE applications: -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/qt/lib/pkgconfig -cat < $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/pkgconfig/Qt5.pc -prefix=/usr/lib${LIBDIRSUFFIX}/$PKGNAM -bindir=\${prefix}/bin -datadir=\${prefix} -docdir=/usr/doc/$PKGNAM-$VERSION -archdatadir=\${prefix} -examplesdir=\${prefix}/examples -headerdir=\${prefix}/include -importdir=\${prefix}/imports -qmldir=\${prefix}/qml -libdir=\${prefix}/lib -libexec=\${prefix}/libexec -moc=\${bindir}/moc -plugindir=\${prefix}/plugins -qmake=\${bindir}/qmake -sysconfdir=/etc/xdg -translationdir=\${prefix}/translations - -Name: Qt5 -Description: Qt5 Configuration -Version: $VERSION -EOF - -# Fix internal linking for Qt5WebKit.pc. -sed -i \ - -e "s|-Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebKit[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebKit2[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebCore[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/ThirdParty/ANGLE[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/JavaScriptCore[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WTF[^ ]* ||" \ - $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/pkgconfig/Qt5WebKit.pc - -# While we are at it, there isn't any reason to keep references to $PKG in the *.prl files. -for PRL in $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/*.prl; do - sed -i '/^QMAKE_PRL_BUILD_DIR/d' $PRL -done - -# One more for the road. -sed -i "s|$PWD/qtbase|/usr/lib${LIBDIRSUFFIX}/$PKGNAM|" \ - $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/mkspecs/modules/qt_lib_bootstrap_private.pri - -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig -for PKGCONFIG in $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/pkgconfig/*.pc; do - TMP_FILE=$(echo $PKGCONFIG | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/$(basename $PKGCONFIG) -done - -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/cmake -for CMAKE in $(find $PKG/usr/lib${LIBDIRSUFFIX}/$PKGNAM/lib/cmake -maxdepth 1); do - TMP_FILE=$(echo $CMAKE | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/cmake/$(basename $CMAKE) -done - -for i in $CWD/desktop/*.desktop; do - install -D -m 0644 $i $PKG/usr/share/applications/$(basename $i) -done -sed -i "s|@LIBDIR@|$LIBDIRSUFFIX|" $PKG/usr/share/applications/* - -for i in $(find . -name "assistant.ico" -o -name "designer.ico" \ - -o -name "linguist.ico" -o -name "qdbusviewer.ico"); do - for j in 16 24 32 48 64 96 128; do - convert $i -resize ${j}x${j}! $(basename $i)-$j.png - install -D -m 0644 $(basename $i)-$j-0.png \ - $PKG/usr/share/icons/hicolor/${j}x${j}/apps/$(basename $i | sed 's|.ico||')-$PKGNAM.png - done -done - -# Remove executable bits from files. -find $PKG \( -name "*.qml" -o -name "*.app" \) -perm 755 -exec chmod 644 '{}' \; - -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a \ - README qtbase/{header*,LGPL_EXCEPTION.txt,LICENSE.*L} \ - $PKG/usr/doc/$PKGNAM-$VERSION -cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/deps/qt5/archive/qt5.SlackBuild2 b/deps/qt5/archive/qt5.SlackBuild2 deleted file mode 100644 index 9badae3..0000000 --- a/deps/qt5/archive/qt5.SlackBuild2 +++ /dev/null @@ -1,236 +0,0 @@ -#!/bin/sh - -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# Merged some ideas from Alex Sarmardzic's script for qt4 at SlackBuilds.org -# ^^ Modified by Robby Workman for QT4 & KDE4 - -# We're using qt-copy instead of a released qt version, as this git release -# has at least one bugfix strongly recommended by the kde developers. - -# Obtained from: -# git clone git://gitorious.org/+kde-developers/qt/kde-qt.git -# git checkout origin/4.5.3-patched -# git checkout origin/4.6.0-stable-patched -# git checkout origin/4.6.1-patched -# git checkout origin/4.7.0-patched -# -# Alternate method (we don't use this): -# wget http://qt.gitorious.org/qt/kde-qt/archive-tarball/4.6.2-patched -# -# Modifications 2010, 2011, 2012 Eric Hameleers, Eindhoven, NL -# qt 4.7.3, 4.7.4, 4.8.0, 4.8.1, 4.8.2, 4.8.4 are built from original nokia sources. -# -# More Mods 2013 Michael James, AU -# Qt 5.1.0, 5.2.0 -# -# Changes -# -# 2013/10/14 Preliminary support for 5.2.0 (alpha) -# 2013/10/14 Fixed documentation symlink qt->qt5 -# 2013/12/14 Qt 5.2 support (removed some configure options) -# 2013/12/15 Change include install path to avoid conflicts - -PKGNAM=qt5 -VERSION=$(ls qt-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev) -BUILD=${BUILD:-1} - -NUMJOBS=${NUMJOBS:--j7} - -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac -fi - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -elif [ "$ARCH" = "armv7hl" ]; then - # To prevent "qatomic_armv6.h error: output number 2 not directly addressable" - # More permanent solution is to patch gcc: - # http://bazaar.launchpad.net/~linaro-toolchain-dev/gcc-linaro/4.6/revision/106731 - SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -fno-strict-volatile-bitfields" - LIBDIRSUFFIX="" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-${PKGNAM} - -rm -rf $PKG -mkdir -p $TMP $PKG -cd $TMP -rm -rf qt-everywhere-opensource-src-$VERSION -tar xvf $CWD/qt-everywhere-opensource-src-$VERSION.tar.?z* # For qt releases -cd qt-everywhere-opensource-src-$VERSION || exit 1 - -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -if [ $ARCH = "i486" ]; then - sed -i -e "s/QMAKE_CFLAGS_RELEASE += -O2/QMAKE_CFLAGS_RELEASE += $SLKCFLAGS/" mkspecs/common/gcc-base.conf || exit 1 -fi - -export CFLAGS="$SLKCFLAGS" -export CXXFLAGS="$SLKCFLAGS" -export OPENSOURCE_CXXFLAGS="$SLKCFLAGS" -./configure \ - -confirm-license \ - -opensource \ - -prefix /usr \ - -datadir /usr/share/qt5 \ - -libdir /usr/lib${LIBDIRSUFFIX} \ - -archdatadir /usr/lib${LIBDIRSUFFIX}/qt5 \ - -bindir /usr/lib${LIBDIRSUFFIX}/qt5/bin \ - -headerdir /usr/include/qt5 \ - -system-libpng \ - -system-libjpeg \ - -system-zlib \ - -system-sqlite \ - -plugin-sql-sqlite \ - -dbus \ - -nomake examples \ - -no-separate-debug-info \ - -no-pch - # No-precompiled-headers is ccache-friendly. - -# Sometimes a failure happens when parallelizing make. Try again if make fails, -# but make a failure the second time around (single threaded) a fatal error: -make $NUMJOBS || make || exit 1 -make install INSTALL_ROOT=$PKG || exit 1 - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - -# Add qtchooser config file -mkdir -p $PKG/etc/xdg/qtchooser -cat < $PKG/etc/xdg/qtchooser/5.conf -/usr/lib${LIBDIRSUFFIX}/qt5/bin -/usr/lib${LIBDIRSUFFIX} -EOF - -# Add menu entries for all those hidden but great Qt applications: -# Qt logo: -mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps -convert qtdoc/doc/src/images/qt-logo.png -resize 48x48 $PKG/usr/share/icons/hicolor/48x48/apps/qt-logo.png -# Assistant icons -install -p -m644 -D qttools/src/assistant/assistant/images/assistant.png $PKG/usr/share/icons/hicolor/32x32/apps/assistant.png -install -p -m644 -D qttools/src/assistant/assistant/images/assistant-128.png $PKG/usr/share/icons/hicolor/128x128/apps/assistant.png -# Designer icon -install -p -m644 -D qttools/src/designer/src/designer/images/designer.png $PKG/usr/share/icons/hicolor/128x128/apps/designer.png -# Linguist icons -for icon in qttools/src/linguist/linguist/images/icons/linguist-*-32.png ; do - size=$(echo $(basename ${icon}) | cut -d- -f2) - install -p -m644 -D ${icon} $PKG/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png -done - -# And the .desktop files -mkdir -p $PKG/usr/share/applications -cat < $PKG/usr/share/applications/qt5-designer.desktop -[Desktop Entry] -Name=Qt5 Designer -GenericName=Interface Designer -Comment=Design GUIs for Qt5 applications -Exec=designer -qt=5 -Icon=designer -MimeType=application/x-designer; -Terminal=false -Encoding=UTF-8 -Type=Application -Categories=Qt;Development; -EOF -cat < $PKG/usr/share/applications/qt5-assistant.desktop -[Desktop Entry] -Name=Qt5 Assistant -Comment=Shows Qt5 documentation and examples -Exec=assistant -qt=5 -Icon=assistant -Terminal=false -Encoding=UTF-8 -Type=Application -Categories=Qt;Development;Documentation; -EOF -cat < $PKG/usr/share/applications/qt5-linguist.desktop -[Desktop Entry] -Name=Qt5 Linguist -Comment=Add translations to Qt5 applications -Exec=linguist -qt=5 -Icon=linguist -MimeType=text/vnd.trolltech.linguist;application/x-linguist; -Terminal=false -Encoding=UTF-8 -Type=Application -Categories=Qt;Development; -EOF -cat < $PKG/usr/share/applications/qt5-config.desktop -[Desktop Entry] -Name=Qt5 Config -Comment=Configure Qt5 behavior, styles, fonts -Exec=qtconfig -qt=5 -Icon=qt-logo -Terminal=false -Encoding=UTF-8 -Type=Application -Categories=Qt;Settings; -EOF - -# Add a documentation directory: -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a *GPL_EXCEPTION* FAQ* INSTALL KNOWN* LICENSE* README* changes-* \ - $PKG/usr/doc/$PKGNAM-$VERSION -if [ -d $PKG/usr/lib${LIBDIRSUFFIX}/qt5/doc/html ]; then - ( cd $PKG/usr/doc/$PKGNAM-$VERSION - ln -sf /usr/lib${LIBDIRSUFFIX}/qt5/doc/html . - ) -fi - -mkdir -p $PKG/install -zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz - diff --git a/deps/qt5/patches/platformplugin-install-path-fix.patch b/deps/qt5/patches/platformplugin-install-path-fix.patch new file mode 100644 index 0000000..db9b33b --- /dev/null +++ b/deps/qt5/patches/platformplugin-install-path-fix.patch @@ -0,0 +1,15 @@ +See https://bugs.webkit.org/show_bug.cgi?id=117077 + +diff -Naur qt-everywhere-opensource-src-5.0.2.orig/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro +--- qt-everywhere-opensource-src-5.0.2.orig/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro 2013-04-09 00:11:38.000000000 +0000 ++++ qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro 2013-05-31 01:18:29.157175082 +0000 +@@ -20,7 +20,8 @@ + } + } + +-DESTDIR = $$[QT_INSTALL_PLUGINS]/webkit ++target.path = $$[QT_INSTALL_PLUGINS]/webkit ++INSTALLS += target + + SOURCES += \ + WebPlugin.cpp \ diff --git a/deps/qt5/patches/platformplugin-install-path-fix.patch.gz b/deps/qt5/patches/platformplugin-install-path-fix.patch.gz deleted file mode 100644 index b76f275..0000000 Binary files a/deps/qt5/patches/platformplugin-install-path-fix.patch.gz and /dev/null differ diff --git a/deps/qt5/patches/qt5.mysql.h.diff b/deps/qt5/patches/qt5.mysql.h.diff new file mode 100644 index 0000000..41dc9d3 --- /dev/null +++ b/deps/qt5/patches/qt5.mysql.h.diff @@ -0,0 +1,12 @@ +diff -Naur qt-everywhere-opensource-src-5.1.0.orig/qtbase/src/sql/drivers/mysql/qsql_mysql_p.h qt-everywhere-opensource-src-5.1.0/qtbase/src/sql/drivers/mysql/qsql_mysql_p.h +--- qt-everywhere-opensource-src-5.1.0.orig/qtbase/src/sql/drivers/mysql/qsql_mysql_p.h 2013-07-02 07:09:52.000000000 +0000 ++++ qt-everywhere-opensource-src-5.1.0/qtbase/src/sql/drivers/mysql/qsql_mysql_p.h 2013-07-21 21:21:01.190172379 +0000 +@@ -60,7 +60,7 @@ + #include + #endif + +-#include ++#include + + #ifdef QT_PLUGIN + #define Q_EXPORT_SQLDRIVER_MYSQL diff --git a/deps/qt5/patches/qt5.mysql.h.diff.gz b/deps/qt5/patches/qt5.mysql.h.diff.gz deleted file mode 100644 index 6088b7c..0000000 Binary files a/deps/qt5/patches/qt5.mysql.h.diff.gz and /dev/null differ diff --git a/deps/qt5/patches/qt5.pulseaudio.diff b/deps/qt5/patches/qt5.pulseaudio.diff new file mode 100644 index 0000000..8d8f616 --- /dev/null +++ b/deps/qt5/patches/qt5.pulseaudio.diff @@ -0,0 +1,12 @@ +--- qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/media/media.gyp.orig 2014-12-05 17:26:44.000000000 +0100 ++++ qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/media/media.gyp 2014-12-12 10:27:20.393735405 +0100 +@@ -29,7 +29,7 @@ + ['use_cras==1', { + 'use_pulseaudio%': 0, + }, { +- 'use_pulseaudio%': 1, ++ 'use_pulseaudio%': 0, + }], + ], + }, { + diff --git a/deps/qt5/qt5.SlackBuild b/deps/qt5/qt5.SlackBuild index 1abaae0..a76d018 100755 --- a/deps/qt5/qt5.SlackBuild +++ b/deps/qt5/qt5.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -36,28 +36,29 @@ # Alternate method (we don't use this): # wget http://qt.gitorious.org/qt/kde-qt/archive-tarball/4.6.2-patched # -# Modifications 2010, 2011, 2012, 2013, 2014 Eric Hameleers, Eindhoven, NL +# Modifications 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, NL # qt 4.7.3, 4.7.4, 4.8.0, 4.8.1, 4.8.2, 4.8.4, are built from original nokia sources. # # Modifications for qt 5.2.0 2013 by Michael James, AU # Modifications for qt 5.2.1 2014 by Eric Hameleers, Eindhoven, NL +# Modifications for qt 5.3.1 2014 by Eric Hameleers, Eindhoven, NL +# Modifications for qt 5.4.0 2015 by Eric Hameleers, Eindhoven, NL PKGNAM=qt5 -VERSION=$(ls qt-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev) +VERSION=${VERSION:-5.4.0} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:--j7} # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi if [ "$ARCH" = "i486" ]; then @@ -111,11 +112,14 @@ find . \ -exec chmod 644 {} \; # Fix path to mysql header: -zcat $CWD/patches/qt5.mysql.h.diff.gz | patch -p1 --verbose || exit 1 +cat $CWD/patches/qt5.mysql.h.diff | patch -p1 --verbose || exit 1 + +# Forcibly disable pulseaudio in qtwebengine: +cat $CWD/patches/qt5.pulseaudio.diff | patch -p1 --verbose || exit 1 # Install path fix for libplatformplugin.so: # See https://bugs.webkit.org/show_bug.cgi?id=117077 -zcat $CWD/patches/platformplugin-install-path-fix.patch.gz | patch -p1 --verbose || exit 1 +cat $CWD/patches/platformplugin-install-path-fix.patch | patch -p1 --verbose || exit 1 sed -i -e "s/-O2/$SLKCFLAGS/" qtbase/mkspecs/common/g++-base.conf || exit 1 sed -i -e "s/-O2/$SLKCFLAGS/" qtbase/mkspecs/common/gcc-base.conf || exit 1 @@ -139,7 +143,6 @@ export QT_PLUGIN_PATH="${QTDIR}/qtbase/plugins" -archdatadir /usr/lib${LIBDIRSUFFIX}/qt5 \ -docdir /usr/doc/qt5-$VERSION \ -examplesdir /usr/doc/qt5-$VERSION/examples \ - -system-harfbuzz \ -system-libpng \ -system-libjpeg \ -system-pcre \ @@ -148,20 +151,24 @@ export QT_PLUGIN_PATH="${QTDIR}/qtbase/plugins" -plugin-sql-mysql \ -plugin-sql-sqlite \ -accessibility \ + -alsa \ -dbus \ -glib \ -icu \ -openssl \ -optimized-qmake \ -qpa xcb \ + -qt-harfbuzz \ -reduce-relocations \ -verbose \ -xcb \ -nomake examples \ -nomake tests \ + -no-pulseaudio \ -no-separate-debug-info \ -no-strip \ - -no-pch + -no-use-gold-linker \ + -no-pch \ # No-precompiled-headers is ccache-friendly. # Sometimes a failure happens when parallelizing make. Try again if make fails, @@ -251,17 +258,6 @@ Encoding=UTF-8 Type=Application Categories=Qt;Development; EOF -cat < $PKG/usr/share/applications/qt5-config.desktop -[Desktop Entry] -Name=Qt5 Config -Comment=Configure Qt5 behavior, styles, fonts -Exec=qtconfig-qt5 -qt=5 -Icon=qt5-logo -Terminal=false -Encoding=UTF-8 -Type=Application -Categories=Qt;Settings; -EOF cat < $PKG/usr/share/applications/qt5-qdbusviewer.desktop [Desktop Entry] Name=Qt5 QDbusViewer diff --git a/deps/shared-desktop-ontologies/shared-desktop-ontologies.SlackBuild b/deps/shared-desktop-ontologies/shared-desktop-ontologies.SlackBuild new file mode 100755 index 0000000..df88650 --- /dev/null +++ b/deps/shared-desktop-ontologies/shared-desktop-ontologies.SlackBuild @@ -0,0 +1,115 @@ +#!/bin/sh + +# Copyright 2009, 2010, 2011, 2012, 2015 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Modifications 2013, 2014, 2015 Eric Hameleers, Eindhoven, NL + + +PKGNAM=shared-desktop-ontologies +VERSION=${VERSION:-0.11.0} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + QTDIR=/usr/lib${LIBDIRSUFFIX}/qt \ + PATH=$QTDIR/bin:$PATH \ + cmake \ + $KDE_OPT_ARGS \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd - + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS LICENSE* README \ + $PKG/usr/doc/$PKGNAM-$VERSION + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/shared-desktop-ontologies/slack-desc b/deps/shared-desktop-ontologies/slack-desc new file mode 100644 index 0000000..18412ab --- /dev/null +++ b/deps/shared-desktop-ontologies/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-------------------------------------------------------| +shared-desktop-ontologies: shared-desktop-ontologies (Shared OSCAF desktop ontologies) +shared-desktop-ontologies: +shared-desktop-ontologies: The shared-desktop-ontologies package brings the semantic web to +shared-desktop-ontologies: the desktop in terms of vocabulary. It contains the well known core +shared-desktop-ontologies: ontologies such as RDF and RDFS as well as the Nepomuk ontologies +shared-desktop-ontologies: which are used by projects like KDE or Strigi. +shared-desktop-ontologies: +shared-desktop-ontologies: Homepage: http://oscaf.sourceforge.net +shared-desktop-ontologies: +shared-desktop-ontologies: +shared-desktop-ontologies: diff --git a/deps/soprano/slack-desc b/deps/soprano/slack-desc new file mode 100644 index 0000000..44327e0 --- /dev/null +++ b/deps/soprano/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +soprano: soprano (C++/Qt4 framework for RDF data) +soprano: +soprano: Soprano (formally known as QRDF) is a library which provides +soprano: a nice Qt interface to RDF storage solutions. It has a modular +soprano: structure which allows to replace the actual RDF storage +soprano: implementation used. +soprano: +soprano: Homepage: http://soprano.sourceforge.net/ +soprano: +soprano: +soprano: diff --git a/deps/soprano/soprano.SlackBuild b/deps/soprano/soprano.SlackBuild new file mode 100755 index 0000000..cf96b7b --- /dev/null +++ b/deps/soprano/soprano.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh + +# Copyright 2007-2008 Robby Workman, Northport, Alabama, USA +# Copyright 2008, 2009, 2010, 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Modified 2012, 2015 by Eric Hameleers for ARM port. + + +PKGNAM=soprano +VERSION=${VERSION:-2.9.4} +BUILD=${BUILD:-2} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-soprano + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf soprano-$VERSION +tar xvf $CWD/soprano-$VERSION.tar.bz2 || exit 1 +cd soprano-${VERSION}* || exit 1 + +# Restore SC/BC with a stub implementation of tcpclient (fixes smokekde): +# (fixed in soprano-2.7.57) +#cat $CWD/soprano_tcpclient_stub.diff | patch -p1 --verbose || exit 1 + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + QTDIR=/usr/lib${LIBDIRSUFFIX}/qt \ + PATH=$QTDIR/bin:$PATH \ + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + .. + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd .. + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/doc/soprano-$VERSION +cp -a \ + AUTHORS COPYING* ChangeLog INSTALL README TODO \ + $PKG/usr/doc/soprano-$VERSION + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/soprano-$VERSION-$ARCH-$BUILD.txz + diff --git a/deps/soprano/soprano_tcpclient_stub.diff b/deps/soprano/soprano_tcpclient_stub.diff new file mode 100644 index 0000000..2b04f66 --- /dev/null +++ b/deps/soprano/soprano_tcpclient_stub.diff @@ -0,0 +1,196 @@ +commit ed17a950a9c6f83590fa62cb97e7278ba7f3e234 +Author: Aaron Seigo +Date: Wed May 30 10:18:52 2012 +0200 + + restore SC / BC with a stub impl of tcpclient + +diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt +index 2689568..4e73e3c 100644 +--- a/client/CMakeLists.txt ++++ b/client/CMakeLists.txt +@@ -14,6 +14,8 @@ include_directories( + ) + + set(soprano_client_SRC ++ ${soprano_server_SOURCE_DIR}/datastream.cpp ++ tcpclient.cpp + socket.cpp + socketstream.cpp + localsocketclient.cpp +@@ -94,6 +96,7 @@ INSTALL(TARGETS sopranoclient + + install( + FILES ++ tcpclient.h + localsocketclient.h + DESTINATION include/soprano + ) +diff --git a/client/tcpclient.cpp b/client/tcpclient.cpp +index 796ca59..01dce0e 100644 +--- a/client/tcpclient.cpp ++++ b/client/tcpclient.cpp +@@ -33,151 +33,58 @@ Q_DECLARE_METATYPE( QAbstractSocket::SocketError ) + const quint16 Soprano::Client::TcpClient::DEFAULT_PORT = 5000; + + +-namespace Soprano { +- namespace Client { +- class TcpClientConnection : public ClientConnection +- { +- public: +- TcpClientConnection( const QHostAddress& address, int port, QObject* parent ); +- ~TcpClientConnection(); +- +- protected: +- QIODevice* newConnection(); +- bool isConnected( QIODevice* ); +- +- private: +- QHostAddress m_address; +- int m_port; +- }; +- +- TcpClientConnection::TcpClientConnection( const QHostAddress& address, int port, QObject* parent ) +- : ClientConnection( parent ), +- m_address( address ), +- m_port( port ) +- { +- } +- +- TcpClientConnection::~TcpClientConnection() +- { +- } +- +- QIODevice* TcpClientConnection::newConnection() +- { +- clearError(); +- +- QTcpSocket* socket = new QTcpSocket; +- socket->connectToHost( m_address, m_port ); +- if ( socket->waitForConnected() ) { +- QObject::connect( socket, SIGNAL(error(QAbstractSocket::SocketError)), +- parent(), SLOT(slotError(QAbstractSocket::SocketError)) ); +- return socket; +- } +- else { +- setError( socket->errorString() ); +- delete socket; +- return 0; +- } +- } +- +- bool TcpClientConnection::isConnected( QIODevice* device ) { +- return device ? ( static_cast( device )->state() == QAbstractSocket::ConnectedState ) : false; +- } +- } +-} +- +- +-class Soprano::Client::TcpClient::Private +-{ +-public: +- Private() +- : connection( 0 ) { +- } +- +- TcpClientConnection* connection; +-}; +- +- + Soprano::Client::TcpClient::TcpClient( QObject* parent ) + : QObject( parent ), +- d( new Private() ) ++ d( 0 ) + { +- qRegisterMetaType(); ++ qWarning() << "This class is deprecated, and the implementation is only a stub now. DO NOT USE IT IN YOUR APPLICATION."; + } + + + Soprano::Client::TcpClient::~TcpClient() + { +- disconnect(); +- delete d; ++ //delete d; + } + + + bool Soprano::Client::TcpClient::connect( const QHostAddress& address, int port ) + { +- if ( !isConnected() ) { +- if ( !d->connection ) +- d->connection = new TcpClientConnection( address, port, this ); +- if ( d->connection->connect() && +- d->connection->checkProtocolVersion() ) { +- return true; +- } +- else { +- disconnect(); +- return false; +- } +- } +- else { +- setError( "Already connected" ); +- return false; +- } ++ Q_UNUSED(address) ++ Q_UNUSED(port) ++ return false; + } + + + bool Soprano::Client::TcpClient::isConnected() + { +- return d->connection ? d->connection->isConnected() : false; ++ return false; + } + + + void Soprano::Client::TcpClient::disconnect() + { +- delete d->connection; +- d->connection = 0; + } + + + Soprano::Model* Soprano::Client::TcpClient::createModel( const QString& name, const QList& settings ) + { +- if ( d->connection ) { +- int modelId = d->connection->createModel( name, settings ); +- setError( d->connection->lastError() ); +- if ( modelId > 0 ) { +- StorageModel* model = new ClientModel( 0, modelId, d->connection ); +- return model; +- } +- } +- else { +- setError( "Not connected" ); +- } +- ++ Q_UNUSED(name) ++ Q_UNUSED(settings) ++ setError( "Not connected" ); + return 0; + } + + + void Soprano::Client::TcpClient::removeModel( const QString& name ) + { +- if ( d->connection ) { +- d->connection->removeModel( name ); +- setError( d->connection->lastError() ); +- } +- else { +- setError( "Not connected" ); +- } ++ Q_UNUSED(name) ++ setError( "Not connected" ); + } + + + void Soprano::Client::TcpClient::slotError( QAbstractSocket::SocketError error ) + { ++ Q_UNUSED(error) + qDebug() << "Error: " << error; + } + diff --git a/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff b/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff new file mode 100644 index 0000000..d4721c3 --- /dev/null +++ b/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff @@ -0,0 +1,16 @@ +Description: Fix FTBFS with gcc 4.7 due to missing include. +Author: Cyril Brulebois +Bug-Debian: http://bugs.debian.org/667384 + +--- strigi-0.7.7.orig/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp ++++ strigi-0.7.7/strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp +@@ -27,9 +27,7 @@ + #include + #include + +-#if defined(__SUNPRO_CC) + #include +-#endif + + using namespace std; + diff --git a/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff.gz b/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff.gz deleted file mode 100644 index e589819..0000000 Binary files a/deps/strigi/strigi-fix-ftbfs-with-gcc-4.7.diff.gz and /dev/null differ diff --git a/deps/strigi/strigi-fix-jpeg-isospeedratings.diff b/deps/strigi/strigi-fix-jpeg-isospeedratings.diff new file mode 100644 index 0000000..69053d2 --- /dev/null +++ b/deps/strigi/strigi-fix-jpeg-isospeedratings.diff @@ -0,0 +1,18 @@ +diff --git plugins/endplugins/jpegendanalyzer.cpp plugins/endplugins/jpegendanalyzer.cpp +index 78ed36a..0ecab40 100644 +--- a/libstreamanalyzer/plugins/endplugins/jpegendanalyzer.cpp ++++ b/libstreamanalyzer/plugins/endplugins/jpegendanalyzer.cpp +@@ -322,6 +327,11 @@ JpegEndAnalyzer::analyze(AnalysisResult& ar, ::InputStream* in) { + ar.addValue(factory->exifFields.find("Exif.Image.DateTime")->second, uint32_t(mktime(&date))); + } + } ++ else if (i->key() == "Exif.Photo.ISOSpeedRatings") { ++ stringstream st; ++ st << i->toLong(); ++ ar.addValue(factory->exifFields.find("Exif.Photo.ISOSpeedRatings")->second, st.str()); ++ } + else if (i->key() != "Exif.Photo.PixelXDimension" && i->key() != "Exif.Photo.PixelYDimension") { + map::const_iterator f + = factory->exifFields.find(i->key()); + + diff --git a/deps/strigi/strigi-fix-jpeg-isospeedratings.diff.gz b/deps/strigi/strigi-fix-jpeg-isospeedratings.diff.gz deleted file mode 100644 index 18a5581..0000000 Binary files a/deps/strigi/strigi-fix-jpeg-isospeedratings.diff.gz and /dev/null differ diff --git a/deps/strigi/strigi-fix-missing-lucene-lib.diff b/deps/strigi/strigi-fix-missing-lucene-lib.diff new file mode 100644 index 0000000..cfc9d9e --- /dev/null +++ b/deps/strigi/strigi-fix-missing-lucene-lib.diff @@ -0,0 +1,7 @@ +--- a/libstreamanalyzer/plugins/indexers/clucenengindexer/indexdump/CMakeLists.txt 2011-07-26 19:12:39.000000000 +0200 ++++ b/libstreamanalyzer/plugins/indexers/clucenengindexer/indexdump/CMakeLists.txt 2011-12-03 09:52:05.062132856 +0100 +@@ -1,2 +1,2 @@ + add_executable(index2dump indexdump.cpp ../tcharutils.cpp) +-target_link_libraries(index2dump streamanalyzer ${CLUCENE1_LDFLAGS}) ++target_link_libraries(index2dump streamanalyzer ${CLUCENE1_LDFLAGS} clucene-shared) + diff --git a/deps/strigi/strigi-fix-missing-lucene-lib.diff.gz b/deps/strigi/strigi-fix-missing-lucene-lib.diff.gz deleted file mode 100644 index e0be6be..0000000 Binary files a/deps/strigi/strigi-fix-missing-lucene-lib.diff.gz and /dev/null differ diff --git a/deps/strigi/strigi.SlackBuild b/deps/strigi/strigi.SlackBuild index 69c248a..cfbc3da 100755 --- a/deps/strigi/strigi.SlackBuild +++ b/deps/strigi/strigi.SlackBuild @@ -21,25 +21,24 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified 2012, 2014 by Eric Hameleers for ARM port. +# Modified 2012, 2014, 2015 by Eric Hameleers for ARM port. PKGNAM=strigi VERSION=${VERSION:-0.7.8} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:--j7} # Automatically determine the architecture we're building on: -MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; + *) ARCH=$(uname -m) ;; esac + export ARCH fi if [ "$ARCH" = "i486" ]; then @@ -70,13 +69,13 @@ rm -rf $PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 cd $PKGNAM-$VERSION || exit 1 -#zcat $CWD/strigi-fix-ftbfs-with-gcc-4.7.diff.gz |patch -p1 --verbose || exit 1 +#cat $CWD/strigi-fix-ftbfs-with-gcc-4.7.diff |patch -p1 --verbose || exit 1 # Fix a linker DSO error: -zcat $CWD/strigi-fix-missing-lucene-lib.diff.gz |patch -p1 --verbose || exit 1 +cat $CWD/strigi-fix-missing-lucene-lib.diff |patch -p1 --verbose || exit 1 # Fix indexing of jpegs with 'wrong' isoSpeedRatings: -zcat $CWD/strigi-fix-jpeg-isospeedratings.diff.gz |patch -p1 --verbose || exit 1 +cat $CWD/strigi-fix-jpeg-isospeedratings.diff |patch -p1 --verbose || exit 1 # Fix a bug with gcc 4.8: sed -i -e "s/BufferedStream :/STREAMS_EXPORT &/" libstreams/include/strigi/bufferedstream.h diff --git a/deps/updates.SlackBuild b/deps/updates.SlackBuild index a69c7f9..7017fc5 100755 --- a/deps/updates.SlackBuild +++ b/deps/updates.SlackBuild @@ -15,17 +15,32 @@ QTDIR=/usr/lib${LIBDIRSUFFIX}/qt ; export QTDIR ALLDEPS=" \ cmake \ + extra-cmake-modules \ + strigi \ + soprano \ + akonadi \ + attica \ + shared-desktop-ontologies \ + LibRaw \ + eigen3 \ + orc \ OpenAL \ harfbuzz \ + poppler \ + xapian-core \ + libfakekey \ + gstreamer1 \ + gst1-plugins-base \ + gst1-plugins-good \ qt5 \ - phonon \ - qt5-gstreamer \ - phonon-gstreamer \ - strigi \ + qca-qt5 \ akonadi-qt5 \ libdbusmenu-qt5 \ + qt-gstreamer \ + qt-gstreamer1 \ + phonon \ + phonon-gstreamer \ polkit-qt5-1 \ - poppler \ " # Allow for specification of individual packages to be built: diff --git a/deps/xapian-core/slack-desc b/deps/xapian-core/slack-desc new file mode 100644 index 0000000..9505e7b --- /dev/null +++ b/deps/xapian-core/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +xapian-core: xapian-core (Search Engine Library) +xapian-core: +xapian-core: Xapian is an Open Source Probabilistic Information Retrieval +xapian-core: Library. It offers a highly adaptable toolkit that allows +xapian-core: developers to easily add advanced indexing and search facilities +xapian-core: to applications. +xapian-core: +xapian-core: +xapian-core: +xapian-core: xapian home: http://www.xapian.org/ +xapian-core: diff --git a/deps/xapian-core/xapian-core.SlackBuild b/deps/xapian-core/xapian-core.SlackBuild new file mode 100755 index 0000000..c9a8065 --- /dev/null +++ b/deps/xapian-core/xapian-core.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/sh + +# Copyright 2014 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PKGNAM=xapian-core +VERSION=${VERSION:-1.2.19} +BUILD=${BUILD:-1} + +NUMJOBS=${NUMJOBS:--j7} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7lh ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$(uname -m) ;; + esac + export ARCH +fi + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1 +cd $PKGNAM-$VERSION || exit 1 + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --disable-static \ + --build=$TARGET \ + || exit 1 + +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" \ + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS HACKING PLATFORMS README \ + $PKG/usr/doc/$PKGNAM-$VERSION + mv $PKG/usr/doc/$PKGNAM-$VERSION/doc $PKG/usr/doc/$PKGNAM-$VERSION/html + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz + -- cgit v1.2.3