1 | # -*- 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 |
---|
2 | # $Id: Portfile 154235 2016-10-25 03:59:29Z snc@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup compiler_blacklist_versions 1.0 |
---|
6 | |
---|
7 | name lilypond-devel |
---|
8 | set my_name lilypond |
---|
9 | version 2.19.49 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | categories textproc |
---|
12 | maintainers snc openmaintainer |
---|
13 | license GPL-3+ |
---|
14 | description An automated engraving system for typesetting sheet music. |
---|
15 | long_description Lilypond is a unix-based automated engraving system that \ |
---|
16 | generates beautiful sheet music from input files. Lilypond \ |
---|
17 | uses its own input format, .ly, which in many ways is \ |
---|
18 | similar to LaTeX. Lilypond can export sheet music to PDF, \ |
---|
19 | EPS, SVG, and PNG formats, and can also create MIDI files. |
---|
20 | |
---|
21 | homepage http://lilypond.org/ |
---|
22 | conflicts lilypond |
---|
23 | platforms darwin |
---|
24 | master_sites http://download.linuxaudio.org/lilypond/sources/v${branch}/ |
---|
25 | distname ${my_name}-${version} |
---|
26 | checksums rmd160 b234365212c29ecf6990d2871eb2029d8b89d663 \ |
---|
27 | sha256 cd190de273cfef61a76c7dec74700b1e8a5d0b44cc98d8a11b58325706c6a3ee |
---|
28 | |
---|
29 | depends_build port:t1utils \ |
---|
30 | port:bison \ |
---|
31 | port:texi2html \ |
---|
32 | port:netpbm \ |
---|
33 | port:pkgconfig \ |
---|
34 | port:flex |
---|
35 | depends_lib port:fontconfig \ |
---|
36 | port:fontforge \ |
---|
37 | port:freetype \ |
---|
38 | port:gettext \ |
---|
39 | path:lib/pkgconfig/glib-2.0.pc:glib2 \ |
---|
40 | port:ghostscript \ |
---|
41 | port:gmp \ |
---|
42 | port:mftrace \ |
---|
43 | port:guile18 \ |
---|
44 | port:texinfo \ |
---|
45 | path:lib/pkgconfig/pango.pc:pango \ |
---|
46 | port:flex \ |
---|
47 | port:t1utils \ |
---|
48 | port:texlive \ |
---|
49 | port:texlive-fonts-recommended \ |
---|
50 | port:texlive-lang-cyrillic \ |
---|
51 | port:texlive-metapost \ |
---|
52 | port:dblatex \ |
---|
53 | port:libtool \ |
---|
54 | port:python27 |
---|
55 | |
---|
56 | configure.python ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 |
---|
57 | |
---|
58 | patchfiles patch-scripts-build-mf2pt1.pl.diff |
---|
59 | post-patch { |
---|
60 | reinplace s|__vector|lily_vector|g ${worksrcpath}/flower/include/std-vector.hh |
---|
61 | |
---|
62 | # Use guile18 header files |
---|
63 | reinplace s|libguile\.h|libguile18.h|g ${worksrcpath}/configure \ |
---|
64 | ${worksrcpath}/lily/include/lily-guile.hh |
---|
65 | |
---|
66 | # help fontforge date calculation |
---|
67 | reinplace s|20110222|2011-02-22|g ${worksrcpath}/configure |
---|
68 | } |
---|
69 | |
---|
70 | # https://lists.gnu.org/archive/html/bug-lilypond/2016-07/msg00071.html |
---|
71 | # blacklist any clang compiler and any old gcc (a better expression is needed) |
---|
72 | compiler.blacklist *clang* *llvm-gcc* *apple-gcc* gcc gcc-3.3 gcc-4.0 gcc-4.2 |
---|
73 | compiler.whitelist macports-gcc-6 macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 |
---|
74 | |
---|
75 | configure.args-append --with-texgyre-dir=${prefix}/share/texmf-texlive/fonts/opentype/public/tex-gyre \ |
---|
76 | --enable-documentation |
---|
77 | configure.env LTDL_LIBRARY_PATH=${prefix}/lib \ |
---|
78 | PYTHON_CONFIG=${configure.python}-config \ |
---|
79 | GUILE=${prefix}/bin/guile18 \ |
---|
80 | GUILE_CONFIG=${prefix}/bin/guile18-config \ |
---|
81 | GUILE_TOOLS=${prefix}/bin/guile18-tools |
---|
82 | |
---|
83 | build.env LTDL_LIBRARY_PATH=${prefix}/lib |
---|
84 | |
---|
85 | destroot.env LTDL_LIBRARY_PATH=${prefix}/lib |
---|
86 | post-destroot { |
---|
87 | move ${destroot}${prefix}/bin/lilypond \ |
---|
88 | ${destroot}${prefix}/libexec/lilypond-bin |
---|
89 | xinstall -m 755 ${filespath}/lilypond.in ${destroot}${prefix}/bin/lilypond |
---|
90 | reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/lilypond |
---|
91 | } |
---|
92 | |
---|
93 | livecheck.type regex |
---|
94 | livecheck.url ${homepage}/development.html |
---|
95 | livecheck.regex ${my_name}-(\\d+(\\.\\d+)+) |
---|