summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-02-05 03:51:13 +0000
committertnn <tnn@pkgsrc.org>2015-02-05 03:51:13 +0000
commit3924eb6bc14dab1e71f2c7c7a398e610cf2fa20f (patch)
tree5f83427f800609ad5f554ac2f4d270e40e6a7f9f /graphics
parent6b9a334a09a6f1c7d00f6a7a055d99ceec3dbb51 (diff)
downloadpkgsrc-3924eb6bc14dab1e71f2c7c7a398e610cf2fa20f.tar.gz
Add ffmpeg option. From Mansour Moufid on pkgsrc-users@
Diffstat (limited to 'graphics')
-rw-r--r--graphics/opencv/options.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/opencv/options.mk b/graphics/opencv/options.mk
index 5e6dab88c71..e407e639c96 100644
--- a/graphics/opencv/options.mk
+++ b/graphics/opencv/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.4 2013/08/13 19:47:20 markd Exp $
+# $NetBSD: options.mk,v 1.5 2015/02/05 03:51:13 tnn Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.opencv
-PKG_SUPPORTED_OPTIONS= python
+PKG_SUPPORTED_OPTIONS= python ffmpeg
.include "../../mk/bsd.options.mk"
@@ -16,6 +16,14 @@ PLIST.python= yes
CMAKE_ARGS+= -D BUILD_NEW_PYTHON_SUPPORT=OFF
.endif
+.if !empty(PKG_OPTIONS:Mffmpeg)
+CMAKE_ARGS+= -D WITH_FFMPEG=ON
+CMAKE_ARGS+= -D FFMPEG_INCLUDE_DIR=${PREFIX}/include/ffmpeg2
+CMAKE_ARGS+= -D FFMPEG_LIB_DIR=${PREFIX}/lib/ffmpeg2
+.include "../../multimedia/ffmpeg2/buildlink3.mk"
+.else
+CMAKE_ARGS+= -D WITH_FFMPEG=OFF
+.endif
+
# FIXME: should be option.mk'ed instead
CMAKE_ARGS+= -D BUILD_DOCS=OFF
-CMAKE_ARGS+= -D WITH_FFMPEG=OFF