freebsd-ports/audio/fluidsynth/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

67 lines
1.6 KiB
Makefile

PORTNAME= fluidsynth
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.8
CATEGORIES= audio
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications
WWW= https://www.fluidsynth.org/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake cpe gnome pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= FluidSynth
USE_GNOME= glib20
USE_LDCONFIG= yes
# would require unreleased libinstpatch >= 1.1.0
CMAKE_OFF= enable-libinstpatch enable-midishare
LDFLAGS+= -lpthread
OPTIONS_DEFINE= ALSA DBUS JACK LADSPA LASH PORTAUDIO PULSEAUDIO \
READLINE SDL SNDFILE SNDIO
OPTIONS_DEFAULT= JACK READLINE
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_CMAKE_BOOL= enable-jack
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CMAKE_BOOL= enable-alsa
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_CMAKE_BOOL= enable-dbus
LADSPA_BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa
LADSPA_RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa
LADSPA_USES= localbase
LADSPA_CMAKE_BOOL= enable-ladspa
LASH_LIB_DEPENDS= liblash.so:audio/lash
LASH_CMAKE_BOOL= enable-lash
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_CMAKE_BOOL= enable-portaudio
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CMAKE_BOOL= enable-pulseaudio
READLINE_USES= readline
READLINE_CMAKE_BOOL= enable-readline
SDL_USES= sdl
SDL_USE= SDL=sdl2
SDL_CMAKE_BOOL= enable-sdl2
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
SNDFILE_CMAKE_BOOL= enable-libsndfile
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CMAKE_BOOL= enable-sndio
post-patch:
${CP} ${FILESDIR}/fluid_sndio.c ${WRKSRC}/src/drivers/
.include <bsd.port.mk>