Ticket #19811: lilypond.diff
File lilypond.diff, 3.1 KB (added by blb@…, 15 years ago) |
---|
-
files/lilypond.in
1 #!/bin/sh 2 3 GUILE_WARN_DEPRECATED="no" 4 LTDL_LIBRARY_PATH="@@PREFIX@@/lib:${LTDL_LIBRARY_PATH}" 5 export GUILE_WARN_DEPRECATED LTDL_LIBRARY_PATH 6 7 exec @@PREFIX@@/libexec/lilypond-bin "$@" 8 -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name lilypond 7 version 2.12. 17 version 2.12.2 8 8 set branch [join [lrange [split ${version} .] 0 1] .] 9 9 categories textproc 10 10 maintainers snc openmaintainer … … 18 18 homepage http://lilypond.org/ 19 19 platforms darwin 20 20 master_sites http://download.linuxaudio.org/lilypond/sources/v${branch}/ 21 checksums md5 487d62b20d14faea3edc7561dece3ff2\22 sha1 203bead967f8409dbac00fd835d2a411694f408b\23 rmd160 794c9d8de513ba6e32304883a62b9b368a31603021 checksums md5 681dfbecf8a3710d1400cf9488be716b \ 22 sha1 92afe4ef926d966e7855f64ae93ee762f1fa5178 \ 23 rmd160 0ef1e1cbceb4fbf69a31b00a030ee40c4280091d 24 24 25 25 depends_lib port:fontforge \ 26 26 port:ghostscript \ … … 31 31 port:flex \ 32 32 port:urw-fonts 33 33 34 pre-build {35 # we need to help the system find the requisite libraries36 # set the DYLD_LIBRARY_PATH environment variable37 global env38 set env(DYLD_LIBRARY_PATH) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:${prefix}/lib39 40 # create symlinks41 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 47 34 configure.args --with-ncsb-dir=${prefix}/share/fonts/urw-fonts \ 48 35 --disable-documentation \ 49 36 --disable-gui 37 configure.env LTDL_LIBRARY_PATH=${prefix}/lib 50 38 39 build.env LTDL_LIBRARY_PATH=${prefix}/lib 40 41 destroot.env LTDL_LIBRARY_PATH=${prefix}/lib 42 post-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 51 49 variant docs description {Build documentation files} { 52 50 configure.args-delete --disable-documentation 53 51 configure.args-append --enable-documentation … … 59 57 configure.args-append --enable-gui 60 58 } 61 59 62 default_variants +docs -gui60 default_variants +docs 63 61 64 62 livecheck.check regex 65 63 livecheck.url [lindex ${master_sites} 0]