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

106 lines
3.0 KiB
Makefile

PORTNAME= zynaddsubfx
DISTVERSION= 3.0.6
PORTEPOCH= 2
CATEGORIES= audio
MAINTAINER= hselasky@FreeBSD.org
COMMENT= Realtime software synthesizer
WWW= http://zynaddsubfx.sourceforge.net/
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS= libfftw3f.so:math/fftw3-float \
libmxml.so:textproc/mxml \
liblo.so:audio/liblo
USES= cmake:insource compiler:c++11-lang pkgconfig tar:bzip2
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_TUPLE= DISTRHO:DPF:86a621bfd86922a49ce593fec2a618a1e0cc6ef3:d/DPF \
fundamental:rtosc:2aec26327e0139131c9bd7439c9928370fccf1ce:e/rtosc \
zynaddsubfx:instruments:c5c912131b31df5fdf372d2f06a25aaf2375837f:f/instruments
OPTIONS_DEFINE= BASH OSS JACK GUI PORTAUDIO SNDIO LASH DOCS EXAMPLES
OPTIONS_DEFAULT= OSS JACK GUI PORTAUDIO
OPTIONS_RADIO= AUDIO
OPTIONS_RADIO_AUDIO= ALSAMIDI DSSI
OPTIONS_SUB= yes
ALSAMIDI_DESC= MIDI input through ALSA
DSSI_DESC= DSSI Plugin
ALSAMIDI_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSAMIDI_CMAKE_OFF= -DAlsaEnable:BOOL=OFF
BASH_DESC= Support for bash auto-completion
BASH_BUILD_DEPENDS= bash-completion>=0:shells/bash-completion
DSSI_LIB_DEPENDS= libdssialsacompat.so:audio/libdssialsacompat
DSSI_BUILD_DEPENDS= dssi>0:audio/dssi
DSSI_RUN_DEPENDS= dssi>0:audio/dssi
DSSI_CFLAGS= -I${LOCALBASE}/include/dssi
DSSI_CMAKE_OFF= -DDssiEnable:BOOL=OFF
GUI_LIB_DEPENDS= libntk.so:x11-toolkits/ntk \
libpng.so:graphics/png \
libfontconfig.so:x11-fonts/fontconfig
GUI_CMAKE_ON= -DGuiModule:STRING=ntk
GUI_CMAKE_OFF= -DGuiModule:STRING=OFF
GUI_USE+= XORG=x11,xext,xfixes,xcursor,xrender,ice,sm,xpm,xinerama,xft
GUI_USE+= GL=gl,glu
GUI_USES= gl gnome jpeg xorg
OSS_CMAKE_ON= -DOssEnable:BOOL=ON
OSS_CMAKE_OFF= -DOssEnable:BOOL=OFF
LASH_LIB_DEPENDS= liblash.so:audio/lash
LASH_CMAKE_OFF= -DLashEnable:BOOL=OFF
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_CMAKE_OFF= -DJackEnable:BOOL=OFF
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_CMAKE_OFF= -DPaEnable:BOOL=OFF
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CMAKE_OFF= -DSndioEnable:BOOL=OFF
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS.txt NEWS.txt
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= adsynth.txt controller.txt envelope.txt filter.txt intro.txt \
lfo.txt mididefaults.txt nrpn.txt saving.txt zynaddsubfx.txt
DOCSRCDIR3= ${WRKSRC}/doc/images
DOCSDIR3= ${DOCSDIR}/doc/images
DOC_FILES3= *.png *.jpg
PORTEXAMPLES= *
CMAKE_ARGS+= -DZYN_DATADIR:STRING=${DATADIR}
CMAKE_ARGS+= -DZYN_EXAMPLESDIR:STRING=${EXAMPLESDIR}
.include <bsd.port.pre.mk>
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/banks \
${STAGEDIR}${DOCSDIR} \
${STAGEDIR}${DOCSDIR2} \
${STAGEDIR}${DOCSDIR3} \
${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/instruments/banks && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/banks)
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
.include <bsd.port.post.mk>