1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/audio/libsamplerate/Makefile
Dmitry Marakasov 0085f80439 - Switch to new test framework
Approved by:	portmgr blanket
2018-02-24 09:02:59 +00:00

50 lines
1.2 KiB
Makefile

# Created by: <dmagda+libsamplerate@ee.ryerson.ca>
# $FreeBSD$
PORTNAME= libsamplerate
PORTVERSION= 0.1.9
CATEGORIES= audio
MASTER_SITES= http://www.mega-nerd.com/SRC/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Secret Rabbit Code: a Sample Rate Converter for audio
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe libtool pathfix pkgconfig
USE_LDCONFIG= yes
CPE_VENDOR= ${CPE_PRODUCT}_project
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
OPTIONS_DEFINE= CPU_CLIP DOCS EXAMPLES
CPU_CLIP_DESC= Allow machine-dependent clipping
.include <bsd.port.options.mk>
MAKE_ARGS+= htmldocdir=${PREFIX}/share/doc/libsamplerate
.if ${PORT_OPTIONS:MCPU_CLIP}
MANUAL_PACKAGE_BUILD= CPU_CLIP may customize the package for the build machine
.else
CONFIGURE_ARGS+= --disable-cpu-clip
.endif
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS += ${LOCALBASE}/lib/libfftw3.so:math/fftw3
.else
CONFIGURE_ARGS+= --disable-fftw
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
LIB_DEPENDS+= libsndfile.so:audio/libsndfile
.elif defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS += libsndfile>=0:audio/libsndfile
.else
CONFIGURE_ARGS+= --disable-sndfile
.endif
.include <bsd.port.mk>