pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
multimedia/ffmpeg2 static option
Hello,
I'm using pkgsrc stable on OS X 10.9 and I would like to build FFmpeg
as dynamic libraries only.
This patch adds a "static" build option and a PLIST.Darwin file.
Yours,
Mansour
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- PLIST 25 Jul 2014 22:46:00 -0000 1.5
+++ PLIST 1 Feb 2015 18:46:42 -0000
@@ -91,35 +91,35 @@ include/ffmpeg2/libswresample/swresample
include/ffmpeg2/libswresample/version.h
include/ffmpeg2/libswscale/swscale.h
include/ffmpeg2/libswscale/version.h
-lib/ffmpeg2/libavcodec.a
+${PLIST.static}lib/ffmpeg2/libavcodec.a
lib/ffmpeg2/libavcodec.so
lib/ffmpeg2/libavcodec.so.55
lib/ffmpeg2/libavcodec.so.55.69.100
-lib/ffmpeg2/libavdevice.a
+${PLIST.static}lib/ffmpeg2/libavdevice.a
lib/ffmpeg2/libavdevice.so
lib/ffmpeg2/libavdevice.so.55
lib/ffmpeg2/libavdevice.so.55.13.102
-lib/ffmpeg2/libavfilter.a
+${PLIST.static}lib/ffmpeg2/libavfilter.a
lib/ffmpeg2/libavfilter.so
lib/ffmpeg2/libavfilter.so.4
lib/ffmpeg2/libavfilter.so.4.11.100
-lib/ffmpeg2/libavformat.a
+${PLIST.static}lib/ffmpeg2/libavformat.a
lib/ffmpeg2/libavformat.so
lib/ffmpeg2/libavformat.so.55
lib/ffmpeg2/libavformat.so.55.48.100
-lib/ffmpeg2/libavutil.a
+${PLIST.static}lib/ffmpeg2/libavutil.a
lib/ffmpeg2/libavutil.so
lib/ffmpeg2/libavutil.so.52
lib/ffmpeg2/libavutil.so.52.92.100
-lib/ffmpeg2/libpostproc.a
+${PLIST.static}lib/ffmpeg2/libpostproc.a
lib/ffmpeg2/libpostproc.so
lib/ffmpeg2/libpostproc.so.52
lib/ffmpeg2/libpostproc.so.52.3.100
-lib/ffmpeg2/libswresample.a
+${PLIST.static}lib/ffmpeg2/libswresample.a
lib/ffmpeg2/libswresample.so
lib/ffmpeg2/libswresample.so.0
lib/ffmpeg2/libswresample.so.0.19.100
-lib/ffmpeg2/libswscale.a
+${PLIST.static}lib/ffmpeg2/libswscale.a
lib/ffmpeg2/libswscale.so
lib/ffmpeg2/libswscale.so.2
lib/ffmpeg2/libswscale.so.2.6.100
Index: PLIST.Darwin
===================================================================
RCS file: PLIST.Darwin
diff -N PLIST.Darwin
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ PLIST.Darwin 1 Feb 2015 18:46:42 -0000
@@ -0,0 +1,169 @@
+@comment $NetBSD$
+bin/ffmpeg2
+bin/ffprobe2
+bin/ffserver2
+include/ffmpeg2/libavcodec/avcodec.h
+include/ffmpeg2/libavcodec/avfft.h
+include/ffmpeg2/libavcodec/dv_profile.h
+include/ffmpeg2/libavcodec/dxva2.h
+include/ffmpeg2/libavcodec/old_codec_ids.h
+include/ffmpeg2/libavcodec/vaapi.h
+include/ffmpeg2/libavcodec/vda.h
+include/ffmpeg2/libavcodec/vdpau.h
+include/ffmpeg2/libavcodec/version.h
+include/ffmpeg2/libavcodec/xvmc.h
+include/ffmpeg2/libavdevice/avdevice.h
+include/ffmpeg2/libavdevice/version.h
+include/ffmpeg2/libavfilter/asrc_abuffer.h
+include/ffmpeg2/libavfilter/avcodec.h
+include/ffmpeg2/libavfilter/avfilter.h
+include/ffmpeg2/libavfilter/avfiltergraph.h
+include/ffmpeg2/libavfilter/buffersink.h
+include/ffmpeg2/libavfilter/buffersrc.h
+include/ffmpeg2/libavfilter/version.h
+include/ffmpeg2/libavformat/avformat.h
+include/ffmpeg2/libavformat/avio.h
+include/ffmpeg2/libavformat/version.h
+include/ffmpeg2/libavutil/adler32.h
+include/ffmpeg2/libavutil/aes.h
+include/ffmpeg2/libavutil/attributes.h
+include/ffmpeg2/libavutil/audio_fifo.h
+include/ffmpeg2/libavutil/audioconvert.h
+include/ffmpeg2/libavutil/avassert.h
+include/ffmpeg2/libavutil/avconfig.h
+include/ffmpeg2/libavutil/avstring.h
+include/ffmpeg2/libavutil/avutil.h
+include/ffmpeg2/libavutil/base64.h
+include/ffmpeg2/libavutil/blowfish.h
+include/ffmpeg2/libavutil/bprint.h
+include/ffmpeg2/libavutil/bswap.h
+include/ffmpeg2/libavutil/buffer.h
+include/ffmpeg2/libavutil/channel_layout.h
+include/ffmpeg2/libavutil/common.h
+include/ffmpeg2/libavutil/cpu.h
+include/ffmpeg2/libavutil/crc.h
+include/ffmpeg2/libavutil/dict.h
+include/ffmpeg2/libavutil/display.h
+include/ffmpeg2/libavutil/downmix_info.h
+include/ffmpeg2/libavutil/error.h
+include/ffmpeg2/libavutil/eval.h
+include/ffmpeg2/libavutil/ffversion.h
+include/ffmpeg2/libavutil/fifo.h
+include/ffmpeg2/libavutil/file.h
+include/ffmpeg2/libavutil/frame.h
+include/ffmpeg2/libavutil/hash.h
+include/ffmpeg2/libavutil/hmac.h
+include/ffmpeg2/libavutil/imgutils.h
+include/ffmpeg2/libavutil/intfloat.h
+include/ffmpeg2/libavutil/intfloat_readwrite.h
+include/ffmpeg2/libavutil/intreadwrite.h
+include/ffmpeg2/libavutil/lfg.h
+include/ffmpeg2/libavutil/log.h
+include/ffmpeg2/libavutil/lzo.h
+include/ffmpeg2/libavutil/macros.h
+include/ffmpeg2/libavutil/mathematics.h
+include/ffmpeg2/libavutil/md5.h
+include/ffmpeg2/libavutil/mem.h
+include/ffmpeg2/libavutil/murmur3.h
+include/ffmpeg2/libavutil/old_pix_fmts.h
+${PLIST.opencl}include/ffmpeg2/libavutil/opencl.h
+include/ffmpeg2/libavutil/opt.h
+include/ffmpeg2/libavutil/parseutils.h
+include/ffmpeg2/libavutil/pixdesc.h
+include/ffmpeg2/libavutil/pixfmt.h
+include/ffmpeg2/libavutil/random_seed.h
+include/ffmpeg2/libavutil/rational.h
+include/ffmpeg2/libavutil/replaygain.h
+include/ffmpeg2/libavutil/ripemd.h
+include/ffmpeg2/libavutil/samplefmt.h
+include/ffmpeg2/libavutil/sha.h
+include/ffmpeg2/libavutil/sha512.h
+include/ffmpeg2/libavutil/stereo3d.h
+include/ffmpeg2/libavutil/threadmessage.h
+include/ffmpeg2/libavutil/time.h
+include/ffmpeg2/libavutil/timecode.h
+include/ffmpeg2/libavutil/timestamp.h
+include/ffmpeg2/libavutil/version.h
+include/ffmpeg2/libavutil/xtea.h
+include/ffmpeg2/libpostproc/postprocess.h
+include/ffmpeg2/libpostproc/version.h
+include/ffmpeg2/libswresample/swresample.h
+include/ffmpeg2/libswresample/version.h
+include/ffmpeg2/libswscale/swscale.h
+include/ffmpeg2/libswscale/version.h
+lib/ffmpeg2/libavcodec.55.69.100.dylib
+lib/ffmpeg2/libavcodec.55.dylib
+${PLIST.static}lib/ffmpeg2/libavcodec.a
+lib/ffmpeg2/libavcodec.dylib
+lib/ffmpeg2/libavdevice.55.13.102.dylib
+lib/ffmpeg2/libavdevice.55.dylib
+${PLIST.static}lib/ffmpeg2/libavdevice.a
+lib/ffmpeg2/libavdevice.dylib
+lib/ffmpeg2/libavfilter.4.11.100.dylib
+lib/ffmpeg2/libavfilter.4.dylib
+${PLIST.static}lib/ffmpeg2/libavfilter.a
+lib/ffmpeg2/libavfilter.dylib
+lib/ffmpeg2/libavformat.55.48.100.dylib
+lib/ffmpeg2/libavformat.55.dylib
+${PLIST.static}lib/ffmpeg2/libavformat.a
+lib/ffmpeg2/libavformat.dylib
+lib/ffmpeg2/libavutil.52.92.100.dylib
+lib/ffmpeg2/libavutil.52.dylib
+${PLIST.static}lib/ffmpeg2/libavutil.a
+lib/ffmpeg2/libavutil.dylib
+lib/ffmpeg2/libpostproc.52.3.100.dylib
+lib/ffmpeg2/libpostproc.52.dylib
+${PLIST.static}lib/ffmpeg2/libpostproc.a
+lib/ffmpeg2/libpostproc.dylib
+lib/ffmpeg2/libswresample.0.19.100.dylib
+lib/ffmpeg2/libswresample.0.dylib
+${PLIST.static}lib/ffmpeg2/libswresample.a
+lib/ffmpeg2/libswresample.dylib
+lib/ffmpeg2/libswscale.2.6.100.dylib
+lib/ffmpeg2/libswscale.2.dylib
+${PLIST.static}lib/ffmpeg2/libswscale.a
+lib/ffmpeg2/libswscale.dylib
+lib/ffmpeg2/pkgconfig/libavcodec.pc
+lib/ffmpeg2/pkgconfig/libavdevice.pc
+lib/ffmpeg2/pkgconfig/libavfilter.pc
+lib/ffmpeg2/pkgconfig/libavformat.pc
+lib/ffmpeg2/pkgconfig/libavutil.pc
+lib/ffmpeg2/pkgconfig/libpostproc.pc
+lib/ffmpeg2/pkgconfig/libswresample.pc
+lib/ffmpeg2/pkgconfig/libswscale.pc
+share/doc/ffmpeg2/build_system.txt
+share/doc/ffmpeg2/errno.txt
+share/doc/ffmpeg2/ffmpeg.txt
+share/doc/ffmpeg2/filter_design.txt
+share/doc/ffmpeg2/issue_tracker.txt
+share/doc/ffmpeg2/mips.txt
+share/doc/ffmpeg2/multithreading.txt
+share/doc/ffmpeg2/optimization.txt
+share/doc/ffmpeg2/rate_distortion.txt
+share/doc/ffmpeg2/snow.txt
+share/doc/ffmpeg2/swresample.txt
+share/doc/ffmpeg2/swscale.txt
+share/doc/ffmpeg2/tablegen.txt
+share/doc/ffmpeg2/writing_filters.txt
+share/examples/ffmpeg2/ffserver.conf
+share/ffmpeg2/examples/Makefile
+share/ffmpeg2/examples/README
+share/ffmpeg2/examples/avio_reading.c
+share/ffmpeg2/examples/decoding_encoding.c
+share/ffmpeg2/examples/demuxing_decoding.c
+share/ffmpeg2/examples/filter_audio.c
+share/ffmpeg2/examples/filtering_audio.c
+share/ffmpeg2/examples/filtering_video.c
+share/ffmpeg2/examples/metadata.c
+share/ffmpeg2/examples/muxing.c
+share/ffmpeg2/examples/remuxing.c
+share/ffmpeg2/examples/resampling_audio.c
+share/ffmpeg2/examples/scaling_video.c
+share/ffmpeg2/examples/transcode_aac.c
+share/ffmpeg2/examples/transcoding.c
+share/ffmpeg2/ffprobe.xsd
+share/ffmpeg2/libvpx-1080p.ffpreset
+share/ffmpeg2/libvpx-1080p50_60.ffpreset
+share/ffmpeg2/libvpx-360p.ffpreset
+share/ffmpeg2/libvpx-720p.ffpreset
+share/ffmpeg2/libvpx-720p50_60.ffpreset
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/options.mk,v
retrieving revision 1.4
diff -u -p -r1.4 options.mk
--- options.mk 2 Jul 2014 13:49:06 -0000 1.4
+++ options.mk 1 Feb 2015 18:46:42 -0000
@@ -4,8 +4,8 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg2
PKG_SUPPORTED_OPTIONS= faac lame ass libvpx theora vorbis x264 x265 xvid \
- opencore-amr
-PKG_SUGGESTED_OPTIONS= lame ass libvpx theora vorbis x264 xvid
+ opencore-amr static
+PKG_SUGGESTED_OPTIONS= lame ass libvpx theora vorbis x264 xvid static
# Add VDPAU if it is available
.include "../../multimedia/libvdpau/available.mk"
@@ -128,3 +128,11 @@ CONFIGURE_ARGS+= --enable-libvpx
.else
CONFIGURE_ARGS+= --disable-libvpx
.endif
+
+PLIST_VARS+= static
+.if !empty(PKG_OPTIONS:Mstatic)
+CONFIGURE_ARGS+= --enable-static
+PLIST.static= yes
+.else
+CONFIGURE_ARGS+= --disable-static
+.endif
Home |
Main Index |
Thread Index |
Old Index