Ticket #19811: lilypond.diff

File lilypond.diff, 3.1 KB (added by blb@…, 12 years ago)

diff to lilypond

  • files/lilypond.in

     
     1#!/bin/sh
     2
     3GUILE_WARN_DEPRECATED="no"
     4LTDL_LIBRARY_PATH="@@PREFIX@@/lib:${LTDL_LIBRARY_PATH}"
     5export GUILE_WARN_DEPRECATED LTDL_LIBRARY_PATH
     6
     7exec @@PREFIX@@/libexec/lilypond-bin "$@"
     8
  • Portfile

     
    44PortSystem          1.0
    55
    66name                lilypond
    7 version             2.12.1
     7version             2.12.2
    88set branch          [join [lrange [split ${version} .] 0 1] .]
    99categories          textproc
    1010maintainers         snc openmaintainer
     
    1818homepage            http://lilypond.org/
    1919platforms           darwin
    2020master_sites        http://download.linuxaudio.org/lilypond/sources/v${branch}/
    21 checksums           md5 487d62b20d14faea3edc7561dece3ff2 \
    22                     sha1 203bead967f8409dbac00fd835d2a411694f408b \
    23                     rmd160 794c9d8de513ba6e32304883a62b9b368a316030
     21checksums           md5     681dfbecf8a3710d1400cf9488be716b \
     22                    sha1    92afe4ef926d966e7855f64ae93ee762f1fa5178 \
     23                    rmd160  0ef1e1cbceb4fbf69a31b00a030ee40c4280091d
    2424
    2525depends_lib         port:fontforge \
    2626                    port:ghostscript \
     
    3131                    port:flex \
    3232                    port:urw-fonts
    3333
    34 pre-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:${prefix}/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 
    4734configure.args  --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \
    4835    --disable-documentation \
    4936    --disable-gui
     37configure.env       LTDL_LIBRARY_PATH=${prefix}/lib
    5038
     39build.env           LTDL_LIBRARY_PATH=${prefix}/lib
     40
     41destroot.env        LTDL_LIBRARY_PATH=${prefix}/lib
     42post-destroot {
     43    move ${destroot}${prefix}/bin/lilypond \
     44        ${destroot}${prefix}/libexec/lilypond-bin
     45    xinstall -m 755 ${filespath}/lilypond.in ${destroot}${prefix}/bin/lilypond
     46    reinplace "s|@@PREFIX@@|${prefix}|g" ${destroot}${prefix}/bin/lilypond
     47}
     48
    5149variant docs description {Build documentation files} {
    5250    configure.args-delete   --disable-documentation
    5351    configure.args-append   --enable-documentation
     
    5957    configure.args-append   --enable-gui
    6058}
    6159
    62 default_variants    +docs -gui
     60default_variants    +docs
    6361
    6462livecheck.check regex
    6563livecheck.url   [lindex ${master_sites} 0]