1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/audio/aubio/Makefile
Danilo G. Baio 75a5f7f076 Update Sphinx
- Repocopy textproc/py-sphinx to textproc/py-sphinx18

  Update it to 1.8.5 (latest version from 1.8.X).
  This version supports Python 2 and 3.
  Add test target.

- textproc/py-sphinx: Update to 3.0.2

  Python 3 only (3.5+).
  Add test target.

- Mk/Uses/python.mk: Add PY_SPHINX

  Shared macro to use with flavors and not break
  ports with USES=python (all versions).

  Python >=3.5  --> textproc/py-sphinx (v3.0.2)
  Python < 3.5  --> textproc/py-sphinx18 (v1.8.5)

  All ports that uses sphinx were changed to use the new variable
  ${PY_SPHINX} in the dependency line, exceptions:

    * Ports that fails to build with sphinx 3.0.2 because of code.
      They are pointing to textproc/py-sphinx18 directly.
      There aren't many ports.

    * Ports that doesn't know Python flavors.

- Add several patches to fix Sphinx consumers

  The most common issues are related with pkg-plist, the output
  files from Sphinx changes between versions, keep this dynamically
  is the better approach.

  This will save time in future sphinx updates.

PR:		245629
Exp-run by:	antoine
2020-05-11 23:51:58 +00:00

77 lines
1.9 KiB
Makefile

# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= aubio
PORTVERSION= 0.4.7
PORTREVISION?= 3
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>