1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/audio/aubio/Makefile
Thomas Zander 8337fc6d5f Chase libsndfile 1.0.30 update.
Details:
- Missing symbol sf_version_string, not auto-resolved by pkg + rebuild.
- Bump PORTREVISION for consumers.
2020-10-01 08:56:20 +00:00

77 lines
1.9 KiB
Makefile

# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= aubio
PORTVERSION= 0.4.7
PORTREVISION?= 4
CATEGORIES?= audio
MASTER_SITES= http://aubio.org/pub/
MAINTAINER?= jhale@FreeBSD.org
COMMENT?= Library for audio labelling
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES+= pkgconfig tar:bzip2
.if !defined(SLAVEPORT)
USES+= python:build waf
USE_LDCONFIG= yes
OPTIONS_GROUP= DOCS
OPTIONS_GROUP_DOCS= DOCS DOXYGEN MANPAGES
OPTIONS_DEFINE= COMPLEX FFMPEG FFTW JACK SAMPLERATE SNDFILE TEST
OPTIONS_DEFAULT= FFTW JACK MANPAGES SAMPLERATE SNDFILE
OPTIONS_SUB= yes
COMPLEX_DESC= Compile with C99 complex.h
COMPLEX_CONFIGURE_ENABLE= complex
DOCS_BUILD_DEPENDS= ${PY_SPHINX}
DOCS_CONFIGURE_ENABLE= sphinx
DOCS_BINARY_ALIAS= sphinx-build=sphinx-build-${PYTHON_VER}
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CONFIGURE_ENABLE= doxygen
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_ENABLE= avcodec
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_CONFIGURE_ENABLE= jack
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_ENABLE= samplerate
FFTW_DESC= Use single precision FFTW3 instead of built-in OOURA
FFTW_CONFIGURE_ENABLE= fftw3f
FFTW_BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
FFTW_LIB_DEPENDS= libfftw3f.so:math/fftw3-float
MANPAGES_BUILD_DEPENDS= txt2man:textproc/txt2man
MANPAGES_CONFIGURE_ENABLE= manpages
MANPAGES_CONFIGURE_ON= --mandir=${MANPREFIX}/man
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_ENABLE= sndfile
TEST_MAKE_ARGS= --enable-tests
TEST_MAKE_ARGS_OFF= --disable-tests
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e \
'/pkgconfig/s|$${LIBDIR}|&data|' ${WRKSRC}/waflib/TaskGen.py
post-install:
.for b in mfcc notes onset pitch quiet track
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aubio${b}
.endfor
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaubio.so
.endif # !defined(SLAVEPORT)
.include <bsd.port.mk>