pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg3 ffmpeg3: add untested rpi option
details: https://anonhg.NetBSD.org/pkgsrc/rev/1ec1574961dd
branches: trunk
changeset: 369718:1ec1574961dd
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Oct 03 12:39:42 2017 +0000
description:
ffmpeg3: add untested rpi option
Add hardware support for Raspberry Pi.
>From trebol on pkgsrc-users.
diffstat:
multimedia/ffmpeg3/options.mk | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 8856543bd78c -r 1ec1574961dd multimedia/ffmpeg3/options.mk
--- a/multimedia/ffmpeg3/options.mk Tue Oct 03 12:36:52 2017 +0000
+++ b/multimedia/ffmpeg3/options.mk Tue Oct 03 12:39:42 2017 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: options.mk,v 1.8 2017/09/20 08:21:17 adam Exp $
+# $NetBSD: options.mk,v 1.9 2017/10/03 12:39:42 wiz Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3
PKG_SUPPORTED_OPTIONS= ass doc fdk-aac fontconfig freetype gnutls \
- lame libvpx opencore-amr openssl opus rtmp theora \
- vorbis x11 x264 x265 xcb xvid
+ lame libvpx opencore-amr openssl opus rpi \
+ rtmp theora vorbis x11 x264 x265 xcb xvid
PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \
theora vorbis x11 x264 xvid
@@ -139,6 +139,18 @@
.include "../../audio/libopus/buildlink3.mk"
.endif
+# Raspberry Pi support
+.if !empty(PKG_OPTIONS:Mrpi)
+.include "../../misc/raspberrypi-userland/buildlink3.mk"
+SUBST_CLASSES+= vc
+SUBST_STAGE.vc= pre-configure
+SUBST_MESSAGE.vc= Fixing path to VideoCore libraries.
+SUBST_FILES.vc= configure
+SUBST_SED.vc+= -e 's;-isystem/opt/vc;-I${PREFIX};g'
+SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g'
+CONFIGURE_ARGS+= --enable-omx-rpi --enable-mmal --disable-xvmc
+.endif
+
# XviD support
.if !empty(PKG_OPTIONS:Mxvid)
CONFIGURE_ARGS+= --enable-libxvid
Home |
Main Index |
Thread Index |
Old Index