1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= libsamplerate |
4 |
PORTVERSION= 0.1.9 |
5 |
CATEGORIES= audio |
6 |
MASTER_SITES= http://www.mega-nerd.com/SRC/ |
7 |
|
8 |
MAINTAINER= ports@MidnightBSD.org |
9 |
COMMENT= Secret Rabbit Code: a Sample Rate Converter for audio |
10 |
|
11 |
LICENSE= gpl2 |
12 |
|
13 |
USES= cpe libtool pathfix pkgconfig |
14 |
USE_LDCONFIG= yes |
15 |
CPE_VENDOR= ${CPE_PRODUCT}_project |
16 |
GNU_CONFIGURE= yes |
17 |
INSTALL_TARGET= install-strip |
18 |
|
19 |
OPTIONS_DEFINE= CPU_CLIP DOCS EXAMPLES |
20 |
CPU_CLIP_DESC= Allow machine-dependent clipping |
21 |
|
22 |
.include <bsd.mport.options.mk> |
23 |
|
24 |
MAKE_ARGS+= htmldocdir=${PREFIX}/share/doc/libsamplerate |
25 |
|
26 |
.if ${PORT_OPTIONS:MCPU_CLIP} |
27 |
MANUAL_PACKAGE_BUILD= CPU_CLIP may customize the package for the build machine |
28 |
.else |
29 |
CONFIGURE_ARGS+= --disable-cpu-clip |
30 |
.endif |
31 |
|
32 |
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING) |
33 |
BUILD_DEPENDS += ${LOCALBASE}/lib/libfftw3.so:math/fftw3 |
34 |
.else |
35 |
CONFIGURE_ARGS+= --disable-fftw |
36 |
.endif |
37 |
|
38 |
.if ${PORT_OPTIONS:MEXAMPLES} |
39 |
LIB_DEPENDS+= libsndfile.so:audio/libsndfile |
40 |
.elif defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING) |
41 |
BUILD_DEPENDS += libsndfile>=0:audio/libsndfile |
42 |
.else |
43 |
CONFIGURE_ARGS+= --disable-sndfile |
44 |
.endif |
45 |
|
46 |
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING) |
47 |
check regression-test test: build |
48 |
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} \ |
49 |
check |
50 |
.endif |
51 |
|
52 |
.include <bsd.port.mk> |