Ticket #53470: audacity.2.diff

File audacity.2.diff, 7.0 KB (added by RJVB (René Bertin), 7 years ago)

Portfile with upgrade to 6.1.3 / 6.1.3.190

  • 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
     5PortGroup           compiler_blacklist_versions 1.0
    66
    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
     7name                audacity
     8conflicts           audacity-gtk
    259
     10description         A Free, Cross-Platform Digital Audio Editor.
    2611long_description    Audacity is a free, easy-to-use, multi-track audio editor and recorder \
    2712                    for Windows, Mac OS X, GNU/Linux and other operating systems. The interface is translated \
    2813                    into many languages. You can use Audacity to: \n\
     
    3520                    Numerous effects including change the speed or pitch of a recording. \n\
    3621                    And more!
    3722
     23subport             audacity-devel {
     24    long_description A port of the Audacity audio editor aimed at development purposes.
     25}
     26
     27
     28# use the release tarball from github because it contains all required external libs
     29# incl. those not in MacPorts.
     30PortGroup           github 1.0
     31
     32if {${subport} eq "${name}"} {
     33    version         2.1.3
     34    github.setup    audacity audacity ${version} Audacity-
     35    distname        Audacity-${version}
     36    checksums       rmd160  d3f9252f55a13ee1a9f4fcf1f5ffdd72eafdde6d \
     37                    sha256  24469a0b8c822f4f93ce23add61cd6ffd1919fc8c1384015a05566764c870ef1
     38} else {
     39#     # git describe --tags : Audacity-2.1.2-1652-g0cb89a8
     40#     github.setup        audacity audacity 0cb89a895a25e4f1e7ca4045d0b95e786bce7ed2
     41    # git describe --tags : Audacity-2.1.3-190-g78149bc
     42    github.setup    audacity audacity 78149bc3da4a7d18c0487baf7002b23759a814c3
     43    version         2.1.3.190
     44    # this port is intended to facilitate development efforts shared with "upstreams"
     45    # so using git instead of a tarball fetch type is more appropriate.
     46    fetch.type      git
     47    distname        audacity-git
     48}
     49
     50categories          audio
     51
     52
    3853platforms           darwin
    3954license             GPL-2+
    4055# openssl is a dependency of curl in cmake
     
    4762
    4863wxWidgets.use       wxWidgets-3.0
    4964
     65compiler.blacklist  {*gcc-[234].[0-8]}
     66
    5067depends_build-append \
    5168                    port:cmake \
    5269                    port:pkgconfig \
     
    7188
    7289patch.pre_args      -Np1
    7390
    74 patchfiles-append   debian/patches/fix-minsrc-autoreconf.patch              \
    75                     add_missing_newline.diff                                \
     91# address issues in the build system:
     92# - build and link VSTControlOSX.mm instead of the GTk interface
     93# - address a visibility issue with the slider_array variable in libnyquist
     94# - make the AudioUnits plugin support build; on 64bit and also include AUControl.mm
     95patchfiles-append \
     96                    fix-minsrc-autoreconf.patch                             \
    7697                    libvamp-Makefile-for-osx.diff                           \
    7798                    src-Makefile-for-osx.diff                               \
    78                     FFmpeg_build_against_ffmpeg.diff                       \
    7999                    portaudio-no-universal-build.diff                       \
    80100                    buildinfo-clarify-no-gstreamer.diff                     \
    81101                    add_enGB_translation.diff                               \
    82102                    patch-avoid-clang-choke-on-confbase.diff                \
    83                     patch-no-rtld_deepbind.diff                             \
    84103                    patch-more-decent-font-sizes.diff                       \
    85                     patch-python.diff
    86 
    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 \
     104                    patch-python.diff                                       \
     105                    patch-vstcontrolosx.diff \
    92106                    patch-libnyquist-symbol-visibility.diff \
     107                    patch-fix-casts.diff \
     108                    patch-add-MenusMac.diff \
     109                    patch-skip-gcc-version-test.diff
     110
     111if {${subport} eq "${name}"} {
     112    patchfiles-append \
    93113                    patch-fix-audiounits.diff
    94114
     115    patchfiles-append \
     116} else {
     117    patchfiles-append \
     118                    devel/patch-fix-audiounits.diff \
     119                    devel/patch-temp-fixes.h
     120}
     121
    95122post-patch {
    96123    set python_bin ${prefix}/bin/python2.7
    97124    reinplace -W ${worksrcpath} "s|@@PYTHON@@|${python_bin}|g" \
     
    127154        if {![file exists ${worksrcpath}/${d}/${f}.mm]} {
    128155            ln -s ${f}.cpp ${worksrcpath}/${d}/${f}.mm
    129156        }
    130         reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \
     157    }
     158    reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \
    131159            src/Makefile.in src/Makefile.am
     160    if {[file exists ${worksrcpath}/src/MenusMac.cpp] && ![file exists ${worksrcpath}/src/MenusMac.mm]} {
     161        ln -s MenusMac.cpp ${worksrcpath}/src/MenusMac.mm
    132162    }
    133163}
    134164
     
    157187                    WX_CONFIG=${wxWidgets.wxconfig}
    158188
    159189set 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)
    162190destroot.keepdirs   ${destroot}${aud_app_path}/Contents/Resources/en.lproj
    163191
    164192post-destroot {
     
    195223    system "echo \"#!/bin/sh\nexec \\\"${aud_app_path}/Contents/MacOS/Audacity\\\" \\\"\\\$\@\\\"\" > ${destroot}${prefix}/bin/audacity"
    196224    system "chmod 755 ${destroot}${prefix}/bin/audacity"
    197225}
     226
     227# 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;