# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 143213 2015-12-07 23:17:55Z snc@macports.org $ PortSystem 1.0 name lilypond-devel set my_name lilypond version 2.19.33 set branch [join [lrange [split ${version} .] 0 1] .] categories textproc maintainers snc openmaintainer license GPL-3+ description An automated engraving system for typesetting sheet music. long_description Lilypond is a unix-based automated engraving system that \ generates beautiful sheet music from input files. Lilypond \ uses its own input format, .ly, which in many ways is \ similar to LaTeX. Lilypond can export sheet music to PDF, \ EPS, SVG, and PNG formats, and can also create MIDI files. homepage http://lilypond.org/ conflicts lilypond platforms darwin master_sites http://download.linuxaudio.org/lilypond/sources/v${branch}/ distname ${my_name}-${version} checksums rmd160 11ae0c1f5a210468e4bde838d93beaf44514a2e3 \ sha256 b08394edc286040195ca17f9f39514ddb34a55b396d64954239877e2dd5a9b68 depends_build port:t1utils \ port:bison \ port:texi2html \ port:netpbm \ port:pkgconfig \ port:flex depends_lib port:fontconfig \ port:fontforge \ port:freetype \ port:gettext \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:ghostscript \ port:gmp \ port:mftrace \ port:guile18 \ port:texinfo \ path:lib/pkgconfig/pango.pc:pango \ port:flex \ port:t1utils \ port:texlive \ port:texlive-fonts-recommended \ port:texlive-lang-cyrillic \ port:texlive-metapost \ port:dblatex \ port:libtool \ port:python27 configure.python ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 patchfiles patch-scripts-build-mf2pt1.pl.diff post-patch { reinplace s|__vector|lily_vector|g ${worksrcpath}/flower/include/std-vector.hh # Use guile18 header files reinplace s|libguile\.h|libguile18.h|g ${worksrcpath}/configure \ ${worksrcpath}/lily/include/lily-guile.hh # help fontforge date calculation reinplace s|20110222|2011-02-22|g ${worksrcpath}/configure } configure.args-append --with-texgyre-dir=${prefix}/share/texmf-texlive/fonts/opentype/public/tex-gyre \ --enable-documentation configure.env LTDL_LIBRARY_PATH=${prefix}/lib \ PYTHON_CONFIG=${configure.python}-config \ GUILE=${prefix}/bin/guile18 \ GUILE_CONFIG=${prefix}/bin/guile18-config \ GUILE_TOOLS=${prefix}/bin/guile18-tools build.env LTDL_LIBRARY_PATH=${prefix}/lib destroot.env LTDL_LIBRARY_PATH=${prefix}/lib post-destroot { move ${destroot}${prefix}/bin/lilypond \ ${destroot}${prefix}/libexec/lilypond-bin xinstall -m 755 ${filespath}/lilypond.in ${destroot}${prefix}/bin/lilypond reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/lilypond } livecheck.type regex livecheck.url ${homepage}/development.html livecheck.regex ${my_name}-(\\d+(\\.\\d+)+)