From 5fd1be210208e79cb24e21c93ee1664b288fe8fe Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 3 Oct 2017 12:39:42 +0000 Subject: ffmpeg3: add untested rpi option Add hardware support for Raspberry Pi. From trebol on pkgsrc-users. --- multimedia/ffmpeg3/options.mk | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'multimedia/ffmpeg3') diff --git a/multimedia/ffmpeg3/options.mk b/multimedia/ffmpeg3/options.mk index a72a260e35e..79da3309cef 100644 --- a/multimedia/ffmpeg3/options.mk +++ b/multimedia/ffmpeg3/options.mk @@ -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 @@ CONFIGURE_ARGS+= --enable-libopus .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 -- cgit v1.2.3