Ticket #53470: audacity.diff

File audacity.diff, 7.5 KB (added by RJVB (René Bertin), 8 years ago)

updated Portfile

  • audio/audacity/Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    2 # kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
    32
    43PortSystem          1.0
    54PortGroup           wxWidgets 1.0
    65
    7 # use the release tarball from github because it contains all required external libs
    8 # incl. those not in MacPorts.
    9 PortGroup           github 1.0
    10 github.setup        audacity audacity 2.1.2 Audacity-
    11 github.tarball_from releases
    12 revision            2
    13 master_sites        https://github.com/audacity/audacity/archive/
    14 distname            Audacity-${version}
    15 checksums           rmd160  4e0c508b8edd24935a235c0b1a636c4ef1ae59a9 \
    16                     sha256  90007b50cdc3885607b1afef2f158777a61c1658e869a88ec4d98c59c133f9bd
    17 
    18 post-extract {
    19     file rename ${workpath}/audacity-Audacity-${version} ${workpath}/${distname}
    20 }
    21 
    22 categories          audio
    23 
    24 description         A Free, Cross-Platform Digital Audio Editor
     6name                audacity
     7conflicts           audacity-gtk
    258
     9description         A Free, Cross-Platform Digital Audio Editor.
    2610long_description    Audacity is a free, easy-to-use, multi-track audio editor and recorder \
    2711                    for Windows, Mac OS X, GNU/Linux and other operating systems. The interface is translated \
    2812                    into many languages. You can use Audacity to: \n\
     
    3519                    Numerous effects including change the speed or pitch of a recording. \n\
    3620                    And more!
    3721
     22subport             audacity-devel {
     23    long_description A port of the Audacity audio editor aimed at development purposes.
     24}
     25
     26
     27# use the release tarball from github because it contains all required external libs
     28# incl. those not in MacPorts.
     29PortGroup           github 1.0
     30
     31if {${subport} eq "${name}"} {
     32    version             2.1.2
     33    github.setup        audacity audacity ${version} Audacity-
     34    github.tarball_from releases
     35    master_sites        https://github.com/audacity/audacity/archive/
     36    distname            Audacity-${version}
     37    checksums           rmd160  4e0c508b8edd24935a235c0b1a636c4ef1ae59a9 \
     38                        sha256  90007b50cdc3885607b1afef2f158777a61c1658e869a88ec4d98c59c133f9bd
     39    post-extract {
     40        file rename ${workpath}/audacity-Audacity-${version} ${workpath}/${distname}
     41    }
     42} else {
     43    # git describe --tags : Audacity-2.1.2-1543-g25b7a00
     44    # github.setup        audacity audacity 25b7a0040f34e416ab43df2054ccc7bf43b34495
     45    # git describe --tags : Audacity-2.1.2-1652-g0cb89a8
     46    github.setup        audacity audacity 0cb89a895a25e4f1e7ca4045d0b95e786bce7ed2
     47    version             2.1.2.1652
     48    # this port is intended to facilitate development efforts shared with "upstreams"
     49    # so using git instead of a tarball fetch type is more appropriate.
     50    fetch.type          git
     51    distname            audacity-git
     52}
     53
     54categories          audio
     55
     56
    3857platforms           darwin
    3958license             GPL-2+
    4059# openssl is a dependency of curl in cmake
     
    7190
    7291patch.pre_args      -Np1
    7392
    74 patchfiles-append   debian/patches/fix-minsrc-autoreconf.patch              \
     93if {${subport} eq "${name}"} {
     94    patchfiles-append \
     95                    fix-minsrc-autoreconf.patch                             \
    7596                    add_missing_newline.diff                                \
    7697                    libvamp-Makefile-for-osx.diff                           \
    7798                    src-Makefile-for-osx.diff                               \
    78                     FFmpeg_build_against_ffmpeg.diff                       \
     99                    FFmpeg_build_against_ffmpeg.diff                        \
    79100                    portaudio-no-universal-build.diff                       \
    80101                    buildinfo-clarify-no-gstreamer.diff                     \
    81102                    add_enGB_translation.diff                               \
     
    84105                    patch-more-decent-font-sizes.diff                       \
    85106                    patch-python.diff
    86107
    87 # address issues in the build system:
    88 # - build and link VSTControlOSX.mm instead of the GTk interface
    89 # - address a visibility issue with the slider_array variable in libnyquist
    90 # - make the AudioUnits plugin support build; on 64bit and also include AUControl.mm
    91 patchfiles-append   patch-vstcontrolosx.diff \
     108    # address issues in the build system:
     109    # - build and link VSTControlOSX.mm instead of the GTk interface
     110    # - address a visibility issue with the slider_array variable in libnyquist
     111    # - make the AudioUnits plugin support build; on 64bit and also include AUControl.mm
     112    patchfiles-append \
     113                    patch-vstcontrolosx.diff \
    92114                    patch-libnyquist-symbol-visibility.diff \
    93115                    patch-fix-audiounits.diff
     116} else {
     117    patchfiles-append \
     118                    devel/fix-minsrc-autoreconf.patch                        \
     119                    devel/libvamp-Makefile-for-osx.diff                      \
     120                    devel/src-Makefile-for-osx.diff                          \
     121                    devel/portaudio-no-universal-build.diff                  \
     122                    devel/buildinfo-clarify-no-gstreamer.diff                \
     123                    devel/add_enGB_translation.diff                          \
     124                    devel/patch-avoid-clang-choke-on-confbase.diff           \
     125                    devel/patch-more-decent-font-sizes.diff                  \
     126                    devel/patch-python.diff
     127
     128    patchfiles-append \
     129                    devel/patch-vstcontrolosx.diff \
     130                    devel/patch-libnyquist-symbol-visibility.diff \
     131                    devel/patch-fix-audiounits.diff
     132    patchfiles-append \
     133                    devel/patch-fix-casts.diff \
     134                    devel/patch-add-MenusMac.diff
     135}
    94136
    95137post-patch {
    96138    set python_bin ${prefix}/bin/python2.7
     
    127169        if {![file exists ${worksrcpath}/${d}/${f}.mm]} {
    128170            ln -s ${f}.cpp ${worksrcpath}/${d}/${f}.mm
    129171        }
    130         reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \
     172    }
     173    reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \
    131174            src/Makefile.in src/Makefile.am
     175    if {${subport} eq "${name}-devel"} {
     176        ln -s MenusMac.cpp ${worksrcpath}/src/MenusMac.mm
    132177    }
    133178}
    134179
     
    157202                    WX_CONFIG=${wxWidgets.wxconfig}
    158203
    159204set aud_app_path    ${applications_dir}/Audacity.app
    160 # the following causes an empty directory to be created and preserved at installation
    161 # to allow the default en language localization to function properly (#50724)
    162205destroot.keepdirs   ${destroot}${aud_app_path}/Contents/Resources/en.lproj
    163206
    164207post-destroot {
     
    195238    system "echo \"#!/bin/sh\nexec \\\"${aud_app_path}/Contents/MacOS/Audacity\\\" \\\"\\\$\@\\\"\" > ${destroot}${prefix}/bin/audacity"
    196239    system "chmod 755 ${destroot}${prefix}/bin/audacity"
    197240}
     241
     242# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;