audio/mp4tools: Updated for version 3.5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2017-10-29 10:41:19 +07:00 committed by Willy Sudiarto Raharjo
parent 1a40cfcb12
commit cddb8e9f93
7 changed files with 106 additions and 31 deletions

View file

@ -1,14 +1,12 @@
mp4tools (Suite of scripts to encode Audio and Video in many formats)
mp4tools (A free cross-platform tool to manipulate MP4 files)
mp4tools are a set of scripts to encode audio and video in many
formats. It has presets for most common embedded devices like
Sony PSP, Apple iPod, Nokia Phones, so you haven't to go in the
jungle of encoding options, firmware bugs or unsupported
configurations.
MP4Tools is a collection of cross-platform free tools to manipulate
MP4 files.
Hot functions are:
It contains following applications:
* support for embedded devices;
* direct rip from DVD;
* autocrop of black borders to have a bigger visual;
* audio peak normalization to make audio sound louder.
* MP4Joiner is a free application that allows join multiple MP4
files into one.
* MP4Splitter is a free application that allows split a MP4 file in
multiple files.

View file

@ -0,0 +1,16 @@
[Desktop Entry]
Name=MP4Joiner
Comment=Join multiple MP4 files.
Exec=mp4joiner
Icon=mp4joiner
MimeType=
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Audio;AudioVideoEditing;AudioVideo;Video;

View file

@ -0,0 +1,16 @@
[Desktop Entry]
Name=MP4Splitter
Comment=Split MP4 files.
Exec=mp4splitter
Icon=mp4splitter
MimeType=
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Audio;AudioVideoEditing;AudioVideo;Video;

View file

@ -0,0 +1,27 @@
--- configure.orig 2017-03-20 21:25:19.000000000 +0100
+++ configure 2017-09-01 12:40:14.860865091 +0200
@@ -4601,18 +4601,18 @@
WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
wx_config_major_version=`echo $WX_VERSION | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
wx_config_minor_version=`echo $WX_VERSION | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
wx_config_micro_version=`echo $WX_VERSION | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
wx_requested_major_version=`echo $min_wx_version | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
wx_requested_minor_version=`echo $min_wx_version | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
wx_requested_micro_version=`echo $min_wx_version | \
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
wx_ver_ok=""

View file

@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mp4tools
VERSION=${VERSION:-0.6.8}
BUILD=${BUILD:-2}
VERSION=${VERSION:-3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -54,14 +54,16 @@ else
LIBDIRSUFFIX=""
fi
SRCNAM=${SRCNAM:-MP4Tools}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
mv $PRGNAM $PRGNAM-$VERSION
tar xvf $CWD/${SRCNAM}-${VERSION}.tar.bz2
mv $SRCNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -70,16 +72,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -Np0 < $CWD/audiorip_fix_mplayer.diff || true
patch -Np0 < $CWD/mp4tools-wx-config.patch || true
mkdir -p $PKG/usr/bin
make INSTDIR=$PKG/usr
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
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
install -Dm644 $CWD/mp4joiner.desktop $PKG/usr/share/applications/mp4joiner.desktop
install -Dm644 $CWD/mp4splitter.desktop $PKG/usr/share/applications/mp4splitter.desktop
install -Dm644 resources/mp4joiner.png $PKG/usr/share/pixmaps/mp4joiner.png
install -Dm644 resources/mp4splitter.png $PKG/usr/share/pixmaps/mp4splitter.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYRIGHT README $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="mp4tools"
VERSION="0.6.8"
HOMEPAGE="http://teknoraver.net/software/mp4tools/"
DOWNLOAD="http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/m/mp4tools/mp4tools_0.6.8.tar.gz"
MD5SUM="21ecc4d840b4f611d41126d84505645a"
VERSION="3.5"
HOMEPAGE="http://www.mp4joiner.org"
DOWNLOAD="http://app.oldfoss.com:81/download/MP4Joiner/MP4Tools-3.5.tar.bz2"
MD5SUM="3669260ed488b56254df2dd1bc602bbe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="opencore-amr gpac faac aacplusenc nero-aac"
REQUIRES="opencore-amr gpac faac aacplusenc nero-aac wxGTK wxsvg"
MAINTAINER="Edinaldo P. Silva"
EMAIL="edps.mundognu@gmail.com"

View file

@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
mp4tools: mp4tools (Suite of scripts to encode Audio and Video in many formats)
mp4tools: mp4tools (A free cross-platform tool to manipulate MP4 files)
mp4tools:
mp4tools: MP4Tools is a collection of cross-platform free tools to manipulate
mp4tools: MP4 files.
mp4tools:
mp4tools: Home Page: http://www.mp4joiner.org
mp4tools:
mp4tools:
mp4tools: mp4tools are a set of scripts to encode audio and video in many
mp4tools: formats. It has presets for most common embedded devices like
mp4tools: Sony PSP, Apple iPod, Nokia Phones, so you haven't to go in the
mp4tools: jungle of encoding options, firmware bugs or unsupported
mp4tools: configurations.
mp4tools:
mp4tools: Home Page: http://teknoraver.net/software/mp4tools/
mp4tools:
mp4tools: