spf_template gnu &&
spf_url home  'http://lilypond.org/' &&
prj_u2 prj_capture pkg_maj_min \
  prj_sedarg1 's/^\([^.]*\.[^.]*\).*/\1/' "${spf_version?}" &&
spf_url watch     "http://download.linuxaudio.org/lilypond/sources/v${pkg_maj_min?}/" &&
spf_url watch_add "http://download.linuxaudio.org/lilypond/sources/" &&
spf_url src       "http://download.linuxaudio.org/lilypond/sources/v${pkg_maj_min?}/lilypond-${spf_version?}.tar.gz" &&
spf_depend libtool &&
case ${spf_version?} in
  2.?.*|2.1[01].*|2.12.[01])
    spf_depend guile versions '1.8.[012345]';;
  2.12.3)
    spf_depend guile versions '1.*';;
  *)
    spf_depend guile;;
esac &&
#spf_depend texinfo &&
case ${spf_version?} in
  2.?.*|2.1[01].*|2.12.[0123])
    spf_depend python flags include when runtime versions '2.*';;
  *)
    spf_depend python flags include when runtime;;
esac &&
#spf_depend gettext &&
spf_depend flex flags include &&
#spf_depend perl &&
#spf_depend bison &&
spf_depend freetype &&
spf_depend fontconfig &&
spf_depend glib &&
spf_depend pango &&
spf_depend gmp &&
spf_depend zlib &&
spf_depend ghostscript-fonts-std flags none when runtime &&
# needed only at runtime
spf_depend mftrace   flags none when runtime &&
spf_depend fontforge flags none when runtime &&
#spf_depend ghostscript flags none when runtime &&
spf_args configure \
  --with-ncsb-dir="${spf_path_conf?}"/ghostscript-fonts-std/fonts &&
# --with-python-include=DIR location of the python include dir
# --with-python-lib=NAME    name of the python lib
spf_template_gnu_do_before_configure() {
  prj_unset LILYPOND_DATADIR
#  prj_x2 prj_set HOME "${TMPDIR?}" &&
#  case ${spf_version?} in
#    2.10.25)
#      spf_args_cxx="${spf_args_cpp?} ${spf_args_cc?} ${spf_args_cxx?}" &&
#      prj_x2 prj_set CPP    "gcc -E ${spf_args_cpp?}" &&
#      prj_x2 prj_set CXXCPP "g++ -E ${spf_args_cpp?}" &&
#      prj_sedfile configure 's:\$CXX -E conftest:eval \$ac_cpp conftest:';;
#    2.11.62)
#      prj_x2 prj_prepend GUILE_LOAD_PATH "${spf_path_src?}"/scm;;
#    *) :;;
#  esac
} &&
#spf_template_gnu_do_check() {
#  make check tests
#} &&
spf_tested_version 2.12.3 &&
spf_tested_version 2.11.65

