freebsd-ports/audio/aubio/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

76 lines
2 KiB
Makefile

PORTNAME= aubio
PORTVERSION= 0.4.9
PORTREVISION?= 1
CATEGORIES?= audio
MASTER_SITES= https://aubio.org/pub/
MAINTAINER?= jhale@FreeBSD.org
COMMENT?= Library for audio labelling
WWW= https://aubio.org/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES+= cpe pkgconfig tar:bzip2
BINARY_ALIAS= python=${PYTHON_CMD}
.if !defined(SLAVEPORT)
USES+= python:build,3.6+ waf
USE_LDCONFIG= yes
OPTIONS_GROUP= DOCS
OPTIONS_GROUP_DOCS= DOCS DOXYGEN MANPAGES
OPTIONS_DEFINE= COMPLEX FFMPEG FFTW JACK SAMPLERATE SNDFILE TEST
OPTIONS_DEFAULT= FFMPEG FFTW JACK MANPAGES SAMPLERATE SNDFILE
OPTIONS_SUB= yes
COMPLEX_DESC= Compile with C99 complex.h
COMPLEX_CONFIGURE_ENABLE= complex
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
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>