diff options
author | leot <leot@pkgsrc.org> | 2016-05-05 07:03:47 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2016-05-05 07:03:47 +0000 |
commit | 40b55439449db04212c9625709791f28b514c3bd (patch) | |
tree | 86f2d67f8363348f335e84eab4cab81545d00338 /multimedia/ffmpeg3 | |
parent | 72ee135202bd2d89e3a08073fa309c7c8cc27e54 (diff) | |
download | pkgsrc-40b55439449db04212c9625709791f28b514c3bd.tar.gz |
Add a new "doc" option to install multimedia/ffmpeg[23] HTML documentation,
disabled by default.
Fix PR pkg/51113 reported by Joern Clausen.
ffmpeg needs texi2html features that can be not available in the version
provided natively by the platform.
While here also add a PRINT_PLIST_AWK to automa{g,t}ically print a PLIST that
need less manual intervention.
Bump PKGREVISION.
Diffstat (limited to 'multimedia/ffmpeg3')
-rw-r--r-- | multimedia/ffmpeg3/Makefile | 6 | ||||
-rw-r--r-- | multimedia/ffmpeg3/Makefile.common | 4 | ||||
-rw-r--r-- | multimedia/ffmpeg3/PLIST | 60 | ||||
-rw-r--r-- | multimedia/ffmpeg3/options.mk | 15 |
4 files changed, 50 insertions, 35 deletions
diff --git a/multimedia/ffmpeg3/Makefile b/multimedia/ffmpeg3/Makefile index 1d81cdb093d..f29365b0b13 100644 --- a/multimedia/ffmpeg3/Makefile +++ b/multimedia/ffmpeg3/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2016/04/07 05:28:20 adam Exp $ +# $NetBSD: Makefile,v 1.6 2016/05/05 07:03:47 leot Exp $ PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg3/} +PKGREVISION= 1 MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ffmpeg.mplayerhq.hu/ COMMENT= Decoding, encoding and streaming software (v3.x) @@ -25,6 +26,9 @@ CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q} CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS} .endif +PRINT_PLIST_AWK+= /html/ { $$0 = "$${PLIST.doc}" $$0 } +PRINT_PLIST_AWK+= /opencl/ { $$0 = "$${PLIST.opencl}" $$0 } + TEST_TARGET= check post-install: diff --git a/multimedia/ffmpeg3/Makefile.common b/multimedia/ffmpeg3/Makefile.common index 793802d14bd..f919ff19898 100644 --- a/multimedia/ffmpeg3/Makefile.common +++ b/multimedia/ffmpeg3/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.5 2016/04/29 19:26:25 adam Exp $ +# $NetBSD: Makefile.common,v 1.6 2016/05/05 07:03:47 leot Exp $ # used by multimedia/ffmpeg3/Makefile # used by multimedia/ffplay3/Makefile @@ -13,7 +13,7 @@ PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg3/patches USE_LANGUAGES= c99 USE_LIBTOOL= yes -USE_TOOLS+= gmake texi2html pod2man perl +USE_TOOLS+= gmake pod2man perl HAS_CONFIGURE= yes CONFIGURE_ARGS+= --cc=${CC:Q} CONFIGURE_ARGS+= --disable-debug diff --git a/multimedia/ffmpeg3/PLIST b/multimedia/ffmpeg3/PLIST index 50322a7261f..3a01d5dfe2a 100644 --- a/multimedia/ffmpeg3/PLIST +++ b/multimedia/ffmpeg3/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2016/03/11 15:42:59 fhajny Exp $ +@comment $NetBSD: PLIST,v 1.4 2016/05/05 07:03:47 leot Exp $ bin/ffmpeg3 bin/ffprobe3 bin/ffserver3 @@ -165,42 +165,42 @@ man/man3/libavutil3.3 man/man3/libswresample3.3 man/man3/libswscale3.3 share/doc/ffmpeg3/build_system.txt -share/doc/ffmpeg3/developer.html +${PLIST.doc}share/doc/ffmpeg3/developer.html share/doc/ffmpeg3/errno.txt -share/doc/ffmpeg3/faq.html -share/doc/ffmpeg3/fate.html -share/doc/ffmpeg3/ffmpeg-all.html -share/doc/ffmpeg3/ffmpeg-bitstream-filters.html -share/doc/ffmpeg3/ffmpeg-codecs.html -share/doc/ffmpeg3/ffmpeg-devices.html -share/doc/ffmpeg3/ffmpeg-filters.html -share/doc/ffmpeg3/ffmpeg-formats.html -share/doc/ffmpeg3/ffmpeg-protocols.html -share/doc/ffmpeg3/ffmpeg-resampler.html -share/doc/ffmpeg3/ffmpeg-scaler.html -share/doc/ffmpeg3/ffmpeg-utils.html -share/doc/ffmpeg3/ffmpeg.html +${PLIST.doc}share/doc/ffmpeg3/faq.html +${PLIST.doc}share/doc/ffmpeg3/fate.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-all.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-bitstream-filters.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-codecs.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-devices.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-filters.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-formats.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-protocols.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-resampler.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-scaler.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg-utils.html +${PLIST.doc}share/doc/ffmpeg3/ffmpeg.html share/doc/ffmpeg3/ffmpeg.txt -share/doc/ffmpeg3/ffprobe-all.html -share/doc/ffmpeg3/ffprobe.html -share/doc/ffmpeg3/ffserver-all.html -share/doc/ffmpeg3/ffserver.html +${PLIST.doc}share/doc/ffmpeg3/ffprobe-all.html +${PLIST.doc}share/doc/ffmpeg3/ffprobe.html +${PLIST.doc}share/doc/ffmpeg3/ffserver-all.html +${PLIST.doc}share/doc/ffmpeg3/ffserver.html share/doc/ffmpeg3/filter_design.txt -share/doc/ffmpeg3/general.html -share/doc/ffmpeg3/git-howto.html +${PLIST.doc}share/doc/ffmpeg3/general.html +${PLIST.doc}share/doc/ffmpeg3/git-howto.html share/doc/ffmpeg3/issue_tracker.txt -share/doc/ffmpeg3/libavcodec.html -share/doc/ffmpeg3/libavdevice.html -share/doc/ffmpeg3/libavfilter.html -share/doc/ffmpeg3/libavformat.html -share/doc/ffmpeg3/libavutil.html -share/doc/ffmpeg3/libswresample.html -share/doc/ffmpeg3/libswscale.html +${PLIST.doc}share/doc/ffmpeg3/libavcodec.html +${PLIST.doc}share/doc/ffmpeg3/libavdevice.html +${PLIST.doc}share/doc/ffmpeg3/libavfilter.html +${PLIST.doc}share/doc/ffmpeg3/libavformat.html +${PLIST.doc}share/doc/ffmpeg3/libavutil.html +${PLIST.doc}share/doc/ffmpeg3/libswresample.html +${PLIST.doc}share/doc/ffmpeg3/libswscale.html share/doc/ffmpeg3/mips.txt share/doc/ffmpeg3/multithreading.txt -share/doc/ffmpeg3/nut.html +${PLIST.doc}share/doc/ffmpeg3/nut.html share/doc/ffmpeg3/optimization.txt -share/doc/ffmpeg3/platform.html +${PLIST.doc}share/doc/ffmpeg3/platform.html share/doc/ffmpeg3/rate_distortion.txt share/doc/ffmpeg3/snow.txt share/doc/ffmpeg3/swresample.txt diff --git a/multimedia/ffmpeg3/options.mk b/multimedia/ffmpeg3/options.mk index ac47365e040..1705a4f3f46 100644 --- a/multimedia/ffmpeg3/options.mk +++ b/multimedia/ffmpeg3/options.mk @@ -1,14 +1,16 @@ -# $NetBSD: options.mk,v 1.1 2016/03/05 08:52:23 ryoon Exp $ +# $NetBSD: options.mk,v 1.2 2016/05/05 07:03:47 leot Exp $ # Global and legacy options PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 -PKG_SUPPORTED_OPTIONS= ass faac fdk-aac fontconfig freetype gnutls lame \ +PKG_SUPPORTED_OPTIONS= ass doc faac fdk-aac fontconfig freetype gnutls lame \ libvpx opencore-amr openssl theora vorbis x264 x265 \ xcb xvid PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \ theora vorbis x264 xvid +PLIST_VARS+= doc + # Add VDPAU if it is available .include "../../multimedia/libvdpau/available.mk" .if ${VDPAU_AVAILABLE} == "yes" @@ -52,6 +54,15 @@ CONFIGURE_ARGS+= --enable-libass CONFIGURE_ARGS+= --disable-libass .endif +# doc option +.if !empty(PKG_OPTIONS:Mdoc) +PLIST.doc= yes +USE_TOOLS+= texi2html +CONFIGURE_ARGS+= --enable-htmlpages +.else +CONFIGURE_ARGS+= --disable-htmlpages +.endif + # faac option .if !empty(PKG_OPTIONS:Mfaac) RESTRICTED= This software may require the payment of patent royalties |