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 |
| 6 | name audacity |
| 7 | conflicts audacity-gtk |
| 22 | subport 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. |
| 29 | PortGroup github 1.0 |
| 30 | |
| 31 | if {${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 | |
| 54 | categories audio |
| 55 | |
| 56 | |
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 \ |
| 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 | } |