2002-07-18 Jan Nieuwenhuizen <janneke@gnu.org>
+ * aclocal.m4: Regenerate.
+
+ * stepmake/aclocal.m4: Add --with-kpathsea-include,
+ --with-kpathsea-lib options.
+
* scripts/mup2ly.py: Cut-n-paste include missing lilylib.
* stepmake/stepmake/compile-vars.make:
[debug_b=$enableval])
AC_ARG_ENABLE(optimising,
- [ --enable-optimising compile with optimising. Default: on],
+ [ --enable-optimising compile with optimising. Default: on],
[optimise_b=$enableval])
AC_ARG_ENABLE(profiling,
STEPMAKE_DATADIR
])
-
+
AC_DEFUN(STEPMAKE_KPATHSEA, [
-
+
+ AC_ARG_WITH(kpathsea-include,
+ [ --with-kpathsea-include=DIR
+ location of the kpathsea include dir],[
+ if test "$withval" = "yes" -o "$withval" = "no"; then
+ AC_MSG_WARN(Usage: --with-kpathsea-include=includedir)
+ else
+ CPPFLAGS="$CPPFLAGS -I${withval}"
+ fi
+ ])
+
+ AC_ARG_WITH(kpathsea-lib,
+ [ --with-kpathsea-lib=DIR location of the kpathsea lib dir],[
+ if test "$withval" = "yes" -o "$withval" = "no"; then
+ AC_MSG_WARN(Usage: --with-kpathsea-lib=libdir)
+ else
+ LDFLAGS="$LDFLAGS -L${withval}"
+ fi
+ ])
+
kpathsea_b=yes
#FIXME --with-xxx is meant for specifying a PATH too,
# so this should read: --enable-kpathsea,
if test "$kpathsea_b" != "no"; then
AC_HAVE_HEADERS(kpathsea/kpathsea.h)
AC_CHECK_LIB(kpathsea, kpse_find_file)
- AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
+ AC_CHECK_FUNCS(kpse_find_file,,kpathsea_b=no)
+ if test "$kpathsea_b" = "no"; then
+ warn='kpathsea (libkpathsea-dev or kpathsea-devel package)
+ Else, please specify the location of your kpathsea using
+ --with-kpathea-include and --with-kpathsea-lib options. You should
+ install kpathsea; see INSTALL.txt. Rerun ./configure
+ --without-kpathsea only if kpathsea is not available for your
+ platform.'
+ STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
+ fi
fi
AC_MSG_CHECKING(whether to use kpathsea)
if test "$kpathsea_b" != no; then
sdesc: "A program for printing sheet music"
category: Publishing
-requires: ash bash libguile14 libiconv2 libintl2 python tetex-beta texmf-tiny
-#suggests: emacs gsview lilypond-doc rxvt xdvi texmf-base
+requires: bash libguile14 libiconv2 libintl2 libkpathsea3 python tetex-bin tetex-base
+#suggests: emacs gsview lilypond-doc rxvt XFree86
ldesc: "A program for printing sheet music.
LilyPond prints beautiful sheet music. It produces music notation
from a description file. It excels at typesetting classical music, but
# sover=14
patch=$mknetrel_root/patch
-iscygwin || (uploads=$here/uploads/$base && mkdir -p $uploads)
+if iscygwin; then
+ true
+else
+ uploads=$here/uploads/$base && mkdir -p $uploads
+ tarstem=$uploads/$package
+fi
sub_packages="doc"
old_path=$PATH
# Patching and configuring
#
+presplit () { true; }
+
# Maybe add to mknetrel or pimport.
dopatchsrc () {
cd $src
true
}
+prebuild () {
+ for i in $sub_packages; do
+ rm -rf $inst-$i
+ mkdir -p $inst-$i || exit 1
+ done
+}
+
domkdist() {
#
# Fix up installation slightly
for i in $sub_packages; do
subname=$(${i}_name)
- rm -rf $inst-$i
- mkdir -p $inst-$i || exit 1
- cd $inst-$i
+ cd $inst-$i || exit 1
${i}_split || exit 1
done
}
prebuild () {
+ for i in $sub_packages; do
+ rm -rf $inst-$i
+ mkdir -p $inst-$i || exit 1
+ done
+
# Build for build, generating doc
cd $build || exit 1
done
addmakeflags LDFLAGS="$cygwin_prefix/bin/libpython2.2.dll"
+
}
postinstall () {
mkdir -p $inst-doc/$prefix
cd $build || exit 1
- make conf=for-build prefix=$inst-doc/$prefix install-html-doc
+ docdir=$prefix/share/doc/$base-$ver
+
+ make conf=for-build docdir=$inst-doc/$docdir install-html-doc
## copy READMEs etc
cd $src || exit 1
- docdir=$prefix/share/doc/$name-$version
mkdir -p $inst/$docdir
find . -maxdepth 1 -type f -exec cp -pv \{\} $inst/$docdir \;
## Windows readmes
- cd Documentation/windows || exit 1
+ cd cygwin || exit 1
cp -p README $inst/$docdir/README.Cygwin
cp -p changelog $inst/$docdir/changelog.Cygwin
mkdir -p $inst/$prefix/doc/Cygwin
- cp -p README $inst/$prefix/doc/Cygwin/$cygpack.README
+ cp -p README $inst/$prefix/doc/Cygwin/$base-$ver.README
## copy examples
cd $src || exit 1
cp -prv input $inst/$docdir
- cd $inst-doc/$prefix/share/doc/$name-$version &&
+ cd $inst-doc/$prefix/share/doc/$base-$ver &&
ln -s $(find html/Documentation -name '*.ps.gz') .
## Cygwin doesn't adhere to FHS (and why should they?)
- cd $inst/$prefix && mv share/doc .
- cd $inst-doc/$prefix && mv share/doc .
+ cd $inst/$prefix/share && tar cf - doc | (cd ..; tar xf -) && rm -rf doc
+ cd $inst-doc/$prefix/share && tar cf - doc | (cd ..; tar xf -) && rm -rf doc
}
#presplit () {
-# docdir=$prefix/share/doc/$name-$version
+# docdir=$prefix/share/doc/$base-$ver
# mkdir -p $inst-doc/$docdir || exit 1
#}
[debug_b=$enableval])
AC_ARG_ENABLE(optimising,
- [ --enable-optimising compile with optimising. Default: on],
+ [ --enable-optimising compile with optimising. Default: on],
[optimise_b=$enableval])
AC_ARG_ENABLE(profiling,
STEPMAKE_DATADIR
])
-
+
AC_DEFUN(STEPMAKE_KPATHSEA, [
-
+
+ AC_ARG_WITH(kpathsea-include,
+ [ --with-kpathsea-include=DIR
+ location of the kpathsea include dir],[
+ if test "$withval" = "yes" -o "$withval" = "no"; then
+ AC_MSG_WARN(Usage: --with-kpathsea-include=includedir)
+ else
+ CPPFLAGS="$CPPFLAGS -I${withval}"
+ fi
+ ])
+
+ AC_ARG_WITH(kpathsea-lib,
+ [ --with-kpathsea-lib=DIR location of the kpathsea lib dir],[
+ if test "$withval" = "yes" -o "$withval" = "no"; then
+ AC_MSG_WARN(Usage: --with-kpathsea-lib=libdir)
+ else
+ LDFLAGS="$LDFLAGS -L${withval}"
+ fi
+ ])
+
kpathsea_b=yes
#FIXME --with-xxx is meant for specifying a PATH too,
# so this should read: --enable-kpathsea,
if test "$kpathsea_b" != "no"; then
AC_HAVE_HEADERS(kpathsea/kpathsea.h)
AC_CHECK_LIB(kpathsea, kpse_find_file)
- AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
+ AC_CHECK_FUNCS(kpse_find_file,,kpathsea_b=no)
+ if test "$kpathsea_b" = "no"; then
+ warn='kpathsea (libkpathsea-dev or kpathsea-devel package)
+ Else, please specify the location of your kpathsea using
+ --with-kpathea-include and --with-kpathsea-lib options. You should
+ install kpathsea; see INSTALL.txt. Rerun ./configure
+ --without-kpathsea only if kpathsea is not available for your
+ platform.'
+ STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
+ fi
fi
AC_MSG_CHECKING(whether to use kpathsea)
if test "$kpathsea_b" != no; then