summaryrefslogtreecommitdiff
path: root/multimedia/mppenc
diff options
context:
space:
mode:
authorAndrew Strong <andrew.david.45@gmail.com>2010-05-11 22:54:35 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:54:35 +0200
commit081ef2af86bb3123af5ff7d4cddfc2f262c2ef1f (patch)
treece516c8aa19fb7e0966f4d43a1b4b3d516a8a067 /multimedia/mppenc
parent323f64acacef8d6483925b251a26e0b15e5e6871 (diff)
downloadslackbuilds-081ef2af86bb3123af5ff7d4cddfc2f262c2ef1f.tar.gz
multimedia/mppenc: Added to 12.1 repository
Diffstat (limited to 'multimedia/mppenc')
-rw-r--r--multimedia/mppenc/README6
-rw-r--r--multimedia/mppenc/mppenc.SlackBuild84
-rw-r--r--multimedia/mppenc/mppenc.info8
-rw-r--r--multimedia/mppenc/slack-desc19
4 files changed, 117 insertions, 0 deletions
diff --git a/multimedia/mppenc/README b/multimedia/mppenc/README
new file mode 100644
index 0000000000..376172867c
--- /dev/null
+++ b/multimedia/mppenc/README
@@ -0,0 +1,6 @@
+The encoder mppenc is a command line tool that produces MPC or
+Musepack files. Musepack is an audio compression format with a strong
+emphasis on high quality. It is based on the MPEG-1 Layer-2 / MP2
+algorithms, but since 1997 it has rapidly developed and vastly
+improved and is now at an advanced stage in which it contains heavily
+optimized and patentless code.
diff --git a/multimedia/mppenc/mppenc.SlackBuild b/multimedia/mppenc/mppenc.SlackBuild
new file mode 100644
index 0000000000..d4750f4ccd
--- /dev/null
+++ b/multimedia/mppenc/mppenc.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for mppenc 1.16
+
+# Copyright 2008-2009 Andrew Strong (http://www.andrews-corner.org)
+# 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.
+
+PRGNAM=mppenc
+VERSION=${VERSION:-1.16}
+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"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+cmake . \
+ -DCMAKE_INSTALL_PREFIX:STRING="/usr" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE"
+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 || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Not much in the way of docs here, best info from running 'mppenc --longhelp'.
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a Changelog INSTALL $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/mppenc/mppenc.info b/multimedia/mppenc/mppenc.info
new file mode 100644
index 0000000000..e25e60f90a
--- /dev/null
+++ b/multimedia/mppenc/mppenc.info
@@ -0,0 +1,8 @@
+PRGNAM="mppenc"
+VERSION="1.16"
+HOMEPAGE="http://www.musepack.net/"
+DOWNLOAD="http://files.musepack.net/source/mppenc-1.16.tar.bz2"
+MD5SUM="f1456141283814efcc012cfa15609bc6"
+MAINTAINER="Andrew Strong"
+EMAIL="andrew.david.45@gmail.com"
+APPROVED="dsomero"
diff --git a/multimedia/mppenc/slack-desc b/multimedia/mppenc/slack-desc
new file mode 100644
index 0000000000..40f4064ccb
--- /dev/null
+++ b/multimedia/mppenc/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------------------------------------------------------|
+mppenc: mppenc (encoder for Musepack)
+mppenc:
+mppenc: The encoder mppenc is a command line tool that produces MPC or
+mppenc: Musepack files. Musepack is an audio compression format with a strong
+mppenc: emphasis on high quality. It is based on the MPEG-1 Layer-2 / MP2
+mppenc: algorithms, but since 1997 it has rapidly developed and vastly
+mppenc: improved and is now at an advanced stage in which it contains heavily
+mppenc: optimized and patentless code.
+mppenc:
+mppenc: Home page: http://www.musepack.net/
+mppenc: