b7f05445c0
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)
71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
PORTNAME= lsp-plugins
|
|
DISTVERSION= 1.2.1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= https://github.com/sadko4u/lsp-plugins/releases/download/${DISTVERSION}/
|
|
PKGNAMESUFFIX= -lv2
|
|
DISTFILES= ${PORTNAME}-src-${DISTVERSION}.tar.gz
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Collection of free LV2 plugins
|
|
WWW= https://lsp-plug.in/
|
|
|
|
LICENSE= LGPL3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc64 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= assembly only for these architectures
|
|
BROKEN_armv7= arch/arm/neon-d32/copy.h:371:17: error: operand must be an immediate in the range [0,15], see https://github.com/sadko4u/lsp-plugins/issues/266
|
|
BROKEN_i386= error: inline assembly requires more registers than available, see https://github.com/sadko4u/lsp-plugins/issues/266
|
|
|
|
BUILD_DEPENDS= lv2>0:audio/lv2
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libsndfile.so:audio/libsndfile
|
|
|
|
USES= gmake gl gnome iconv:wchar_t pkgconfig xorg # compiler:c11
|
|
USE_GNOME= cairo
|
|
USE_XORG= x11
|
|
USE_GL= gl
|
|
|
|
BINARY_ALIAS= g++=${CXX} c++=${CXX}
|
|
MAKE_ARGS= BUILD_MODULES='lv2' ETC_PATH=${PREFIX}/etc VERSION=${DISTVERSION}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAKE_ARGS= FEATURES+='lv2'
|
|
|
|
OPTIONS_DEFINE= JACK VST2
|
|
OPTIONS_DEFAULT= JACK VST2
|
|
OPTIONS_SUB= yes
|
|
|
|
JACK_DESC= Build Jack plugins
|
|
JACK_MAKE_ARGS= FEATURES+='jack'
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack
|
|
|
|
VST2_DESC= Build VST2 plugins
|
|
VST2_MAKE_ARGS= FEATURES+='vst2'
|
|
|
|
post-patch:
|
|
# FreeBSD does not have exp10(3), use pow(3) instead
|
|
@${GREP} -lR "exp10(" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|exp10(|pow(10.,|'
|
|
@${GREP} -lR "<alloca\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<alloca\.h>|<stdlib.h>|'
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} config ${MAKE_ARGS}
|
|
|
|
post-install:
|
|
@${STRIP_CMD} \
|
|
${STAGEDIR}${PREFIX}/lib/lv2/lsp-plugins.lv2/lsp-*.so \
|
|
${STAGEDIR}${PREFIX}/lib/liblsp-r3d-glx-lib-1.0.1.so
|
|
|
|
post-install-JACK-on:
|
|
@${STRIP_CMD} \
|
|
${STAGEDIR}${PREFIX}/bin/lsp-* \
|
|
${STAGEDIR}${PREFIX}/lib/lsp-plugins/liblsp-plugins-jack-${PORTVERSION}.so
|
|
|
|
post-install-VST2-on:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/vst/lsp-plugins/*.so
|
|
|
|
.include <bsd.port.mk>
|