diff options
Diffstat (limited to 'multimedia/kmplayer')
-rw-r--r-- | multimedia/kmplayer/README | 4 | ||||
-rw-r--r-- | multimedia/kmplayer/kmplayer.SlackBuild | 61 | ||||
-rw-r--r-- | multimedia/kmplayer/kmplayer.info | 8 | ||||
-rw-r--r-- | multimedia/kmplayer/slack-desc | 19 |
4 files changed, 92 insertions, 0 deletions
diff --git a/multimedia/kmplayer/README b/multimedia/kmplayer/README new file mode 100644 index 0000000000..1c9df7d764 --- /dev/null +++ b/multimedia/kmplayer/README @@ -0,0 +1,4 @@ +KMPlayer - Media Player for KDE + +Video player plugin for Konqueror and basic +MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE. diff --git a/multimedia/kmplayer/kmplayer.SlackBuild b/multimedia/kmplayer/kmplayer.SlackBuild new file mode 100644 index 0000000000..9636a7eecf --- /dev/null +++ b/multimedia/kmplayer/kmplayer.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for kmplayer + +# Written by core (eroc@linuxmail.org) + +set -e + +PRGNAM=kmplayer +VERSION=0.9.4a +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +KDEPREF=$(kde-config --prefix) || true + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=$KDEPREF \ + --enable-shared=yes \ + --enable-static=no \ + --without-gstreamer + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING COPYING-DOCS COPYING.LIB INSTALL NEWS \ + README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/multimedia/kmplayer/kmplayer.info b/multimedia/kmplayer/kmplayer.info new file mode 100644 index 0000000000..82c77911d5 --- /dev/null +++ b/multimedia/kmplayer/kmplayer.info @@ -0,0 +1,8 @@ +PRGNAM="kmplayer" +VERSION="0.9.4a" +HOMEPAGE="http://kmplayer.kde.org" +DOWNLOAD="http://kmplayer.kde.org/pkgs/kmplayer-0.9.4a.tar.bz2" +MD5SUM="10eeb318a4800e4cfa74957c7a6714da" +MAINTAINER="core" +EMAIL="eroc@linuxmail.org" +APPROVED="rworkman" diff --git a/multimedia/kmplayer/slack-desc b/multimedia/kmplayer/slack-desc new file mode 100644 index 0000000000..8d087362d7 --- /dev/null +++ b/multimedia/kmplayer/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------------------------------------------------------| +kmplayer: KMPlayer (Media Player for KDE) +kmplayer: +kmplayer: Video player plugin for Konqueror and basic +kmplayer: MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE. +kmplayer: +kmplayer: Homepage: http://kmplayer.kde.org +kmplayer: +kmplayer: +kmplayer: +kmplayer: +kmplayer: |