diff options
author | Eric Hameleers <alien@slackware.com> | 2014-05-08 14:49:21 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2014-05-08 14:49:21 +0000 |
commit | f09b2ceeba2e311897ee843121b56ecdcabea5c5 (patch) | |
tree | 8a8d9c488601f1bc33e9cad659efd102f9c8ea92 /qmmp/build/qmmp.SlackBuild | |
parent | e5ea67657a81a3a9eab08094850e98395510dddd (diff) | |
download | asb-f09b2ceeba2e311897ee843121b56ecdcabea5c5.tar.gz asb-f09b2ceeba2e311897ee843121b56ecdcabea5c5.tar.xz |
Updated to 0.7.6
Diffstat (limited to 'qmmp/build/qmmp.SlackBuild')
-rwxr-xr-x | qmmp/build/qmmp.SlackBuild | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/qmmp/build/qmmp.SlackBuild b/qmmp/build/qmmp.SlackBuild index 0e921bf8..c58193c1 100755 --- a/qmmp/build/qmmp.SlackBuild +++ b/qmmp/build/qmmp.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2010, 2011 Eric Hameleers, Eindhoven, NL +# Copyright 2010, 2011, 2014 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -28,7 +28,7 @@ # For: qmmp # Descr: audio-player with a Qt interface # URL: http://qmmp.ylsoftware.com/index_en.php -# Needs: faad2 (AAC playback) +# Needs: faad2 # Changelog: # 0.4.0-1: 30/May/2010 by Eric Hameleers <alien@slackware.com> # * Initial build. @@ -39,6 +39,8 @@ # that has been added to Slackware 13.37. # 0.5.1-1: 27/jun/2011 by Eric Hameleers <alien@slackware.com> # * Update. +# 0.7.6-1: 08/may/2014 by Eric Hameleers <alien@slackware.com> +# * Update. # # Run 'sh qmmp.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -46,10 +48,8 @@ # # ----------------------------------------------------------------------------- -# Set initial variables: - PRGNAM=qmmp -VERSION=${VERSION:-0.5.1} +VERSION=${VERSION:-0.7.6} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -72,12 +72,15 @@ SRCURL="http://qmmp.ylsoftware.com/files/${PRGNAM}-${VERSION}.tar.bz2" ## # Automatically determine the architecture we're building on: +MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + armv6hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; + *) export ARCH=$MARCH ;; esac fi @@ -88,9 +91,15 @@ case "$ARCH" in x86_64) SLKCFLAGS="-O2 -fPIC" SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" ;; - *) SLKCFLAGS="-O2" + armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; + armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; + *) SLKCFLAGS=${SLKCFLAGS:-"O2"} + SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} + ;; esac # Exit the script on errors: @@ -149,7 +158,7 @@ echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE} cd ${PRGNAM}-${VERSION} chown -R root:root . -chmod -R u+w,go+r-w,a+X-s . +chmod -R u+w,go+r-w,a+rX-st . echo Building ... mkdir -p build @@ -207,12 +216,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc -if [ -f $SRCDIR/doinst.sh ]; then - cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh -fi -if [ -f $SRCDIR/slack-required ]; then - cat $SRCDIR/slack-required > $PKG/install/slack-required -fi +cat $SRCDIR/slack-required > $PKG/install/slack-required # Build the package: cd $PKG @@ -221,9 +225,7 @@ cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}.md5 cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt -if [ -f $PKG/install/slack-required ]; then - cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.dep -fi +cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.dep # Restore the original umask: umask ${_UMASK_} |