diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/aacgain/README | 6 | ||||
-rw-r--r-- | audio/aacgain/aacgain.SlackBuild | 164 | ||||
-rw-r--r-- | audio/aacgain/aacgain.info | 16 | ||||
-rw-r--r-- | audio/aacgain/slack-desc | 19 |
4 files changed, 205 insertions, 0 deletions
diff --git a/audio/aacgain/README b/audio/aacgain/README new file mode 100644 index 0000000000..a745feb975 --- /dev/null +++ b/audio/aacgain/README @@ -0,0 +1,6 @@ +Aacgain enables you to adjust the volume of your files using the +replaygain-algorithm. This way only tags are written to your files, +they don't get modified itself. + +Via these tags, some audio-players are able to change the volume of +each song, so that they're all played at the same volume. diff --git a/audio/aacgain/aacgain.SlackBuild b/audio/aacgain/aacgain.SlackBuild new file mode 100644 index 0000000000..4f0896144e --- /dev/null +++ b/audio/aacgain/aacgain.SlackBuild @@ -0,0 +1,164 @@ +#!/bin/sh + +# Slackware build script for aacgain + +# Copyright 2009-2010 Heinz Wiesinger, Amsterdam, The Netherlands +# 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=aacgain +VERSION=1.9 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +mkdir -p $PRGNAM +cd $PRGNAM + +#unpack mp3gain +rm -rf mp3gain +mkdir -p mp3gain +cd mp3gain + unzip $CWD/mp3gain-1_5_2-src.zip + chown -R root:root . + chmod -R u+w,go+r-w,a-s . +cd - + +#unpack faad2 +rm -rf faad2 +tar xvf $CWD/faad2-2.7.tar.bz2 +mv faad2-2.7 faad2 +cd faad2 + chown -R root:root . + chmod -R u+w,go+r-w,a-s . +cd - + +#unpack mp4v2 +rm -rf mp4v2 +tar xvf $CWD/mp4v2-trunk-r355.tar.bz2 +mv mp4v2-trunk-r355 mp4v2 +cd mp4v2 + chown -R root:root . + chmod -R u+w,go+r-w,a-s . +cd - + +#unpack aacgain +rm -rf $PRGNAM +tar xvf $CWD/${PRGNAM}_1_9.tar.bz2 +cd $PRGNAM +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +patch -p0 -i mp4v2.patch + +cd ../mp4v2 + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --build=$ARCH-slackware-linux + +make libmp4v2.la + +cd ../faad2 + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --build=$ARCH-slackware-linux + +cd libfaad + +make + +cd ../../aacgain/linux + +# Fix DOS line endings +sed -i 's/.$//' configure.ac +sed -i 's/.$//' prepare.sh + +./prepare.sh + +cd ../../ + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --build=$ARCH-slackware-linux + +make + +mkdir -p $PKG/usr/bin +install -m 755 aacgain/aacgain $PKG/usr/bin/ + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{faad2,mp3gain,mp4v2} +cp -a aacgain/COPYING aacgain/README aacgain/linux/README.linux \ + $PKG/usr/doc/$PRGNAM-$VERSION +cp -a faad2/AUTHORS faad2/ChangeLog faad2/COPYING faad2/NEWS \ + faad2/README* faad2/TODO $PKG/usr/doc/$PRGNAM-$VERSION/faad2 +cp -a mp3gain/lgpl.txt $PKG/usr/doc/$PRGNAM-$VERSION/mp3gain +cp -a mp4v2/COPYING mp4v2/INSTALL mp4v2/README \ + $PKG/usr/doc/$PRGNAM-$VERSION/mp4v2 +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.${PKGTYPE:-tgz} diff --git a/audio/aacgain/aacgain.info b/audio/aacgain/aacgain.info new file mode 100644 index 0000000000..092979b0e6 --- /dev/null +++ b/audio/aacgain/aacgain.info @@ -0,0 +1,16 @@ +PRGNAM="aacgain" +VERSION="1.9" +HOMEPAGE="http://altosdesign.com/aacgain/" +DOWNLOAD="http://altosdesign.com/aacgain/aacgain_1_9.tar.bz2 \ + http://downloads.sourceforge.net/mp3gain/mp3gain-1_5_2-src.zip \ + http://downloads.sourceforge.net/faac/faad2-2.7.tar.bz2 \ + http://mp4v2.googlecode.com/files/mp4v2-trunk-r355.tar.bz2" +MD5SUM="d5f351b713cccb6eba6dd5f5746941cd \ + d888563538ec863eeea8afc8207b2739 \ + 4c332fa23febc0e4648064685a3d4332 \ + 38a753e936df5ef4c2f7de3d16f440f6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Heinz Wiesinger" +EMAIL="pprkut@liwjatan.at" +APPROVED="Erik Hanson" diff --git a/audio/aacgain/slack-desc b/audio/aacgain/slack-desc new file mode 100644 index 0000000000..82b0f0334f --- /dev/null +++ b/audio/aacgain/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-----------------------------------------------------| +aacgain: aacgain (Adjust volume gain for mp3/aac) +aacgain: +aacgain: Aacgain enables you to adjust the volume of your files using the +aacgain: replaygain-algorithm. This way only tags are written to your files; +aacgain: they don't get modified themselves. +aacgain: Via these tags, some audio-players are able to change the volume of +aacgain: each song, so that they're all played at the same volume. +aacgain: +aacgain: Homepage: http://altosdesign.com/aacgain/ +aacgain: +aacgain: |