source: trunk/dports/textproc/lilypond/Portfile @ 51627

Last change on this file since 51627 was 51627, checked in by ryandesign@…, 11 years ago

lilypond: use ${branch} idiom to avoid repeating the branch version number in the master_sites

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 51627 2009-05-29 16:42:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                lilypond
7version             2.12.1
8set branch          [join [lrange [split ${version} .] 0 1] .]
9categories          textproc
10maintainers         snc openmaintainer
11description         An automated engraving system for typesetting sheet music.
12long_description    Lilypond is a unix-based automated engraving system that \
13                    generates beautiful sheet music from input files. Lilypond \
14                    uses its own input format, .ly, which in many ways is \
15                    similar to LaTeX. Lilypond can export sheet music to PDF, \
16                    EPS, SVG, and PNG formats, and can also create MIDI files.
17
18homepage            http://lilypond.org/
19platforms           darwin
20master_sites        http://download.linuxaudio.org/lilypond/sources/v${branch}/
21checksums           md5 487d62b20d14faea3edc7561dece3ff2 \
22                    sha1 203bead967f8409dbac00fd835d2a411694f408b \
23                    rmd160 794c9d8de513ba6e32304883a62b9b368a316030
24
25depends_lib         port:fontforge \
26                    port:ghostscript \
27                    port:mftrace \
28                    port:guile \
29                    port:texinfo \
30                    port:pango \
31                    port:flex \
32                    port:urw-fonts
33
34pre-build {
35    # we need to help the system find the requisite libraries
36    # set the DYLD_LIBRARY_PATH environment variable
37    global env
38    set env(DYLD_LIBRARY_PATH) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/opt/local/lib
39
40            # create symlinks
41    if { [file exists "/usr/lib/libguile-srfi-srfi-1-v-3.so"] == 0 } \
42        { ln -s ${prefix}/lib/libguile-srfi-srfi-1-v-3.so /usr/lib/libguile-srfi-srfi-1-v-3.so }
43    if { [file exists "${prefix}/lib/libguile-srfi-srfi-1-v-3.so"] == 0 } \
44        { ln -s ${prefix}/lib/libguile-srfi-srfi-1-v-3.dylib ${prefix}/lib/libguile-srfi-srfi-1-v-3.so }
45}
46
47configure.args  --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \
48    --disable-documentation \
49    --disable-gui
50
51variant docs description {Build documentation files} {
52    configure.args-delete   --disable-documentation
53    configure.args-append   --enable-documentation
54    depends_lib-append      port:netpbm
55}
56
57variant gui description {Build GNOME GUI (X11)} {
58    configure.args-delete   --disable-gui
59    configure.args-append   --enable-gui
60}
61
62default_variants    +docs -gui
63
64livecheck.check regex
65livecheck.url   http://download.linuxaudio.org/lilypond/sources/v2.12/
66livecheck.regex "${name}-(\\d\\.\\d+\\.\\d)"
Note: See TracBrowser for help on using the repository browser.