Browse Source

ap/timidity: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
bcf9803f90
  1. 15
      ap/timidity/timidity.SlackBuild

15
ap/timidity/timidity.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009 Damien Goutte-Gattat
# Copyright (C) 2008-2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -36,15 +36,16 @@ PATCHSET=${PATCHSET:-freepats-20060219.tar.bz2}
PATCHSET_WGET=${PATCHSET_WGET:-http://freepats.zenvoid.org/$PATCHSET}
# Build infos
NAMETGZ=${NAMETGZ:-timidity}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-timidity}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -60,12 +61,14 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -95,6 +98,8 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--with-module-dir=/usr/lib$LIBDIRSUFFIX/timidity \
--disable-dependency-tracking \
--enable-audio=alsa,jack,vorbis \
--enable-interface=alsaseq \
@ -130,7 +135,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save