blob: fa7fff6b58631256ff96390918ba6b50fcd84ceb (
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
|
# Created by: torstenb
PORTNAME= sox
PORTVERSION= 14.4.2
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= SF
PATCHFILES= 0001-Remove-pure-attribute-from-functions-with-side-effec.patch:-p1
PATCH_SITES= https://sourceforge.net/p/sox/patches/104/attachment/
MAINTAINER= dnelson@allantgroup.com
COMMENT= SOund eXchange - universal sound sample translator
LICENSE= LGPL21 GPLv2
LICENSE_COMB= dual
LIB_DEPENDS= libltdl.so:devel/libltdl
CONFLICTS= play-[0-9]*
GNU_CONFIGURE= yes
USES= autoreconf cpe libtool localbase:ldflags pkgconfig
USE_LDCONFIG= yes
OPTIONS_DEFINE= AMRNB AMRWB FLAC GSM ID3TAG LADSPA LAME MAD OPUS PNG \
SNDFILE TWOLAME VORBIS WAVPACK
OPTIONS_DEFAULT= AO FLAC GSM ID3TAG MAD OPUS OSS PNG SNDFILE VORBIS
OPTIONS_GROUP= SOUND
OPTIONS_GROUP_SOUND= ALSA AO OSS PULSEAUDIO SNDIO
# Default LAME to off for packages so we don't end up RESTRICTED
.if !defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+= LAME
.endif
AMRNB_DESC= AMR Speech Codec (Narrowband)
AMRWB_DESC= AMR Speech Codec (Wideband)
GSM_DESC= Use libgsm from ports (else use bundled lib)
PNG_DESC= PNG spectrogram creation
LDFLAGS+= -lpthread
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
CONFIGURE_ARGS+= --with-gsm
CONFIGURE_ARGS+= --disable-stack-protector
ALSA_CONFIGURE_WITH= alsa
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
AO_CONFIGURE_WITH= ao
AO_LIB_DEPENDS= libao.so:audio/libao
AMRNB_CONFIGURE_WITH= amrnb
AMRNB_LIB_DEPENDS= libamrnb.so:audio/libamrnb
AMRWB_CONFIGURE_WITH= amrwb
AMRWB_LIB_DEPENDS= libamrwb.so:audio/libamrwb
VORBIS_CONFIGURE_WITH= oggvorbis
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
SNDFILE_CONFIGURE_WITH= sndfile
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
LADSPA_CONFIGURE_WITH= ladspa
LADSPA_RUN_DEPENDS= ${LOCALBASE}/lib/ladspa/filter.so:audio/ladspa
LADSPA_BUILD_DEPENDS= ${LOCALBASE}/lib/ladspa/filter.so:audio/ladspa
LAME_CONFIGURE_WITH= lame
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame
FLAC_CONFIGURE_WITH= flac
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
MAD_CONFIGURE_WITH= mad
MAD_LIB_DEPENDS= libmad.so:audio/libmad
OSS_CONFIGURE_WITH= oss
PNG_CONFIGURE_WITH= png
PNG_LIB_DEPENDS= libpng.so:graphics/png
PULSEAUDIO_CONFIGURE_WITH= pulseaudio
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
SNDIO_CONFIGURE_WITH= sndio
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
GSM_LIB_DEPENDS= libgsm.so:audio/gsm
ID3TAG_CONFIGURE_WITH= id3tag
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag
WAVPACK_CONFIGURE_WITH= wavpack
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack
TWOLAME_CONFIGURE_WITH= twolame
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame
OPUS_CONFIGURE_WITH= opus
OPUS_LIB_DEPENDS= libopusfile.so:audio/opusfile
# We cannot ask for gsm to be enabled without it trying to use external gsm,
# so force the autoconf checks to fail
GSM_CONFIGURE_ENV_OFF= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
ac_cv_lib_gsm_gsm_create=no
INSTALL_TARGET= install-strip
.include <bsd.port.mk>
|