Lines 6-30
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= sox |
8 |
PORTNAME= sox |
9 |
PORTVERSION= 12.17.3 |
9 |
PORTVERSION= 12.17.4 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 0 |
11 |
CATEGORIES= audio |
11 |
CATEGORIES= audio |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= sox |
13 |
MASTER_SITE_SUBDIR= sox |
14 |
|
14 |
|
15 |
MAINTAINER= dnelson@emsphone.com |
15 |
MAINTAINER= dnelson@allantgroup.com |
16 |
COMMENT= SOund eXchange - universal sound sample translator |
16 |
COMMENT= SOund eXchange - universal sound sample translator |
17 |
|
17 |
|
18 |
MAN1= sox.1 play.1 soxexam.1 |
18 |
MAN1= sox.1 play.1 soxexam.1 |
19 |
MLINKS= play.1 rec.1 sox.1 soxmix.1 |
19 |
MLINKS= play.1 rec.1 sox.1 soxmix.1 |
20 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
21 |
|
21 |
|
|
|
22 |
.include <bsd.port.pre.mk> |
23 |
|
24 |
.if exists(${LOCALBASE}/lib/libmp3lame.so.0) |
25 |
WITH_LAME= YES |
26 |
.endif |
27 |
|
28 |
.if exists(${LOCALBASE}/lib/libmad.so.1) |
29 |
WITH_MAD= YES |
30 |
.endif |
31 |
|
32 |
.if exists(${LOCALBASE}/lib/libvorbis.so.2) |
33 |
WITH_VORBIS= YES |
34 |
.endif |
35 |
|
36 |
.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD) |
37 |
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ |
38 |
LDFLAGS="-L${LOCALBASE}/lib" |
39 |
.endif |
40 |
|
22 |
.if defined(WITH_VORBIS) |
41 |
.if defined(WITH_VORBIS) |
23 |
CONFIGURE_ARGS+= --with-ogg-vorbisinc=${LOCALBASE}/include \ |
42 |
CONFIGURE_ARGS+= --enable-ogg-vorbis |
24 |
--with-ogg-vorbislib=${LOCALBASE}/lib |
|
|
25 |
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis |
43 |
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis |
26 |
.else |
44 |
.else |
27 |
CONFIGURE_ARGS+= --with-ogg-vorbisinc=no |
45 |
CONFIGURE_ARGS+= --disable-ogg-vorbis |
|
|
46 |
.endif |
47 |
|
48 |
.if defined(WITH_LAME) |
49 |
CONFIGURE_ARGS+= --enable-lame |
50 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
51 |
.else |
52 |
CONFIGURE_ARGS+= --disable-lame |
53 |
.endif |
54 |
|
55 |
.if defined(WITH_MAD) |
56 |
CONFIGURE_ARGS+= --enable-mad |
57 |
LIB_DEPENDS+= mad.1:${PORTSDIR}/audio/mad |
58 |
.else |
59 |
CONFIGURE_ARGS+= --disable-mad |
60 |
.endif |
61 |
|
62 |
pre-fetch: |
63 |
.if !defined(WITH_LAME) |
64 |
@${ECHO_MSG} "You can enable mp3 encoding by defining WITH_LAME." |
65 |
.endif |
66 |
.if !defined(WITH_MAD) |
67 |
@${ECHO_MSG} "You can enable mp3 decoding by defining WITH_MAD." |
68 |
.endif |
69 |
.if !defined(WITH_VORBIS) |
70 |
@${ECHO_MSG} "You can enable Ogg Vorbis support by defining WITH_VORBIS." |
28 |
.endif |
71 |
.endif |
29 |
|
72 |
|
30 |
.include <bsd.port.mk> |
73 |
.include <bsd.port.post.mk> |