diff options
Diffstat (limited to 'source.local/l/phonon')
-rwxr-xr-x | source.local/l/phonon/phonon.SlackBuild | 66 | ||||
-rw-r--r-- | source.local/l/phonon/slack-desc | 10 |
2 files changed, 40 insertions, 36 deletions
diff --git a/source.local/l/phonon/phonon.SlackBuild b/source.local/l/phonon/phonon.SlackBuild index 192473f..8c82a44 100755 --- a/source.local/l/phonon/phonon.SlackBuild +++ b/source.local/l/phonon/phonon.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2008 Robby Workman, Northport, Alabama, USA -# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, 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 @@ -21,42 +21,43 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified 2012 by Eric Hameleers <alien at slackware.com> for ARM port. +# Modified 2010, 2011, 2012 Eric Hameleers, Eindhoven, NL PKGNAM=phonon -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-4.6.0} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:--j6} - -# 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 +NUMJOBS=${NUMJOBS:--j7} -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="" +if [ -e $CWD/machine.conf ]; then + . $CWD/machine.conf ] +elif [ -e /etc/slackbuild/machine.conf ]; then + . /etc/slackbuild/machine.conf ] else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + # Automatically determine the architecture we're building on: + if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + 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" + else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + fi fi CWD=$(pwd) @@ -67,7 +68,7 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -r $PKGNAM-$VERSION -tar xvf $CWD/$PKGNAM-$VERSION.tar.bz2 || exit 1 +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 cd $PKGNAM-$VERSION || exit 1 chown -R root:root . @@ -85,6 +86,9 @@ cd build -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 \ .. make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 diff --git a/source.local/l/phonon/slack-desc b/source.local/l/phonon/slack-desc index a4fbd02..12acecb 100644 --- a/source.local/l/phonon/slack-desc +++ b/source.local/l/phonon/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| phonon: phonon (multimedia framework for KDE4) phonon: -phonon: Phonon is the multimedia framework for KDE4. This package contains -phonon: the xine and gstreamer backends and support files for KDE. The -phonon: Phonon library itself is included with Qt. -phonon: -phonon: +phonon: Phonon is the multimedia API provided by Qt and is the standard +phonon: abstraction for handling multimedia streams within the KDE Software +phonon: Compilation. Phonon provides an API for multimedia using various +phonon: backends (gstreamer, mplayer, xine) to handle the lower level I/O. phonon: +phonon: Homepage: http://phonon.kde.org phonon: phonon: phonon: |