Also install man pages and HTML documentation. Prior to this change all USE_TOOLS were already present except "perl". That blocked the generation of both man pages and HTML documentation. Also handle the append of configure's --progs-suffix number to address coexistence of multiple ffmpeg versions man pages (done via patch-doc_Makefile). Bump PKGREVISION.diff -r1.26 -r1.27 pkgsrc/multimedia/ffmpeg2/Makefile
(leot)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.26 2016/03/30 12:46:38 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.27 2016/04/28 09:20:53 leot Exp $ | |
2 | 2 | |||
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 3 | |
5 | MAINTAINER= pkgsrc-users@NetBSD.org | 5 | MAINTAINER= pkgsrc-users@NetBSD.org | |
6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | 6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | |
7 | COMMENT= Decoding, encoding and streaming software (v2.x) | 7 | COMMENT= Decoding, encoding and streaming software (v2.x) | |
8 | 8 | |||
9 | CONFIGURE_ARGS+= --enable-avfilter | 9 | CONFIGURE_ARGS+= --enable-avfilter | |
10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | 10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | |
11 | CONFIGURE_ARGS+= --enable-postproc | 11 | CONFIGURE_ARGS+= --enable-postproc | |
12 | CONFIGURE_ARGS+= --disable-ffplay | 12 | CONFIGURE_ARGS+= --disable-ffplay | |
13 | 13 | |||
14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | 14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | |
15 | 15 | |||
16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | 16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | |
17 | ${PKG_SYSCONFDIR}/ffserver.conf | 17 | ${PKG_SYSCONFDIR}/ffserver.conf |
@@ -1,43 +1,44 @@ | @@ -1,43 +1,44 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.45 2016/03/30 12:46:38 jperkin Exp $ | 1 | # $NetBSD: Makefile.common,v 1.46 2016/04/28 09:20:53 leot Exp $ | |
2 | # used by multimedia/ffmpeg2/Makefile | 2 | # used by multimedia/ffmpeg2/Makefile | |
3 | # used by multimedia/ffplay2/Makefile | 3 | # used by multimedia/ffplay2/Makefile | |
4 | 4 | |||
5 | DISTNAME= ffmpeg-2.8.6 | 5 | DISTNAME= ffmpeg-2.8.6 | |
6 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | 7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | 10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | |
11 | 11 | |||
12 | PREV_PKGPATH= multimedia/ffmpeg-devel | 12 | PREV_PKGPATH= multimedia/ffmpeg-devel | |
13 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | 13 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | |
14 | 14 | |||
15 | USE_LANGUAGES= c99 | 15 | USE_LANGUAGES= c99 | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= gmake texi2html pod2man | 17 | USE_TOOLS+= gmake texi2html perl pod2man | |
18 | HAS_CONFIGURE= yes | 18 | HAS_CONFIGURE= yes | |
19 | CONFIGURE_ARGS+= --cc=${CC:Q} | 19 | CONFIGURE_ARGS+= --cc=${CC:Q} | |
20 | CONFIGURE_ARGS+= --disable-debug | 20 | CONFIGURE_ARGS+= --disable-debug | |
21 | CONFIGURE_ARGS+= --disable-optimizations | 21 | CONFIGURE_ARGS+= --disable-optimizations | |
22 | CONFIGURE_ARGS+= --disable-stripping | 22 | CONFIGURE_ARGS+= --disable-stripping | |
23 | CONFIGURE_ARGS+= --enable-shared | 23 | CONFIGURE_ARGS+= --enable-shared | |
24 | CONFIGURE_ARGS+= --enable-pthreads | 24 | CONFIGURE_ARGS+= --enable-pthreads | |
25 | CONFIGURE_ARGS+= --enable-gpl | 25 | CONFIGURE_ARGS+= --enable-gpl | |
26 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | 26 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | |
27 | CONFIGURE_ARGS+= --prefix=${PREFIX} | 27 | CONFIGURE_ARGS+= --prefix=${PREFIX} | |
28 | 28 | |||
29 | CONFIGURE_ARGS+= --progs-suffix=2 | 29 | CONFIGURE_ARGS+= --progs-suffix=2 | |
30 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg2 | 30 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg2 | |
31 | CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/ffmpeg2 | |||
31 | CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg2 | 32 | CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg2 | |
32 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg2 | 33 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg2 | |
33 | CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg2 | 34 | CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg2 | |
34 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg2 | 35 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg2 | |
35 | 36 | |||
36 | PLIST_VARS+= opencl | 37 | PLIST_VARS+= opencl | |
37 | 38 | |||
38 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | 39 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | |
39 | CONFIGURE_ARGS+= --enable-opencl | 40 | CONFIGURE_ARGS+= --enable-opencl | |
40 | PLIST.opencl= yes | 41 | PLIST.opencl= yes | |
41 | .endif | 42 | .endif | |
42 | 43 | |||
43 | .if ${OPSYS} == "SunOS" | 44 | .if ${OPSYS} == "SunOS" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.10 2015/09/09 10:42:41 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.11 2016/04/28 09:20:53 leot Exp $ | |
2 | bin/ffmpeg2 | 2 | bin/ffmpeg2 | |
3 | bin/ffprobe2 | 3 | bin/ffprobe2 | |
4 | bin/ffserver2 | 4 | bin/ffserver2 | |
5 | include/ffmpeg2/libavcodec/avcodec.h | 5 | include/ffmpeg2/libavcodec/avcodec.h | |
6 | include/ffmpeg2/libavcodec/avfft.h | 6 | include/ffmpeg2/libavcodec/avfft.h | |
7 | include/ffmpeg2/libavcodec/d3d11va.h | 7 | include/ffmpeg2/libavcodec/d3d11va.h | |
8 | include/ffmpeg2/libavcodec/dv_profile.h | 8 | include/ffmpeg2/libavcodec/dv_profile.h | |
9 | include/ffmpeg2/libavcodec/dxva2.h | 9 | include/ffmpeg2/libavcodec/dxva2.h | |
10 | include/ffmpeg2/libavcodec/old_codec_ids.h | 10 | include/ffmpeg2/libavcodec/old_codec_ids.h | |
11 | include/ffmpeg2/libavcodec/qsv.h | 11 | include/ffmpeg2/libavcodec/qsv.h | |
12 | include/ffmpeg2/libavcodec/vaapi.h | 12 | include/ffmpeg2/libavcodec/vaapi.h | |
13 | include/ffmpeg2/libavcodec/vda.h | 13 | include/ffmpeg2/libavcodec/vda.h | |
14 | include/ffmpeg2/libavcodec/vdpau.h | 14 | include/ffmpeg2/libavcodec/vdpau.h | |
@@ -130,34 +130,85 @@ lib/ffmpeg2/libswresample.so.1 | @@ -130,34 +130,85 @@ lib/ffmpeg2/libswresample.so.1 | |||
130 | lib/ffmpeg2/libswresample.so.1.2.101 | 130 | lib/ffmpeg2/libswresample.so.1.2.101 | |
131 | lib/ffmpeg2/libswscale.a | 131 | lib/ffmpeg2/libswscale.a | |
132 | lib/ffmpeg2/libswscale.so | 132 | lib/ffmpeg2/libswscale.so | |
133 | lib/ffmpeg2/libswscale.so.3 | 133 | lib/ffmpeg2/libswscale.so.3 | |
134 | lib/ffmpeg2/libswscale.so.3.1.101 | 134 | lib/ffmpeg2/libswscale.so.3.1.101 | |
135 | lib/ffmpeg2/pkgconfig/libavcodec.pc | 135 | lib/ffmpeg2/pkgconfig/libavcodec.pc | |
136 | lib/ffmpeg2/pkgconfig/libavdevice.pc | 136 | lib/ffmpeg2/pkgconfig/libavdevice.pc | |
137 | lib/ffmpeg2/pkgconfig/libavfilter.pc | 137 | lib/ffmpeg2/pkgconfig/libavfilter.pc | |
138 | lib/ffmpeg2/pkgconfig/libavformat.pc | 138 | lib/ffmpeg2/pkgconfig/libavformat.pc | |
139 | lib/ffmpeg2/pkgconfig/libavutil.pc | 139 | lib/ffmpeg2/pkgconfig/libavutil.pc | |
140 | lib/ffmpeg2/pkgconfig/libpostproc.pc | 140 | lib/ffmpeg2/pkgconfig/libpostproc.pc | |
141 | lib/ffmpeg2/pkgconfig/libswresample.pc | 141 | lib/ffmpeg2/pkgconfig/libswresample.pc | |
142 | lib/ffmpeg2/pkgconfig/libswscale.pc | 142 | lib/ffmpeg2/pkgconfig/libswscale.pc | |
143 | man/man1/ffmpeg-all2.1 | |||
144 | man/man1/ffmpeg-bitstream-filters2.1 | |||
145 | man/man1/ffmpeg-codecs2.1 | |||
146 | man/man1/ffmpeg-devices2.1 | |||
147 | man/man1/ffmpeg-filters2.1 | |||
148 | man/man1/ffmpeg-formats2.1 | |||
149 | man/man1/ffmpeg-protocols2.1 | |||
150 | man/man1/ffmpeg-resampler2.1 | |||
151 | man/man1/ffmpeg-scaler2.1 | |||
152 | man/man1/ffmpeg-utils2.1 | |||
153 | man/man1/ffmpeg2.1 | |||
154 | man/man1/ffprobe-all2.1 | |||
155 | man/man1/ffprobe2.1 | |||
156 | man/man1/ffserver-all2.1 | |||
157 | man/man1/ffserver2.1 | |||
158 | man/man3/libavcodec2.3 | |||
159 | man/man3/libavdevice2.3 | |||
160 | man/man3/libavfilter2.3 | |||
161 | man/man3/libavformat2.3 | |||
162 | man/man3/libavutil2.3 | |||
163 | man/man3/libswresample2.3 | |||
164 | man/man3/libswscale2.3 | |||
143 | share/doc/ffmpeg2/build_system.txt | 165 | share/doc/ffmpeg2/build_system.txt | |
166 | share/doc/ffmpeg2/developer.html | |||
144 | share/doc/ffmpeg2/errno.txt | 167 | share/doc/ffmpeg2/errno.txt | |
168 | share/doc/ffmpeg2/faq.html | |||
169 | share/doc/ffmpeg2/fate.html | |||
170 | share/doc/ffmpeg2/ffmpeg-all.html | |||
171 | share/doc/ffmpeg2/ffmpeg-bitstream-filters.html | |||
172 | share/doc/ffmpeg2/ffmpeg-codecs.html | |||
173 | share/doc/ffmpeg2/ffmpeg-devices.html | |||
174 | share/doc/ffmpeg2/ffmpeg-filters.html | |||
175 | share/doc/ffmpeg2/ffmpeg-formats.html | |||
176 | share/doc/ffmpeg2/ffmpeg-protocols.html | |||
177 | share/doc/ffmpeg2/ffmpeg-resampler.html | |||
178 | share/doc/ffmpeg2/ffmpeg-scaler.html | |||
179 | share/doc/ffmpeg2/ffmpeg-utils.html | |||
180 | share/doc/ffmpeg2/ffmpeg.html | |||
145 | share/doc/ffmpeg2/ffmpeg.txt | 181 | share/doc/ffmpeg2/ffmpeg.txt | |
182 | share/doc/ffmpeg2/ffprobe-all.html | |||
183 | share/doc/ffmpeg2/ffprobe.html | |||
184 | share/doc/ffmpeg2/ffserver-all.html | |||
185 | share/doc/ffmpeg2/ffserver.html | |||
146 | share/doc/ffmpeg2/filter_design.txt | 186 | share/doc/ffmpeg2/filter_design.txt | |
187 | share/doc/ffmpeg2/general.html | |||
188 | share/doc/ffmpeg2/git-howto.html | |||
147 | share/doc/ffmpeg2/issue_tracker.txt | 189 | share/doc/ffmpeg2/issue_tracker.txt | |
190 | share/doc/ffmpeg2/libavcodec.html | |||
191 | share/doc/ffmpeg2/libavdevice.html | |||
192 | share/doc/ffmpeg2/libavfilter.html | |||
193 | share/doc/ffmpeg2/libavformat.html | |||
194 | share/doc/ffmpeg2/libavutil.html | |||
195 | share/doc/ffmpeg2/libswresample.html | |||
196 | share/doc/ffmpeg2/libswscale.html | |||
148 | share/doc/ffmpeg2/mips.txt | 197 | share/doc/ffmpeg2/mips.txt | |
149 | share/doc/ffmpeg2/multithreading.txt | 198 | share/doc/ffmpeg2/multithreading.txt | |
199 | share/doc/ffmpeg2/nut.html | |||
150 | share/doc/ffmpeg2/optimization.txt | 200 | share/doc/ffmpeg2/optimization.txt | |
201 | share/doc/ffmpeg2/platform.html | |||
151 | share/doc/ffmpeg2/rate_distortion.txt | 202 | share/doc/ffmpeg2/rate_distortion.txt | |
152 | share/doc/ffmpeg2/snow.txt | 203 | share/doc/ffmpeg2/snow.txt | |
153 | share/doc/ffmpeg2/swresample.txt | 204 | share/doc/ffmpeg2/swresample.txt | |
154 | share/doc/ffmpeg2/swscale.txt | 205 | share/doc/ffmpeg2/swscale.txt | |
155 | share/doc/ffmpeg2/tablegen.txt | 206 | share/doc/ffmpeg2/tablegen.txt | |
156 | share/doc/ffmpeg2/writing_filters.txt | 207 | share/doc/ffmpeg2/writing_filters.txt | |
157 | share/examples/ffmpeg2/ffserver.conf | 208 | share/examples/ffmpeg2/ffserver.conf | |
158 | share/ffmpeg2/examples/Makefile | 209 | share/ffmpeg2/examples/Makefile | |
159 | share/ffmpeg2/examples/README | 210 | share/ffmpeg2/examples/README | |
160 | share/ffmpeg2/examples/avio_dir_cmd.c | 211 | share/ffmpeg2/examples/avio_dir_cmd.c | |
161 | share/ffmpeg2/examples/avio_reading.c | 212 | share/ffmpeg2/examples/avio_reading.c | |
162 | share/ffmpeg2/examples/decoding_encoding.c | 213 | share/ffmpeg2/examples/decoding_encoding.c | |
163 | share/ffmpeg2/examples/demuxing_decoding.c | 214 | share/ffmpeg2/examples/demuxing_decoding.c |
@@ -1,13 +1,14 @@ | @@ -1,13 +1,14 @@ | |||
1 | $NetBSD: distinfo,v 1.46 2016/02/03 21:00:00 adam Exp $ | 1 | $NetBSD: distinfo,v 1.47 2016/04/28 09:20:53 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (ffmpeg-2.8.6.tar.xz) = 5720c4204ed0b72513fa2fd6e4dcaed6ebb7f35c | 3 | SHA1 (ffmpeg-2.8.6.tar.xz) = 5720c4204ed0b72513fa2fd6e4dcaed6ebb7f35c | |
4 | RMD160 (ffmpeg-2.8.6.tar.xz) = fea9b87575330707e6a871425fc62731779ef65d | 4 | RMD160 (ffmpeg-2.8.6.tar.xz) = fea9b87575330707e6a871425fc62731779ef65d | |
5 | SHA512 (ffmpeg-2.8.6.tar.xz) = 15fc0c05963a69664713f1fb40a34bb85efc6477cd655e76b610c453e82c9170b81d6225676a0d9fc73f86806ea597a4f868d402598fef41c7413523b374de35 | 5 | SHA512 (ffmpeg-2.8.6.tar.xz) = 15fc0c05963a69664713f1fb40a34bb85efc6477cd655e76b610c453e82c9170b81d6225676a0d9fc73f86806ea597a4f868d402598fef41c7413523b374de35 | |
6 | Size (ffmpeg-2.8.6.tar.xz) = 7205300 bytes | 6 | Size (ffmpeg-2.8.6.tar.xz) = 7205300 bytes | |
7 | SHA1 (patch-Makefile) = e3cb5cedccd2840f36ab90cd2f4b7987e1098a56 | 7 | SHA1 (patch-Makefile) = e3cb5cedccd2840f36ab90cd2f4b7987e1098a56 | |
8 | SHA1 (patch-configure) = c739d4f002b0ed1850f88b5a961672b5e93f1dc1 | 8 | SHA1 (patch-configure) = c739d4f002b0ed1850f88b5a961672b5e93f1dc1 | |
9 | SHA1 (patch-doc_Makefile) = 48d3b3ccd800303a73fcda79e78533228f79d750 | |||
9 | SHA1 (patch-libavcodec_x86_ac3dsp_init.c) = f997271f4f4604987591d7f17c571aaaa8a6188a | 10 | SHA1 (patch-libavcodec_x86_ac3dsp_init.c) = f997271f4f4604987591d7f17c571aaaa8a6188a | |
10 | SHA1 (patch-libavutil_common.h) = de36efed3a8a2069e170e5afe77eb122a46d14b2 | 11 | SHA1 (patch-libavutil_common.h) = de36efed3a8a2069e170e5afe77eb122a46d14b2 | |
11 | SHA1 (patch-libavutil_opencl.c) = 00ea04f9febe60b9428ac8c3b7e14ae01a955685 | 12 | SHA1 (patch-libavutil_opencl.c) = 00ea04f9febe60b9428ac8c3b7e14ae01a955685 | |
12 | SHA1 (patch-libavutil_x86_asm.h) = 85c5403e97449639253d3c97391dfbb4cadb2548 | 13 | SHA1 (patch-libavutil_x86_asm.h) = 85c5403e97449639253d3c97391dfbb4cadb2548 | |
13 | SHA1 (patch-libavutil_x86_cpu.c) = 499b0fc3081971a2bba2724bd051aab14c531239 | 14 | SHA1 (patch-libavutil_x86_cpu.c) = 499b0fc3081971a2bba2724bd051aab14c531239 |
$NetBSD: patch-doc_Makefile,v 1.1 2016/04/28 09:20:53 leot Exp $
Honor --prog-suffix configure option also for man pages.
--- doc/Makefile.orig 2016-02-01 00:52:15.000000000 +0000
+++ doc/Makefile
@@ -14,8 +14,8 @@ COMPONENTS-$(CONFIG_AVFORMAT) += ffmpe
COMPONENTS-$(CONFIG_AVDEVICE) += ffmpeg-devices
COMPONENTS-$(CONFIG_AVFILTER) += ffmpeg-filters
-MANPAGES1 = $(AVPROGS-yes:%=doc/%.1) $(AVPROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1)
-MANPAGES3 = $(LIBRARIES-yes:%=doc/%.3)
+MANPAGES1 = $(AVPROGS-yes:%=doc/%$(PROGSSUF).1) $(AVPROGS-yes:%=doc/%-all$(PROGSSUF).1) $(COMPONENTS-yes:%=doc/%$(PROGSSUF).1)
+MANPAGES3 = $(LIBRARIES-yes:%=doc/%$(PROGSSUF).3)
MANPAGES = $(MANPAGES1) $(MANPAGES3)
PODPAGES = $(AVPROGS-yes:%=doc/%.pod) $(AVPROGS-yes:%=doc/%-all.pod) $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
HTMLPAGES = $(AVPROGS-yes:%=doc/%.html) $(AVPROGS-yes:%=doc/%-all.html) $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \
@@ -114,10 +114,10 @@ doc/%-all.pod: doc/%.texi $(SRC_PATH)/do
$(Q)$(TEXIDEP)
$(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-all=yes -Idoc $< $@
-doc/%.1 doc/%.3: TAG = MAN
-doc/%.1: doc/%.pod $(GENTEXI)
+doc/%$(PROGSSUF).1 doc/%$(PROGSSUF).3: TAG = MAN
+doc/%$(PROGSSUF).1: doc/%.pod $(GENTEXI)
$(M)pod2man --section=1 --center=" " --release=" " --date=" " $< > $@
-doc/%.3: doc/%.pod $(GENTEXI)
+doc/%$(PROGSSUF).3: doc/%.pod $(GENTEXI)
$(M)pod2man --section=3 --center=" " --release=" " --date=" " $< > $@
$(DOCS) doc/doxy/html: | doc/