|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2009,2010,2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2009,2010,2011,2012 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# ispermitted provided that the following conditions are met: |
|
|
|
@ -28,10 +28,10 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-lilypond} |
|
|
|
|
VERSION=${VERSION:-2.14.2} |
|
|
|
|
VERSION=${VERSION:-2.16.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
ARCHDOC=${ARCHDOC:-$NAMESRC-$VERSION-1.documentation.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://lilypond.org/download/sources/v2.14/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-http://lilypond.org/download/sources/v2.16/$ARCHIVE} |
|
|
|
|
WGETDOC=${WGETDOC:-http://lilypond.org/download/binaries/documentation/$ARCHDOC} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
@ -92,16 +92,19 @@ cd $TMP
|
|
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
|
cd $NAME |
|
|
|
|
mkdir build && cd build |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
./configure \ |
|
|
|
|
../configure \ |
|
|
|
|
--prefix=/usr \ |
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--mandir=/usr/man \ |
|
|
|
|
--infodir=/usr/info \ |
|
|
|
|
--disable-debugging |
|
|
|
|
--disable-debugging \ |
|
|
|
|
--with-ncsb-dir=/usr/share/fonts/Type1 |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
cd .. |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
@ -122,7 +125,7 @@ install -m 644 AUTHORS.txt COPYING{,.FDL} DEDICATION HACKING INSTALL.txt \
|
|
|
|
|
# the pre-built documentation. |
|
|
|
|
( |
|
|
|
|
tar xf $CWD/$ARCHDOC |
|
|
|
|
cd share/doc/lilypond/html/offline-root/Documentation |
|
|
|
|
cd share/doc/lilypond/html/Documentation |
|
|
|
|
# Install only English PDF docs |
|
|
|
|
find . -maxdepth 1 -regex './[^.]+\.pdf' -exec cp {} $PKG/usr/doc/$NAME/manuals \; |
|
|
|
|
) |
|
|
|
|