source: trunk/dports/textproc/lilypond-devel/Portfile

Last change on this file was 154235, checked in by snc@…, 11 months ago

lilypond-devel: update to 2.19.49

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
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 ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6
7name                lilypond-devel
8set my_name         lilypond
9version             2.19.49
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          textproc
12maintainers         snc openmaintainer
13license             GPL-3+
14description         An automated engraving system for typesetting sheet music.
15long_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
21homepage            http://lilypond.org/
22conflicts           lilypond
23platforms           darwin
24master_sites        http://download.linuxaudio.org/lilypond/sources/v${branch}/
25distname            ${my_name}-${version}
26checksums           rmd160  b234365212c29ecf6990d2871eb2029d8b89d663 \
27                    sha256  cd190de273cfef61a76c7dec74700b1e8a5d0b44cc98d8a11b58325706c6a3ee
28
29depends_build       port:t1utils \
30                    port:bison \
31                    port:texi2html \
32                    port:netpbm \
33                    port:pkgconfig \
34                    port:flex
35depends_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
56configure.python    ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
57
58patchfiles          patch-scripts-build-mf2pt1.pl.diff
59post-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)
72compiler.blacklist *clang* *llvm-gcc* *apple-gcc* gcc gcc-3.3 gcc-4.0 gcc-4.2
73compiler.whitelist macports-gcc-6 macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
74
75configure.args-append  --with-texgyre-dir=${prefix}/share/texmf-texlive/fonts/opentype/public/tex-gyre \
76    --enable-documentation
77configure.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
83build.env           LTDL_LIBRARY_PATH=${prefix}/lib
84
85destroot.env        LTDL_LIBRARY_PATH=${prefix}/lib
86post-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
93livecheck.type  regex
94livecheck.url   ${homepage}/development.html
95livecheck.regex ${my_name}-(\\d+(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.