# LilyPond development: lilypond-1.7
# archive=ftp://lilypond.org/pub/LilyPond/v1.7
-# Guile specific mknetrel overrides
+# LilyPond mknetrel overrides
# To use this, do something like:
cat >/dev/null <<EOC
- wget -P/var/tmp ftp://lilypond.org/pub/LilyPond/v1.6/lilypond-1.6.8.tar.gz
+ wget -P/var/tmp ftp://lilypond.org/pub/LilyPond/v1.7/lilypond-1.7.29.tar.gz
rm -rf /home/netrel/src/lilypond-*
mkdir -p /home/netrel/src && cd /home/netrel/src
## TODO: look at pimport
EOC
-
-BUILD=1
# sover=14
patch=$mknetrel_root/patch
if iscygwin; then
true
-else
- uploads=$here/uploads/$base && mkdir -p $uploads
- ##uploads=$here/uploads-development/$base && mkdir -p $uploads
+else
+ uploads=$here/uploads/$base && mkdir -p $uploads/
+ [ "$ABI" = "1.5" ] && uploads=$here/uploads-development/$base && mkdir -p $uploads/
tarstem=$uploads/$package
fi
mv $inst/$prefix/include ./$prefix/include
mkdir -p ./$prefix/lib || exit 1
mv $inst/$prefix/lib/*.a ./$prefix/lib
+ mkdir -p ./$prefix/lib || exit 1
mv $inst/$prefix/lib/*.la ./$prefix/lib
mkdir -p ./$prefix/share || exit 1
mv $inst/$prefix/share/aclocal ./$prefix/share
cd $build || exit 1
- GUILE=1.6.0
+ GUILE=1.6.4
cat > guile-config <<EOF
-#!/bin/sh
[ "\$1" == "--version" ] && echo "guile-config - Guile version $GUILE"
[ "\$1" == "compile" ] && echo "-I$cygwin_prefix/include"
[ "\$1" == "link" ] && echo "-L$cygwin_prefix/lib -lguile"
exit 0
EOF
-
chmod 755 guile-config
PATH=$(pwd):$PATH
##opt='-O2 -g' LDFLAGS='"$cygwin_prefix/bin/libpython2.2.dll"
- rm -f config.cache
+ rm -f config.cache
}
postconfig () {
# Configure for build, for generating doc
rm -f config.cache
+ export HOST_CC=gcc
+ export HOST_CXX=g++
+ if [ "$ABI" != "1.5" ]; then
+ HOST_CC=gcc-2.95
+ HOST_CXX=g++-2.95
+ (cd $src && ln -s GNUmakefile.in GNUmakefile)
+ fi
(PATH="$old_path" \
PATH="$HOME/usr/pkg/guile-1.6.0/bin:$PATH" \
CFLAGS="-O2 -g" \
+ CC=$HOST_CC \
+ CXX=$HOST_CXX \
$src/configure --prefix=/usr --enable-config=for-build)
}
# Build for build, generating doc
cd $build || exit 1
- # ugh, footify fix
- cd $src && ln -s GNUmakefile.in GNUmakefile
-
- cd $build || exit 1
- # Ugh. Fixed in 1.6.8CVS and 1.7.13CVS.
- # PATH=/bin:/usr/bin:$PATH make DO_O_DEP="echo NO DEPS;" conf=for-build all doc html-doc || exit 1
- PATH=/bin:/usr/bin:$PATH make conf=for-build all doc html-doc || exit 1
+ #PATH=/bin:/usr/bin:$PATH make conf=for-build all doc html-doc || exit 1
+ PATH=/bin:/usr/bin:$PATH make conf=for-build all doc web || exit 1
for i in $(find . -path "out-for-build/*.1"); do
cp -pv $i $(dirname $(dirname $i))/$(basename $i)
done
cd $build || exit 1
docdir=$prefix/share/doc/$base-$ver
- make conf=for-build docdir=$inst-doc/$docdir install-html-doc
+ #make conf=for-build docdir=$inst-doc/$docdir install-html-doc
+ make conf=for-build webdir=$inst-doc/$docdir web-install
## copy READMEs etc