openbsd-ports/audio/sox/Makefile
naddy ffbb62be15 * make sox work on platforms where char defaults to unsigned
* sprintf -> snprintf, and opportunistically get rid of some strcpy()s

From: Matthias Kilian <kili@outback.escape.de>
2005-07-02 16:27:56 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2005/07/02 16:27:56 naddy Exp $
COMMENT= "SOund eXchange - universal sound sample translator"
DISTNAME= sox-12.17.7
PKGNAME= ${DISTNAME}p0
CATEGORIES= audio
HOMEPAGE= http://sox.sourceforge.net/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# gsm library has bad license
PERMIT_PACKAGE_CDROM= "no redistribution"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= "no redistribution"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m
MASTER_SITES= http://www.cnpbagwell.com/ \
${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
FLAVORS= mp3 vorbis
FLAVOR?=
.if ${FLAVOR:L:Mvorbis}
LIB_DEPENDS+= vorbis.3,vorbisenc.2,vorbisfile.4::audio/libvorbis
WANTLIB+= ogg
.else
CONFIGURE_ARGS+= --disable-ogg-vorbis
.endif
.if ${FLAVOR:L:Mmp3}
LIB_DEPENDS+= mad.2::audio/libmad mp3lame.0::audio/lame
.else
CONFIGURE_ARGS+= --disable-mad --disable-lame
.endif
do-regress:
@cd ${WRKSRC}/src && ./tests.sh && ./testall.sh
.include <bsd.port.mk>