1994-10-23 01:16:15 +00:00
|
|
|
# New ports collection makefile for: sox - Sound Exchange
|
|
|
|
# Date created: 17 Oct 1994
|
|
|
|
# Whom: torstenb
|
|
|
|
#
|
1999-08-25 04:36:31 +00:00
|
|
|
# $FreeBSD$
|
1994-10-23 01:16:15 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 21:25:03 +00:00
|
|
|
PORTNAME= sox
|
2003-07-17 04:52:08 +00:00
|
|
|
PORTVERSION= 12.17.4
|
|
|
|
PORTREVISION= 0
|
1996-11-15 23:14:56 +00:00
|
|
|
CATEGORIES= audio
|
2001-01-01 19:18:53 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sox
|
1994-10-23 01:16:15 +00:00
|
|
|
|
2003-07-17 04:52:08 +00:00
|
|
|
MAINTAINER= dnelson@allantgroup.com
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= SOund eXchange - universal sound sample translator
|
1994-10-23 01:16:15 +00:00
|
|
|
|
2001-10-22 18:44:30 +00:00
|
|
|
MAN1= sox.1 play.1 soxexam.1
|
2002-01-17 19:22:41 +00:00
|
|
|
MLINKS= play.1 rec.1 sox.1 soxmix.1
|
2001-10-22 18:44:30 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2003-07-17 04:52:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libmp3lame.so.0)
|
|
|
|
WITH_LAME= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libmad.so.1)
|
|
|
|
WITH_MAD= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libvorbis.so.2)
|
|
|
|
WITH_VORBIS= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD)
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
.endif
|
|
|
|
|
2001-10-22 18:44:30 +00:00
|
|
|
.if defined(WITH_VORBIS)
|
2003-07-17 04:52:08 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ogg-vorbis
|
2002-07-20 15:32:43 +00:00
|
|
|
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
|
2001-10-22 18:44:30 +00:00
|
|
|
.else
|
2003-07-17 04:52:08 +00:00
|
|
|
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.1:${PORTSDIR}/audio/mad
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mad
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(WITH_LAME)
|
|
|
|
@${ECHO_MSG} "You can enable mp3 encoding by defining WITH_LAME."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_MAD)
|
|
|
|
@${ECHO_MSG} "You can enable mp3 decoding by defining WITH_MAD."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_VORBIS)
|
|
|
|
@${ECHO_MSG} "You can enable Ogg Vorbis support by defining WITH_VORBIS."
|
1999-12-24 19:28:04 +00:00
|
|
|
.endif
|
|
|
|
|
2003-07-17 04:52:08 +00:00
|
|
|
.include <bsd.port.post.mk>
|