freebsd-ports/multimedia/vapoursynth/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

131 lines
3.5 KiB
Makefile

PORTNAME= vapoursynth
DISTVERSION= R54
PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Video processing framework with simplicity in mind
WWW= https://www.vapoursynth.com/
LICENSE= LGPL21+
USE_GITHUB= yes
USES= autoreconf gmake libtool localbase pathfix pkgconfig
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
DATADIR= ${PREFIX}/lib/vapoursynth
OPTIONS_DEFINE= DEBUG DOCS FRAME_GUARD
OPTIONS_DEFAULT=${OPTIONS_GROUP_COMPS} ${OPTIONS_GROUP_PLUGINS}
OPTIONS_SUB= yes
OPTIONS_DEFINE_amd64= SIMD
OPTIONS_DEFINE_i386= SIMD
OPTIONS_DEFAULT_amd64= SIMD
OPTIONS_GROUP= COMPS PLUGINS
COMPS_DESC= Components
OPTIONS_GROUP_COMPS= CORE PYTHON VSPIPE VSSCRIPT
PLUGINS_DESC= Plugins
OPTIONS_GROUP_PLUGINS= ASS EEDI3 IMAGEMAGICK MISCFILTERS MORPHO TESSERACT \
REMOVEGRAIN VINVERSE VIVTC
# General options
DEBUG_CONFIGURE_ENABLE= debug
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
DOCS_USES= makeinfo
DOCS_INFO= VapourSynth
DOCS_PORTDOCS= *
FRAME_GUARD_DESC= Check integrity after each filter
FRAME_GUARD_CONFIGURE_ENABLE= guard-pattern
# VSSCRIPT or REMOVEGRAIN
SIMD_BUILD_DEPENDS= nasm:devel/nasm
SIMD_CONFIGURE_ENABLE= x86-asm
# COMPS group
CORE_DESC= Core library
CORE_BUILD_DEPENDS= sekrit-twc-zimg>=2.9.3:graphics/sekrit-twc-zimg
CORE_LIB_DEPENDS= libzimg.so:graphics/sekrit-twc-zimg
CORE_USES= compiler:c++11-lib
CORE_CONFIGURE_ENABLE= core
PYTHON_USES= python:3.3+
PYTHON_USE= python=cython
PYTHON_VARS= BINARY_ALIAS=cython=cython-${PYTHON_VER}
PYTHON_CONFIGURE_ENABLE= python-module
PYTHON_IMPLIES= CORE
VSPIPE_DESC= Command line interface
VSPIPE_USES= compiler:c++11-lib
VSPIPE_CONFIGURE_ENABLE= vspipe
VSPIPE_IMPLIES= VSSCRIPT
VSSCRIPT_DESC= Scripting library
VSSCRIPT_USES= compiler:c++11-lib python:3.3+
VSSCRIPT_CONFIGURE_ENABLE= vsscript
# PLUGINS group
ASS_DESC= Subtitles rendering via libass
ASS_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libass.so:multimedia/libass
ASS_USES= iconv
ASS_CONFIGURE_ENABLE= subtext
EEDI3_DESC= Very slow edge directed interpolation
EEDI3_CONFIGURE_ENABLE= eedi3
IMAGEMAGICK_USES= compiler:c++11-lib magick:7
IMAGEMAGICK_CONFIGURE_ENABLE= imwri
TESSERACT_DESC= Optical Character Recognition via Tesseract
TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract
TESSERACT_CONFIGURE_ENABLE= ocr
MISCFILTERS_DESC= Miscellaneous filters
MISCFILTERS_CONFIGURE_ENABLE= miscfilters
MORPHO_DESC= Morphological filter
MORPHO_CONFIGURE_ENABLE= morpho
REMOVEGRAIN_DESC= 3x3 median and convolution denoising
REMOVEGRAIN_CONFIGURE_ENABLE= removegrain
VINVERSE_DESC= Remove residual combing
VINVERSE_CONFIGURE_ENABLE= vinverse
VIVTC_DESC= Field matching, inverse telecine and decimation
VIVTC_CONFIGURE_ENABLE= vivtc
post-patch:
@${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \
-e '/AC_SEARCH.*libiconv/d' \
-e '/test/s/[^ ]*libiconv.*-a //' \
${WRKSRC}/configure.ac
post-build-DOCS-on:
@${DO_MAKE_BUILD} html texinfo -C${WRKSRC}/doc
@${DO_MAKE_BUILD} info -C${WRKSRC}/doc/_build/texinfo
@if [ -n "${PORT_OPTIONS:MVSPIPE}" ]; then \
${DO_MAKE_BUILD} man -C${WRKSRC}/doc; \
fi
post-install-DOCS-on:
${INSTALL_DATA} ${WRKSRC}/doc/_build/texinfo/VapourSynth.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}
(cd ${WRKSRC}/doc/_build/html && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
@if [ -n "${PORT_OPTIONS:MVSPIPE}" ]; then \
${INSTALL_MAN} -v ${WRKSRC}/doc/_build/man/vspipe.1 \
${STAGEDIR}${PREFIX}/share/man/man1; \
fi
.include <bsd.port.mk>