diff --git a/audio/audacity/Portfile b/audio/audacity/Portfile
index 528a16f98c..3dcf93f3b0 100644
a
|
b
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | | PortGroup active_variants 1.1 |
6 | | PortGroup cxx11 1.1 |
7 | 5 | PortGroup github 1.0 |
8 | 6 | PortGroup wxWidgets 1.0 |
| 7 | PortGroup active_variants 1.1 |
| 8 | |
| 9 | platform darwin { |
| 10 | if {${os.major} < 13} { |
| 11 | PortGroup cxx11 1.1 |
| 12 | } |
| 13 | } |
9 | 14 | |
10 | 15 | name audacity |
11 | 16 | |
… |
… |
long_description Audacity is a free, easy-to-use, multi-track audio editor an |
22 | 27 | Numerous effects including change the speed or pitch of a recording. \n\ |
23 | 28 | And more! |
24 | 29 | |
25 | | subport audacity-devel { |
| 30 | subport audacity-devel { |
26 | 31 | long_description A port of the Audacity audio editor aimed at development purposes. |
27 | 32 | } |
28 | 33 | |
29 | 34 | |
30 | 35 | if {${subport} eq "${name}"} { |
31 | | conflicts ${name}-devel |
| 36 | conflicts "${name}-devel" |
32 | 37 | # get the source tarball from github because it contains all required external libs |
33 | 38 | # incl. those not in MacPorts. |
34 | 39 | github.setup audacity audacity 2.2.2 Audacity- |
… |
… |
if {${subport} eq "${name}"} { |
37 | 42 | size 25941576 |
38 | 43 | set PPREFIX ./ |
39 | 44 | } else { |
40 | | conflicts ${name} |
41 | | # git describe --tags : Audacity-2.2.2-336-g49eb7ddb6 |
42 | | github.setup audacity audacity 49eb7ddb61cf7d2d9468932ac340550ef48a8828 |
43 | | version 2.2.2.336 |
| 45 | conflicts "${name}" |
| 46 | # git describe --tags : Audacity-2.2.2-407-g56bca7427 |
| 47 | github.setup audacity audacity 56bca7427218ab9bdd9a54f4eb7d7490c07657bb |
| 48 | version 2.2.2.407 |
44 | 49 | # this port is intended to facilitate development efforts shared with "upstreams" |
45 | 50 | # so using git instead of a tarball fetch type is more appropriate. |
46 | | fetch.type git |
47 | | distname audacity-git |
| 51 | # fetch.type git |
| 52 | # distname audacity-git |
| 53 | checksums rmd160 43b66fdbe873d5f64059f5b58b20b676d9540d20 \ |
| 54 | sha256 9231238cfe468b7b0531853564cfc19dea635f50b1acd5c9b468c5795d6e767b |
48 | 55 | set PPREFIX devel/ |
49 | 56 | |
50 | 57 | variant wx32 description {Use wxWidgets 3.2 - experimental!} {} |
… |
… |
depends_build-append \ |
92 | 99 | port:cmake \ |
93 | 100 | port:pkgconfig \ |
94 | 101 | port:python27 |
95 | | depends_lib-append port:expat \ |
96 | | path:lib/libavcodec.dylib:ffmpeg \ |
97 | | port:flac \ |
98 | | port:freetype \ |
| 102 | depends_lib-append port:freetype \ |
99 | 103 | port:harfbuzz \ |
100 | | port:lame \ |
101 | 104 | port:libid3tag \ |
102 | 105 | port:libmad \ |
103 | | port:libogg \ |
104 | | port:libsndfile \ |
105 | | port:libvorbis \ |
106 | 106 | port:soundtouch \ |
107 | 107 | port:soxr \ |
108 | | port:twolame |
| 108 | port:twolame \ |
| 109 | port:expat \ |
| 110 | path:lib/libavcodec.dylib:ffmpeg \ |
| 111 | port:flac \ |
| 112 | port:lame \ |
| 113 | port:libogg \ |
| 114 | port:libsndfile \ |
| 115 | port:libvorbis |
109 | 116 | # audacity could use port:lv2 and port:lilv but would also require a port:suil for that to be possible. |
110 | 117 | |
111 | 118 | patch.pre_args -Np1 |
… |
… |
platform darwin { |
141 | 148 | patch-implement-progdial=beep.diff |
142 | 149 | patchfiles-append \ |
143 | 150 | patch-temp-fixes.diff |
144 | | if {[variant_exists wx32] && [variant_isset wx32]} { |
145 | | patchfiles-append \ |
| 151 | } |
| 152 | if {[variant_exists wx32] && [variant_isset wx32]} { |
| 153 | patchfiles-append \ |
146 | 154 | ${PPREFIX}patch-wxw-31x.diff |
147 | | } |
148 | 155 | } |
149 | 156 | |
| 157 | # quelch a huge number of warnings |
| 158 | configure.cxxflags-append \ |
| 159 | -Wno-inconsistent-missing-override \ |
| 160 | -Wno-overloaded-virtual |
| 161 | |
| 162 | configure.args-append \ |
| 163 | --disable-dependency-tracking \ |
| 164 | --disable-quicktime \ |
| 165 | --disable-static \ |
| 166 | --disable-universal_binary \ |
| 167 | --enable-audiounits \ |
| 168 | --enable-shared \ |
| 169 | --enable-sse \ |
| 170 | --with-ffmpeg \ |
| 171 | --with-lame \ |
| 172 | --with-libflac \ |
| 173 | --with-libmad \ |
| 174 | --with-libsoxr \ |
| 175 | --with-libvamp=local \ |
| 176 | --with-libvorbis \ |
| 177 | --with-lv2=local \ |
| 178 | --with-portmixer \ |
| 179 | --with-sbsms=local \ |
| 180 | --with-soundtouch \ |
| 181 | --with-twolame \ |
| 182 | --with-widgetextra=local \ |
| 183 | --with-portmidi=system \ |
| 184 | CPPFLAGS=-I${prefix}/include \ |
| 185 | WX_CONFIG=${wxWidgets.wxconfig} |
| 186 | |
| 187 | # Since version 2.2.0 we need to use the embedded (modified) Portaudio version. |
| 188 | configure.args-append \ |
| 189 | --with-portaudio=local |
| 190 | configure.env-append \ |
| 191 | PORTMIDI_CFLAGS=-I${prefix}/include \ |
| 192 | PORTMIDI_LIBS=${prefix}/lib/libportmidi.dylib |
| 193 | depends_lib-append \ |
| 194 | port:portmidi |
| 195 | |
| 196 | # make sure the C++ stdlib argument is added to the LDFLAGS too |
| 197 | if {${configure.cxx_stdlib} ne "" && [string match *clang* ${configure.cxx}]} { |
| 198 | configure.ldflags-append \ |
| 199 | -stdlib=${configure.cxx_stdlib} |
| 200 | } |
| 201 | |
| 202 | build.args-append V=1 VERBOSE=1 |
| 203 | |
| 204 | # with everything defined/declared as intended we can now |
| 205 | # handle the post-patch step with its reinplace statements. |
150 | 206 | post-patch { |
151 | 207 | set python_bin ${prefix}/bin/python2.7 |
152 | 208 | reinplace -W ${worksrcpath} "s|@@PYTHON@@|${python_bin}|g" \ |
… |
… |
post-patch { |
164 | 220 | reinplace -W ${worksrcpath} "s| -Werror||g" \ |
165 | 221 | lib-src/portaudio-v19/configure.in \ |
166 | 222 | lib-src/portaudio-v19/configure |
| 223 | reinplace -W ${worksrcpath} "s|@LDFLAGS@|${configure.ldflags}|g" \ |
| 224 | lib-src/libvamp/Makefile.in |
167 | 225 | platform darwin { |
168 | 226 | # audacity 2.1.2 contains C++ files that include system SDK headers and ObjC code on OS X; |
169 | 227 | # they must thus be built as ObjC++ |
… |
… |
post-patch { |
192 | 250 | } |
193 | 251 | } |
194 | 252 | |
195 | | # quelch a huge number of warnings |
196 | | configure.cxxflags-append \ |
197 | | -Wno-inconsistent-missing-override \ |
198 | | -Wno-overloaded-virtual |
199 | | |
200 | | configure.args-append \ |
201 | | --disable-dependency-tracking \ |
202 | | --disable-quicktime \ |
203 | | --disable-static \ |
204 | | --disable-universal_binary \ |
205 | | --enable-audiounits \ |
206 | | --enable-shared \ |
207 | | --enable-sse \ |
208 | | --with-ffmpeg \ |
209 | | --with-lame \ |
210 | | --with-libflac \ |
211 | | --with-libmad \ |
212 | | --with-libsoxr \ |
213 | | --with-libvamp=local \ |
214 | | --with-libvorbis \ |
215 | | --with-lv2=local \ |
216 | | --with-portmixer \ |
217 | | --with-sbsms=local \ |
218 | | --with-soundtouch \ |
219 | | --with-twolame \ |
220 | | --with-widgetextra=local \ |
221 | | --with-portmidi=system \ |
222 | | CPPFLAGS=-I${prefix}/include \ |
223 | | WX_CONFIG=${wxWidgets.wxconfig} |
224 | | |
225 | | # Since version 2.2.0 we need to use the embedded (modified) Portaudio version. |
226 | | configure.args-append \ |
227 | | --with-portaudio=local |
228 | | configure.env-append \ |
229 | | PORTMIDI_CFLAGS=-I${prefix}/include \ |
230 | | PORTMIDI_LIBS=${prefix}/lib/libportmidi.dylib |
231 | | depends_lib-append \ |
232 | | port:portmidi |
233 | | |
234 | | build.args-append V=1 VERBOSE=1 |
235 | | |
236 | 253 | platform darwin { |
237 | 254 | set aud_app_path ${applications_dir}/Audacity.app |
238 | 255 | destroot.keepdirs ${destroot}${aud_app_path}/Contents/Resources/en.lproj |