diff options
Diffstat (limited to 'multimedia/makemkv/makemkv.SlackBuild')
-rw-r--r-- | multimedia/makemkv/makemkv.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/multimedia/makemkv/makemkv.SlackBuild b/multimedia/makemkv/makemkv.SlackBuild index 1c61f6471b..db4627ad4e 100644 --- a/multimedia/makemkv/makemkv.SlackBuild +++ b/multimedia/makemkv/makemkv.SlackBuild @@ -23,12 +23,10 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=makemkv -VERSION=${VERSION:-1.7.4} +VERSION=${VERSION:-1.7.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=makemkv_v - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -60,9 +58,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP # Build the open source component first... -rm -rf ${SRCNAM}${VERSION}_oss -tar xvf $CWD/${SRCNAM}${VERSION}_oss.tar.gz -cd ${SRCNAM}${VERSION}_oss +rm -rf ${PRGNAM}-oss-${VERSION} +tar xvf $CWD/${PRGNAM}-oss-${VERSION}.tar.gz +cd ${PRGNAM}-oss-${VERSION} chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -76,9 +74,9 @@ make -f makefile.linux install LIBDIR="\${PREFIX}/lib${LIBDIRSUFFIX}" DESTDIR=$P # Now extract/copy the closed source component... cd $TMP -rm -rf ${SRCNAM}${VERSION}_bin -tar xvf $CWD/${SRCNAM}${VERSION}_bin.tar.gz -cd ${SRCNAM}${VERSION}_bin +rm -rf ${PRGNAM}-bin-${VERSION} +tar xvf $CWD/${PRGNAM}-bin-${VERSION}.tar.gz +cd ${PRGNAM}-bin-${VERSION} chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -94,6 +92,17 @@ sed -i "s/^\(install:\).*/\1/" makefile.linux # We will not leave CPU detection up to the makefile here just in case... make -f makefile.linux install ARCH=$ARCHDIR ARCH_OK=1 DESTDIR=$PKG +# Remove the 32-bit mmdtsdec binary on 64-bit systems. The author of MakeMKV +# claims that this will work on 64-bit systems as well -- see here. +# http://www.makemkv.com/dtshd/ +# This is however a 32-bit binary linking to /lib/ld-linux.so.2 which will not +# work on pure Slackware64. makemkvcon may do some clever things to get around +# this on 64-bit systems but right now audio transcoding is crashing even for +# DTS-HD core audio, so I cannot test it. +if [ "$ARCH" = "x86_64" ]; then + rm -f $PKG/usr/bin/mmdtsdec +fi + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |