summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-10-03 12:39:42 +0000
committerwiz <wiz@pkgsrc.org>2017-10-03 12:39:42 +0000
commit5fd1be210208e79cb24e21c93ee1664b288fe8fe (patch)
tree4eb1cb6a7ed2bd0a8217c4f0e2151db11b3c4b7a /multimedia
parent188f634f310fbb27b2a5d5dfb08a7926dbd21357 (diff)
downloadpkgsrc-5fd1be210208e79cb24e21c93ee1664b288fe8fe.tar.gz
ffmpeg3: add untested rpi option
Add hardware support for Raspberry Pi. From trebol on pkgsrc-users.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/ffmpeg3/options.mk18
1 files changed, 15 insertions, 3 deletions
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