Browse Source

ap/lilypond: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
58b29f1437
  1. 14
      ap/lilypond/lilypond.SlackBuild

14
ap/lilypond/lilypond.SlackBuild

@ -35,15 +35,16 @@ WGET=${WGET:-http://lilypond.org/download/sources/v2.12/$ARCHIVE}
WGETDOC=${WGETDOC:-http://lilypond.org/download/binaries/documentation/$ARCHDOC}
# Build infos
NAMETGZ=${NAMETGZ:-lilypond}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-lilypond}
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
@ -59,12 +60,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"
@ -93,6 +96,7 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--infodir=/usr/info \
--disable-debugging
@ -100,7 +104,7 @@ make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Compress man and info pages
@ -133,7 +137,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