openbsd-ports/audio/sox/Makefile

46 lines
1.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.36 2007/09/15 21:26:03 simon Exp $
1998-05-16 21:05:56 -04:00
COMMENT= SOund eXchange - universal sound sample translator
2006-10-18 11:41:06 -04:00
DISTNAME= sox-12.18.2
1998-05-16 21:05:56 -04:00
CATEGORIES= audio
HOMEPAGE= http://sox.sourceforge.net/
2000-09-10 12:05:01 -04:00
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
1999-06-03 16:42:39 -04:00
# gsm library has bad license
PERMIT_PACKAGE_CDROM= no redistribution
2005-02-22 17:04:41 -05:00
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= no redistribution
2005-02-22 17:04:41 -05:00
PERMIT_DISTFILES_FTP= Yes
2004-11-21 12:51:44 -05:00
WANTLIB= c m
2000-03-07 00:00:49 -05:00
2006-07-13 03:43:40 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sox/}
CONFIGURE_STYLE=gnu dest
CONFIGURE_ARGS= --disable-oss-dsp
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV= PLAY_SUPPORT=1
2000-09-10 12:05:01 -04:00
FLAVORS= mp3 vorbis
2000-09-10 12:05:01 -04:00
FLAVOR?=
1998-05-16 21:05:56 -04:00
.if ${FLAVOR:L:Mvorbis}
2006-08-01 08:13:28 -04:00
LIB_DEPENDS+= vorbis.>=3,vorbisenc.>=2,vorbisfile.>=4::audio/libvorbis
2004-11-21 12:51:44 -05:00
WANTLIB+= ogg
.else
CONFIGURE_ARGS+= --disable-ogg-vorbis
.endif
.if ${FLAVOR:L:Mmp3}
2006-08-01 08:13:28 -04:00
LIB_DEPENDS+= mad.>=2::audio/libmad mp3lame::audio/lame
.else
CONFIGURE_ARGS+= --disable-mad --disable-lame
.endif
do-regress:
@cd ${WRKSRC}/src && ./tests.sh && ./testall.sh
1998-05-16 21:05:56 -04:00
.include <bsd.port.mk>