1994-10-23 02:16:15 +01:00
|
|
|
# New ports collection makefile for: sox - Sound Exchange
|
|
|
|
# Date created: 17 Oct 1994
|
|
|
|
# Whom: torstenb
|
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1994-10-23 02:16:15 +01:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= sox
|
2004-10-16 03:59:03 +02:00
|
|
|
PORTVERSION= 12.17.6
|
1996-11-16 00:14:56 +01:00
|
|
|
CATEGORIES= audio
|
2001-01-01 20:18:53 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sox
|
1994-10-23 02:16:15 +01:00
|
|
|
|
2003-07-17 06:52:08 +02:00
|
|
|
MAINTAINER= dnelson@allantgroup.com
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= SOund eXchange - universal sound sample translator
|
1994-10-23 02:16:15 +01:00
|
|
|
|
2004-08-19 14:47:48 +02:00
|
|
|
CONFLICTS= play-*
|
|
|
|
|
2001-10-22 20:44:30 +02:00
|
|
|
MAN1= sox.1 play.1 soxexam.1
|
2002-01-17 20:22:41 +01:00
|
|
|
MLINKS= play.1 rec.1 sox.1 soxmix.1
|
2001-10-22 20:44:30 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-10-16 03:59:03 +02:00
|
|
|
MAKE_ENV= PLAY_SUPPORT=1
|
2001-10-22 20:44:30 +02:00
|
|
|
|
2003-07-17 06:52:08 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libmp3lame.so.0)
|
|
|
|
WITH_LAME= YES
|
|
|
|
.endif
|
|
|
|
|
2003-12-07 02:27:06 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libmad.so.2)
|
2003-07-17 06:52:08 +02:00
|
|
|
WITH_MAD= YES
|
|
|
|
.endif
|
|
|
|
|
2004-10-16 03:59:03 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libvorbis.so.3)
|
2003-07-17 06:52:08 +02:00
|
|
|
WITH_VORBIS= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD)
|
2004-10-16 03:59:03 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-07-17 06:52:08 +02:00
|
|
|
.endif
|
|
|
|
|
2001-10-22 20:44:30 +02:00
|
|
|
.if defined(WITH_VORBIS)
|
2003-07-17 06:52:08 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ogg-vorbis
|
2003-12-20 17:14:14 +01:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2001-10-22 20:44:30 +02:00
|
|
|
.else
|
2003-07-17 06:52:08 +02: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
|
2003-12-08 08:56:05 +01:00
|
|
|
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
|
2003-07-17 06:52:08 +02:00
|
|
|
.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 20:28:04 +01:00
|
|
|
.endif
|
|
|
|
|
2003-07-17 06:52:08 +02:00
|
|
|
.include <bsd.port.post.mk>
|