blob: 5d441d67db128648978b0afd1994fe4d6bc6b0ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
PORTNAME= audacity
DISTVERSIONPREFIX= Audacity-
DISTVERSION= 3.4.2
PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= xxjack12xx@gmail.com
COMMENT= GUI editor for digital audio waveforms
WWW= https://www.audacityteam.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= conan:sysutils/conan \
rapidjson>0:devel/rapidjson
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libcurl.so:ftp/curl \
libexpat.so:textproc/expat2 \
liblilv-0.so:audio/lilv \
libmp3lame.so:audio/lame \
libmpg123.so:audio/mpg123 \
libopenjp2.so:graphics/openjpeg \
libopus.so:audio/opus \
libopusfile.so:audio/opusfile \
libportaudio.so:audio/portaudio \
libportmidi.so:audio/portmidi \
libpng.so:graphics/png \
libserd-0.so:devel/serd \
libsndfile.so:audio/libsndfile \
libsord-0.so:devel/sord \
libsoxr.so:audio/libsoxr \
libsratom-0.so:audio/sratom \
libsqlite3.so:databases/sqlite3 \
libsuil-0.so:audio/suil \
libturbojpeg.so:graphics/libjpeg-turbo \
libwavpack.so:audio/wavpack \
libuuid.so:misc/e2fsprogs-libuuid
USES= cmake compiler:c++20-lang cpe desktop-file-utils gettext \
gnome libtool python:build pkgconfig shared-mime-info
USE_GITHUB= yes
USE_GNOME= cairo gdkpixbuf2 gtk30
USE_WX= 3.2+
CPE_VENDOR= audacityteam
WX_COMPS= wx
PORTDOCS= README.md
CMAKE_ARGS= -DAUDACITY_BUILD_LEVEL=2 \
-Daudacity_lib_preference:STRING=system \
-Daudacity_use_curl:STRING=system \
-Daudacity_use_expat:STRING=system \
-Daudacity_use_jpeg:STRING=system \
-Daudacity_use_libmp3lame:STRING=system \
-Daudacity_use_libmpg123:STRING=system \
-Daudacity_use_libopus:STRING=system \
-Daudacity_use_libsndfile:STRING=system \
-Daudacity_use_lv2:STRING=system \
-Daudacity_use_midi:STRING=system \
-Daudacity_use_nyquist:STRING=local \
-Daudacity_use_portaudio:STRING=system \
-Daudacity_use_portmixer:STRING=local \
-Daudacity_use_portsmf:STRING=local \
-Daudacity_use_png:STRING=system \
-Daudacity_use_rapidjson:STRING=system \
-Daudacity_use_soxr:STRING=system \
-Daudacity_use_sqlite:STRING=system \
-Daudacity_use_wavpack=system \
-Daudacity_use_wxwidgets:STRING=system \
-Daudacity_use_zlib:STRING=system
CMAKE_ON= audacity_bundle_gplv3 audacity_conan_allow_prebuilt_binaries audacity_obey_system_dependencies
CMAKE_OFF= audacity_has_audiocom_upload audacity_conan_enabled audacity_conan_force_build_dependencies \
audacity_has_crashreports audacity_has_networking audacity_has_updates_check audacity_has_url_schemes_support \
audacity_has_tests audacity_has_vst3 audacity_perform_codesign audacity_use_pch
OPTIONS_DEFINE= DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA MANUAL \
OGG SBSMS SOUNDTOUCH TWOLAME VAMP \
VORBIS VST
OPTIONS_DEFAULT= FFMPEG FLAC ID3TAG LADSPA OGG SBSMS \
SOUNDTOUCH TWOLAME VAMP VORBIS VST
OPTIONS_EXCLUDE_i386= SBSMS
MANUAL_DESC= Include manual
SBSMS_DESC= Use libsbsms for pitch and tempo changing
SOUNDTOUCH_DESC= Use libSoundTouch for pitch and tempo changing
TWOLAME_DESC= Use libtwolame for MP2 export support
VAMP_DESC= Vamp plug-in support
VST_DESC= VST plug-in support
DEBUG_CMAKE_ON= wxWidgets_USE_DEBUG
DOCS_BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man \
docbook2man:textproc/docbook-utils
DOCS_LIB_DEPENDS= libharfbuzz.so:print/harfbuzz
FFMPEG_CMAKE_ON= -Daudacity_use_ffmpeg:STRING=loaded
FFMPEG_CMAKE_OFF= -Daudacity_use_ffmpeg:STRING=off
FFMPEG_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libavcodec.pc:multimedia/ffmpeg
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FLAC_CMAKE_ON= -Daudacity_use_libflac:STRING=system
FLAC_CMAKE_OFF= -Daudacity_use_libflac:STRING=off
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
ID3TAG_CMAKE_ON= -Daudacity_use_libid3tag:STRING=system
ID3TAG_CMAKE_OFF= -Daudacity_use_libid3tag:STRING=off
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag
LADSPA_CMAKE_BOOL= audacity_use_ladspa
LADSPA_RUN_DEPENDS= listplugins:audio/ladspa
MANUAL_CMAKE_BOOL= audacity_package_manual
# TODO: fix NLS support properly
PLIST_SUB+= NLS=""
OPTIONS_SUB= yes
OGG_CMAKE_ON= -Daudacity_use_libogg:STRING=system
OGG_CMAKE_OFF= -Daudacity_use_libogg:STRING=off
OGG_LIB_DEPENDS= libogg.so:audio/libogg
SBSMS_CMAKE_ON= -Daudacity_use_sbsms:STRING=local
SBSMS_CMAKE_OFF= -Daudacity_use_sbsms:STRING=off
SOUNDTOUCH_CMAKE_ON= -Daudacity_use_soundtouch:STRING=system
SOUNDTOUCH_CMAKE_OFF= -Daudacity_use_soundtouch:STRING=off
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:audio/soundtouch
TWOLAME_CMAKE_ON= -Daudacity_use_twolame:STRING=system
TWOLAME_CMAKE_OFF= -Daudacity_use_twolame:STRING=off
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame
VAMP_CMAKE_ON= -Daudacity_use_vamp:STRING=system
VAMP_CMAKE_OFF= -Daudacity_use_vamp:STRING=off
VAMP_LIB_DEPENDS= libvamp-hostsdk.so:audio/vamp-plugin-sdk
VORBIS_CMAKE_ON= -Daudacity_use_libvorbis:STRING=system
VORBIS_CMAKE_OFF= -Daudacity_use_libvorbis:STRING=off
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis
VST_CMAKE_BOOL= audacity_use_vst
.include <bsd.port.options.mk>
.if ${ARCH} != amd64 && ${ARCH} != i386
CMAKE_ARGS+= -DHAVE_MMX:BOOL=OFF \
-DHAVE_SSE:BOOL=OFF \
-DHAVE_SSE2:BOOL=OFF
.endif
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302508
# Workarounds for buggy libc++ std::conjunction
EXTRA_PATCHES= ${PATCHDIR}/extra-libraries_lib-utility_TypeList.cpp \
${PATCHDIR}/extra-libraries_lib-utility_TypeList.h \
${PATCHDIR}/extra-libraries_lib-utility_TypeSwitch.h
.endif
post-install:
@${RM} ${STAGEDIR}${DOCSDIR}/LICENSE.txt
#delete empty directories: https://github.com/audacity/audacity/issues/808
@${FIND} ${STAGEDIR} -type d -empty -delete
post-install-DEBUG-off:
@${FIND} ${STAGEDIR}${PREFIX}/lib/audacity -name '*.so*' -exec ${STRIP_CMD} {} +
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|