blob: 8c7487b93a4ea83c87430a70a9d96ef0ff0128dc (
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
|
# New ports collection makefile for: sox - Sound Exchange
# Date created: 17 Oct 1994
# Whom: torstenb
#
# $FreeBSD$
#
PORTNAME= sox
PORTVERSION= 12.17.8
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sox
MAINTAINER= dnelson@allantgroup.com
COMMENT= SOund eXchange - universal sound sample translator
CONFLICTS= play-[0-9]*
MAN1= sox.1 play.1 soxexam.1
MLINKS= play.1 rec.1 sox.1 soxmix.1
GNU_CONFIGURE= yes
MAKE_ENV= PLAY_SUPPORT=1
OPTIONS= LAME "Enable mp3 encoding with LAME" off \
MAD "Enable mp3 decoding with MAD" off \
VORBIS "Enable Ogg Vorbis support" off
.include <bsd.port.pre.mk>
.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD)
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.endif
.if defined(WITH_VORBIS)
CONFIGURE_ARGS+= --enable-ogg-vorbis
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+= --disable-ogg-vorbis
.endif
.if defined(WITH_LAME)
CONFIGURE_ARGS+= --enable-lame
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
.else
CONFIGURE_ARGS+= --disable-lame
.endif
.if defined(WITH_MAD)
CONFIGURE_ARGS+= --enable-mad
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
.else
CONFIGURE_ARGS+= --disable-mad
.endif
.include <bsd.port.post.mk>
|