Line 0
Link Here
|
|
|
1 |
# Created by: Marc van Woerkom <3d@FreeBSD.org> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= audacity |
5 |
PKGNAMESUFFIX= -devel |
6 |
PORTVERSION= 20200226 |
7 |
DISTVERSION= ec00a73 |
8 |
CATEGORIES= audio |
9 |
|
10 |
COMMENT= GUI editor for digital audio waveforms |
11 |
|
12 |
MAINTAINER= xxjack12xx@gmail.com |
13 |
|
14 |
LICENSE= GPLv2+ |
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
16 |
USES= autoreconf compiler:c++11-lib cpe desktop-file-utils dos2unix \ |
17 |
gettext-tools gmake gnome iconv libtool localbase pkgconfig \ |
18 |
shared-mime-info |
19 |
|
20 |
BUILD_DEPENDS= autogen:devel/autogen \ |
21 |
bash:shells/bash \ |
22 |
cmake:devel/cmake |
23 |
LIB_DEPENDS= libasound.so:audio/alsa-lib \ |
24 |
libexpat.so:textproc/expat2 \ |
25 |
libportaudio.so:audio/portaudio \ |
26 |
libsndfile.so:audio/libsndfile \ |
27 |
libsoxr.so:audio/libsoxr |
28 |
|
29 |
CONFLICTS_INSTALL= audacity-2.[0-9]* |
30 |
|
31 |
GNU_CONFIGURE= yes |
32 |
NLS_USES= gettext-runtime |
33 |
NLS_CONFIGURE_ENABLE= nls |
34 |
NLS_CONFIGURE_WITH= libintl-prefix="${LOCALBASE}" |
35 |
OPTIONS_SUB= yes |
36 |
USE_WX= 3.1+ |
37 |
WX_COMPS= wx |
38 |
INSTALLS_ICONS= yes |
39 |
PORTDOCS= README.txt |
40 |
DOS2UNIX_GLOB= *.c* *.h Makefile.* |
41 |
USE_GITHUB= yes |
42 |
|
43 |
OPTIONS_DEFINE= DEBUG DOCS DYNLOAD FFMPEG FLAC ID3TAG LADSPA LAME LV2 \ |
44 |
MAD MOD_NYQ_BENCH MOD_SCRIPT_PIPE NLS SBSMS SOUNDTOUCH \ |
45 |
SSE TWOLAME VAMP VORBIS VST |
46 |
OPTIONS_DEFAULT= FLAC ID3TAG LADSPA MAD SBSMS SOUNDTOUCH TWOLAME VAMP \ |
47 |
VORBIS VST |
48 |
|
49 |
OPTIONS_DEFAULT_amd64= SSE |
50 |
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MSSE} |
51 |
|
52 |
DYNLOAD_DESC= Enable dynamic loading of lame and FFmpeg |
53 |
LAME_DESC= Use lame for import and export support |
54 |
LV2_DESC= Add LV2 plug-in support |
55 |
MAD_DESC= Use libmad for mp2/3 decoding support |
56 |
MOD_SCRIPT_PIPE_DESC= mod-script-pipe scripting support |
57 |
MOD_NYQ_BENCH_DESC= Enable Nyquist Workbench |
58 |
SBSMS_DESC= Use libsbsms for pitch and tempo changing |
59 |
SOUNDTOUCH_DESC= Use libSoundTouch for pitch and tempo changing |
60 |
TWOLAME_DESC= Use libtwolame for MP2 export support |
61 |
VAMP_DESC= Vamp plug-in support |
62 |
VST_DESC= VST plug-in support |
63 |
|
64 |
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}" |
65 |
|
66 |
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} \ |
67 |
--disable-option-checking \ |
68 |
--enable-unicode \ |
69 |
--with-expat=system \ |
70 |
--with-lib-preference="local" \ |
71 |
--with-libsndfile=system \ |
72 |
--with-libsoxr=system \ |
73 |
--with-midi \ |
74 |
--with-portaudio=system \ |
75 |
--with-portmixer=yes \ |
76 |
--with-widgetextra |
77 |
|
78 |
CONFIGURE_SHELL?= ${LOCALBASE}/bin/bash |
79 |
|
80 |
DEBUG_CONFIGURE_WITH= debug |
81 |
|
82 |
DOCS_BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man \ |
83 |
docbook2man:textproc/docbook-utils |
84 |
|
85 |
DYNLOAD_BUILD_DEPENDS= ${LOCALBASE}/include/lame/lame.h:audio/lame \ |
86 |
${LOCALBASE}/libdata/pkgconfig/libavcodec.pc:multimedia/ffmpeg |
87 |
DYNLOAD_CONFIGURE_ENABLE= dynamic-loading |
88 |
# for audio/lame |
89 |
DYNLOAD_CPPFLAGS= -I${LOCALBASE}/include |
90 |
# for audio/lame |
91 |
DYNLOAD_LDFLAGS= -L${LOCALBASE}/lib |
92 |
|
93 |
FFMPEG_CONFIGURE_WITH= ffmpeg=system |
94 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
95 |
|
96 |
FLAC_CONFIGURE_WITH= libflac=system |
97 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
98 |
|
99 |
ID3TAG_CONFIGURE_WITH= libid3tag=system |
100 |
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag |
101 |
|
102 |
LADSPA_CONFIGURE_ENABLE= ladspa |
103 |
LADSPA_RUN_DEPENDS= listplugins:audio/ladspa |
104 |
|
105 |
LAME_CONFIGURE_ON= --with-lame=system |
106 |
# --without-lame is broken |
107 |
LAME_CONFIGURE_OFF= --with-lame |
108 |
LAME_CPPFLAGS= -I${LOCALBASE}/include |
109 |
LAME_LDFLAGS= -L${LOCALBASE}/lib |
110 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
111 |
|
112 |
LV2_CONFIGURE_WITH= lv2=system |
113 |
LV2_LIB_DEPENDS= liblilv-0.so:audio/lilv \ |
114 |
libsuil-0.so:audio/suil |
115 |
|
116 |
MAD_CONFIGURE_WITH= libmad=system |
117 |
MAD_LIB_DEPENDS= libmad.so:audio/libmad |
118 |
|
119 |
MOD_SCRIPT_PIPE_CONFIGURE_WITH= mod-script-pipe |
120 |
MOD_SCRIPT_PIPE_USES= python:3.6+ |
121 |
MOD_NYQ_BENCH_CONFIGURE_WITH= mod-nyq-bench |
122 |
MOD_NYQ_BENCH_USES= python:3.6+ |
123 |
|
124 |
SBSMS_CONFIGURE_WITH= sbsms |
125 |
|
126 |
SOUNDTOUCH_CONFIGURE_WITH= soundtouch=system |
127 |
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:audio/soundtouch |
128 |
|
129 |
SSE_CONFIGURE_ENABLE= sse |
130 |
|
131 |
TWOLAME_CONFIGURE_WITH= libtwolame=system |
132 |
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame |
133 |
|
134 |
VAMP_CONFIGURE_WITH= libvamp=system |
135 |
VAMP_LIB_DEPENDS= libvamp-hostsdk.so:audio/vamp-plugin-sdk |
136 |
|
137 |
VORBIS_CONFIGURE_WITH= libvorbis=system |
138 |
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \ |
139 |
libvorbis.so:audio/libvorbis |
140 |
|
141 |
VST_CONFIGURE_ENABLE= vst |
142 |
|
143 |
post-install: |
144 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
145 |
@${RM} ${STAGEDIR}${DOCSDIR}/LICENSE.txt |
146 |
|
147 |
post-install-DOCS-on: |
148 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
149 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
150 |
|
151 |
.include <bsd.port.mk> |