Ticket #53470: audacity.2.diff
File audacity.2.diff, 7.0 KB (added by RJVB (René Bertin), 8 years ago) |
---|
-
audio/audacity/Portfile
old new 1 1 # -*- 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;3 2 4 3 PortSystem 1.0 5 4 PortGroup wxWidgets 1.0 5 PortGroup compiler_blacklist_versions 1.0 6 6 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 7 name audacity 8 conflicts audacity-gtk 25 9 10 description A Free, Cross-Platform Digital Audio Editor. 26 11 long_description Audacity is a free, easy-to-use, multi-track audio editor and recorder \ 27 12 for Windows, Mac OS X, GNU/Linux and other operating systems. The interface is translated \ 28 13 into many languages. You can use Audacity to: \n\ … … 35 20 Numerous effects including change the speed or pitch of a recording. \n\ 36 21 And more! 37 22 23 subport 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. 30 PortGroup github 1.0 31 32 if {${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 50 categories audio 51 52 38 53 platforms darwin 39 54 license GPL-2+ 40 55 # openssl is a dependency of curl in cmake … … 47 62 48 63 wxWidgets.use wxWidgets-3.0 49 64 65 compiler.blacklist {*gcc-[234].[0-8]} 66 50 67 depends_build-append \ 51 68 port:cmake \ 52 69 port:pkgconfig \ … … 71 88 72 89 patch.pre_args -Np1 73 90 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 95 patchfiles-append \ 96 fix-minsrc-autoreconf.patch \ 76 97 libvamp-Makefile-for-osx.diff \ 77 98 src-Makefile-for-osx.diff \ 78 FFmpeg_build_against_ffmpeg.diff \79 99 portaudio-no-universal-build.diff \ 80 100 buildinfo-clarify-no-gstreamer.diff \ 81 101 add_enGB_translation.diff \ 82 102 patch-avoid-clang-choke-on-confbase.diff \ 83 patch-no-rtld_deepbind.diff \84 103 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 \ 92 106 patch-libnyquist-symbol-visibility.diff \ 107 patch-fix-casts.diff \ 108 patch-add-MenusMac.diff \ 109 patch-skip-gcc-version-test.diff 110 111 if {${subport} eq "${name}"} { 112 patchfiles-append \ 93 113 patch-fix-audiounits.diff 94 114 115 patchfiles-append \ 116 } else { 117 patchfiles-append \ 118 devel/patch-fix-audiounits.diff \ 119 devel/patch-temp-fixes.h 120 } 121 95 122 post-patch { 96 123 set python_bin ${prefix}/bin/python2.7 97 124 reinplace -W ${worksrcpath} "s|@@PYTHON@@|${python_bin}|g" \ … … 127 154 if {![file exists ${worksrcpath}/${d}/${f}.mm]} { 128 155 ln -s ${f}.cpp ${worksrcpath}/${d}/${f}.mm 129 156 } 130 reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \ 157 } 158 reinplace -W ${worksrcpath} "s|/VSTControlGTK.cpp|/VSTControlOSX.mm|g" \ 131 159 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 132 162 } 133 163 } 134 164 … … 157 187 WX_CONFIG=${wxWidgets.wxconfig} 158 188 159 189 set aud_app_path ${applications_dir}/Audacity.app 160 # the following causes an empty directory to be created and preserved at installation161 # to allow the default en language localization to function properly (#50724)162 190 destroot.keepdirs ${destroot}${aud_app_path}/Contents/Resources/en.lproj 163 191 164 192 post-destroot { … … 195 223 system "echo \"#!/bin/sh\nexec \\\"${aud_app_path}/Contents/MacOS/Audacity\\\" \\\"\\\$\@\\\"\" > ${destroot}${prefix}/bin/audacity" 196 224 system "chmod 755 ${destroot}${prefix}/bin/audacity" 197 225 } 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;