Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= audacity |
4 |
PORTNAME= audacity |
5 |
PORTVERSION= 2.3.3 |
5 |
PORTVERSION= 2.4.1 |
6 |
PORTREVISION= 2 |
|
|
7 |
DISTVERSIONPREFIX= Audacity- |
6 |
DISTVERSIONPREFIX= Audacity- |
8 |
CATEGORIES= audio |
7 |
CATEGORIES= audio |
9 |
|
8 |
|
Lines 13-143
Link Here
|
13 |
LICENSE= GPLv2+ |
12 |
LICENSE= GPLv2+ |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
15 |
|
14 |
|
16 |
BUILD_DEPENDS= autogen:devel/autogen \ |
|
|
17 |
bash:shells/bash \ |
18 |
cmake:devel/cmake |
19 |
LIB_DEPENDS= libasound.so:audio/alsa-lib \ |
15 |
LIB_DEPENDS= libasound.so:audio/alsa-lib \ |
20 |
libexpat.so:textproc/expat2 \ |
16 |
libexpat.so:textproc/expat2 \ |
21 |
libportaudio.so:audio/portaudio \ |
|
|
22 |
libsndfile.so:audio/libsndfile \ |
17 |
libsndfile.so:audio/libsndfile \ |
23 |
libsoxr.so:audio/libsoxr |
18 |
libsoxr.so:audio/libsoxr |
24 |
|
19 |
|
25 |
USES= autoreconf compiler:c++11-lib cpe desktop-file-utils dos2unix \ |
20 |
USES= cmake compiler:c++14-lang cpe desktop-file-utils gettext-tools gnome \ |
26 |
gettext-tools gmake gnome iconv libtool localbase pkgconfig \ |
21 |
iconv libtool localbase pkgconfig shared-mime-info |
27 |
shared-mime-info shebangfix |
|
|
28 |
|
22 |
|
29 |
GNU_CONFIGURE= yes |
|
|
30 |
NLS_USES= gettext-runtime |
31 |
NLS_CONFIGURE_ENABLE= nls |
32 |
NLS_CONFIGURE_WITH= libintl-prefix="${LOCALBASE}" |
33 |
OPTIONS_SUB= yes |
23 |
OPTIONS_SUB= yes |
34 |
USE_WX= 3.1+ |
24 |
USE_WX= 3.1+ |
35 |
WX_COMPS= wx |
25 |
WX_COMPS= wx |
36 |
INSTALLS_ICONS= yes |
26 |
INSTALLS_ICONS= yes |
37 |
PORTDOCS= README.txt |
27 |
PORTDOCS= README.txt |
38 |
DOS2UNIX_GLOB= *.c* *.h Makefile.* |
|
|
39 |
SHEBANG_FILES= lib-src/lv2/build |
40 |
USE_GITHUB= yes |
28 |
USE_GITHUB= yes |
41 |
|
29 |
|
42 |
OPTIONS_DEFINE= DEBUG DOCS DYNLOAD FFMPEG FLAC ID3TAG LADSPA LAME LV2 \ |
30 |
OPTIONS_DEFINE= ALSA DEBUG DOCS FFMPEG FLAC ID3TAG JACK LADSPA LAME LV2 \ |
43 |
MAD MOD_NYQ_BENCH MOD_SCRIPT_PIPE NLS SBSMS SOUNDTOUCH \ |
31 |
MAD MIDI OGG OSS NYQUIST SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST2 |
44 |
SSE TWOLAME VAMP VORBIS VST |
32 |
OPTIONS_DEFAULT= ALSA FLAC ID3TAG JACK LADSPA MAD MIDI NYQUIST OGG OSS \ |
45 |
OPTIONS_DEFAULT= FLAC ID3TAG LADSPA MAD SBSMS SOUNDTOUCH TWOLAME VAMP \ |
33 |
SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST2 |
46 |
VORBIS VST |
|
|
47 |
|
34 |
|
48 |
OPTIONS_DEFAULT_amd64= SSE |
35 |
ALSA_DESC= Use the portaudio ALSA interface |
49 |
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MSSE} |
36 |
JACK_DESC= Use the JACK audio interface |
50 |
|
|
|
51 |
DYNLOAD_DESC= Enable dynamic loading of lame and FFmpeg |
52 |
LAME_DESC= Use lame for import and export support |
37 |
LAME_DESC= Use lame for import and export support |
53 |
LV2_DESC= Add LV2 plug-in support |
38 |
LV2_DESC= Add LV2 plug-in support |
54 |
MAD_DESC= Use libmad for mp2/3 decoding support |
39 |
MAD_DESC= Use libmad for mp2/3 decoding support |
55 |
MOD_SCRIPT_PIPE_DESC= mod-script-pipe scripting support |
40 |
MIDI_DESC= Add midi support |
56 |
MOD_NYQ_BENCH_DESC= Enable Nyquist Workbench |
41 |
NYQUIST_DESC= Enable Nyquist support |
|
|
42 |
OGG_DESC= Enable ogg support |
43 |
OSS_DESC= Use the OSS audio interface |
57 |
SBSMS_DESC= Use libsbsms for pitch and tempo changing |
44 |
SBSMS_DESC= Use libsbsms for pitch and tempo changing |
58 |
SOUNDTOUCH_DESC= Use libSoundTouch for pitch and tempo changing |
45 |
SOUNDTOUCH_DESC= Use libSoundTouch for pitch and tempo changing |
59 |
TWOLAME_DESC= Use libtwolame for MP2 export support |
46 |
TWOLAME_DESC= Use libtwolame for MP2 export support |
60 |
VAMP_DESC= Vamp plug-in support |
47 |
VAMP_DESC= Vamp plug-in support |
61 |
VST_DESC= VST plug-in support |
48 |
VST2_DESC= VST2 plug-in support |
62 |
|
49 |
|
63 |
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}" |
50 |
CMAKE_ARGS+= -Daudacity_lib_preference:STRING=system -Daudacity_use_expat:STRING=system \ |
|
|
51 |
-Daudacity_use_wxwidgets:STRING=system -Daudacity_use_soxr:STRING=system \ |
52 |
-Daudacity_use_sndfile:STRING=system -Daudacity_use_portsmf:STRING=local \ |
53 |
-Daudacity_use_portmixer:STRING=local -Daudacity_use_portaudio:STRING=local |
64 |
|
54 |
|
65 |
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} \ |
55 |
.ifdef WITH_DEBUG |
66 |
--disable-option-checking \ |
56 |
CMAKE_BUILD_TYPE= Debug |
67 |
--enable-unicode \ |
57 |
.endif |
68 |
--with-expat=system \ |
|
|
69 |
--with-lib-preference="local" \ |
70 |
--with-libsndfile=system \ |
71 |
--with-libsoxr=system \ |
72 |
--with-midi \ |
73 |
--with-portaudio=system \ |
74 |
--with-portmixer=yes \ |
75 |
--with-widgetextra |
76 |
|
58 |
|
77 |
CONFIGURE_SHELL?= ${LOCALBASE}/bin/bash |
59 |
CMAKE_ALSA_ON= audacity_use_pa_alsa |
|
|
60 |
CMAKE_ALSA_OFF= audacity_use_pa_alsa |
78 |
|
61 |
|
79 |
DEBUG_CONFIGURE_WITH= debug |
62 |
DEBUG_CMAKE_ON= wxWidgets_USE_DEBUG |
80 |
|
63 |
|
81 |
DOCS_BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man \ |
64 |
DOCS_BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man \ |
82 |
docbook2man:textproc/docbook-utils |
65 |
docbook2man:textproc/docbook-utils |
83 |
|
66 |
|
84 |
DYNLOAD_BUILD_DEPENDS= ${LOCALBASE}/include/lame/lame.h:audio/lame \ |
67 |
FFMPEG_CMAKE_ON= -Daudacity_use_ffmpeg:STRING=loaded |
85 |
${LOCALBASE}/libdata/pkgconfig/libavcodec.pc:multimedia/ffmpeg |
68 |
FFMPEG_CMAKE_OFF= -Daudacity_use_ffmpeg:STRING=off |
86 |
DYNLOAD_CONFIGURE_ENABLE= dynamic-loading |
69 |
FFMPEG_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libavcodec.pc:multimedia/ffmpeg |
87 |
# for audio/lame |
|
|
88 |
DYNLOAD_CPPFLAGS= -I${LOCALBASE}/include |
89 |
# for audio/lame |
90 |
DYNLOAD_LDFLAGS= -L${LOCALBASE}/lib |
91 |
|
92 |
FFMPEG_CONFIGURE_WITH= ffmpeg=system |
93 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
70 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
94 |
|
71 |
|
95 |
FLAC_CONFIGURE_WITH= libflac=system |
72 |
FLAC_CMAKE_ON= -Daudacity_use_flac:STRING=system |
|
|
73 |
FLAC_CMAKE_OFF= -Daudacity_use_flac:STRING=local |
96 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
74 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
97 |
|
75 |
|
98 |
ID3TAG_CONFIGURE_WITH= libid3tag=system |
76 |
ID3TAG_CMAKE_ON= -Daudacity_use_id3tag:STRING=system |
|
|
77 |
ID3TAG_CMAKE_OFF= -Daudacity_use_id3tag:STRING=off |
99 |
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag |
78 |
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag |
100 |
|
79 |
|
101 |
LADSPA_CONFIGURE_ENABLE= ladspa |
80 |
LADSPA_CMAKE_ON= audacity_use_ladspa |
102 |
LADSPA_RUN_DEPENDS= listplugins:audio/ladspa |
81 |
LADSPA_CMAKE_OFF= audacity_use_ladspa |
|
|
82 |
LADSPA_RUN_DEPENDS= listplugins:audio/ladspa |
103 |
|
83 |
|
104 |
LAME_CONFIGURE_ON= --with-lame=system |
84 |
JACK_CMAKE_ON= -Daudacity_use_pa_jack:STRING=loaded |
105 |
# --without-lame is broken |
85 |
JACK_CMAKE_OFF= -Daudacity_use_pa_jack:STRING=off |
106 |
LAME_CONFIGURE_OFF= --with-lame |
86 |
JACK_LIB_DEPENDS= libjack.so:audio/jack |
|
|
87 |
|
88 |
LAME_CMAKE_ON= -Daudacity_use_lame:STRING=system |
89 |
LAME_CMAKE_OFF= -Daudacity_use_lame:STRING=local |
90 |
LAME_BUILD_DEPENDS= ${LOCALBASE}/include/lame/lame.h:audio/lame |
107 |
LAME_CPPFLAGS= -I${LOCALBASE}/include |
91 |
LAME_CPPFLAGS= -I${LOCALBASE}/include |
108 |
LAME_LDFLAGS= -L${LOCALBASE}/lib |
92 |
LAME_LDFLAGS= -L${LOCALBASE}/lib |
109 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
93 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
110 |
|
94 |
|
111 |
LV2_CONFIGURE_WITH= lv2=system |
95 |
LV2_CMAKE_ON= -Daudacity_use_lv2:STRING=system |
|
|
96 |
LV2_CMAKE_OFF= -Daudacity_use_lv2:STRING=off |
112 |
LV2_LIB_DEPENDS= liblilv-0.so:audio/lilv \ |
97 |
LV2_LIB_DEPENDS= liblilv-0.so:audio/lilv \ |
|
|
98 |
libserd-0.so:devel/serd \ |
99 |
libsord-0.so:devel/sord \ |
100 |
libsratom-0.so:audio/sratom \ |
113 |
libsuil-0.so:audio/suil |
101 |
libsuil-0.so:audio/suil |
114 |
|
102 |
|
115 |
MAD_CONFIGURE_WITH= libmad=system |
103 |
MAD_CMAKE_ON= -Daudacity_use_mad:STRING=system |
|
|
104 |
MAD_CMAKE_OFF= -Daudacity_use_mad:STRING=off |
116 |
MAD_LIB_DEPENDS= libmad.so:audio/libmad |
105 |
MAD_LIB_DEPENDS= libmad.so:audio/libmad |
117 |
|
106 |
|
118 |
MOD_SCRIPT_PIPE_CONFIGURE_WITH= mod-script-pipe |
107 |
MIDI_CMAKE_ON= -Daudacity_use_midi:STRING=local |
119 |
MOD_SCRIPT_PIPE_USES= python:3.6+ |
108 |
MIDI_CMAKE_OFF= -Daudacity_use_midi:STRING=off |
120 |
MOD_NYQ_BENCH_CONFIGURE_WITH= mod-nyq-bench |
|
|
121 |
MOD_NYQ_BENCH_USES= python:3.6+ |
122 |
|
109 |
|
123 |
SBSMS_CONFIGURE_WITH= sbsms |
110 |
OGG_CMAKE_ON= -Daudacity_use_ogg:STRING=system |
|
|
111 |
OGG_CMAKE_OFF= -Daudacity_use_ogg:STRING=local |
112 |
OGG_LIB_DEPENDS= libogg.so:audio/libogg |
124 |
|
113 |
|
125 |
SOUNDTOUCH_CONFIGURE_WITH= soundtouch=system |
114 |
OSS_CMAKE_ON= audacity_use_pa_oss |
|
|
115 |
OSS_CMAKE_OFF= audacity_use_pa_oss |
116 |
|
117 |
SBSMS_CMAKE_ON= -Daudacity_use_sbsms:STRING=local |
118 |
SBSMS_CMAKE_OFF= -Daudacity_use_sbsms:STRING=off |
119 |
|
120 |
SOUNDTOUCH_CMAKE_ON= -Daudacity_use_soundtouch:STRING=system |
121 |
SOUNDTOUCH_CMAKE_OFF= -Daudacity_use_soundtouch:STRING=off |
126 |
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:audio/soundtouch |
122 |
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:audio/soundtouch |
127 |
|
123 |
|
128 |
SSE_CONFIGURE_ENABLE= sse |
124 |
TWOLAME_CMAKE_ON= -Daudacity_use_twolame:STRING=system |
129 |
|
125 |
TWOLAME_CMAKE_OFF= -Daudacity_use_twolame:STRING=off |
130 |
TWOLAME_CONFIGURE_WITH= libtwolame=system |
|
|
131 |
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame |
126 |
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame |
132 |
|
127 |
|
133 |
VAMP_CONFIGURE_WITH= libvamp=system |
128 |
VAMP_CMAKE_ON= -Daudacity_use_vamp:STRING=system |
|
|
129 |
VAMP_CMAKE_OFF= -Daudacity_use_vamp:STRING=off |
134 |
VAMP_LIB_DEPENDS= libvamp-hostsdk.so:audio/vamp-plugin-sdk |
130 |
VAMP_LIB_DEPENDS= libvamp-hostsdk.so:audio/vamp-plugin-sdk |
135 |
|
131 |
|
136 |
VORBIS_CONFIGURE_WITH= libvorbis=system |
132 |
VORBIS_CMAKE_OFF= -Daudacity_use_vorbis:STRING=off |
|
|
133 |
VORBIS_CMAKE_ON= -Daudacity_use_vorbis:STRING=system |
137 |
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \ |
134 |
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \ |
138 |
libvorbis.so:audio/libvorbis |
135 |
libvorbis.so:audio/libvorbis |
139 |
|
136 |
|
140 |
VST_CONFIGURE_ENABLE= vst |
137 |
VST_CMAKE_ON= audacity_use_vst |
141 |
|
138 |
|
142 |
post-install: |
139 |
post-install: |
143 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
140 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |