freebsd-ports/audio/sox/Makefile
Kirill Ponomarev 0b250ff8af Update to 12.17.7
PR:		ports/75339
Submitted by:	maintainer
2004-12-21 10:42:02 +00:00

76 lines
1.7 KiB
Makefile

# New ports collection makefile for: sox - Sound Exchange
# Date created: 17 Oct 1994
# Whom: torstenb
#
# $FreeBSD$
#
PORTNAME= sox
PORTVERSION= 12.17.7
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
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libmp3lame.so.0)
WITH_LAME= YES
.endif
.if exists(${LOCALBASE}/lib/libmad.so.2)
WITH_MAD= YES
.endif
.if exists(${LOCALBASE}/lib/libvorbis.so.3)
WITH_VORBIS= YES
.endif
.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
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."
.endif
.include <bsd.port.post.mk>