pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/opencv Add ffmpeg option. From Mansour Moufid...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b89f894ed46
branches:  trunk
changeset: 646173:5b89f894ed46
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Feb 05 03:51:13 2015 +0000

description:
Add ffmpeg option. From Mansour Moufid on pkgsrc-users@

diffstat:

 graphics/opencv/options.mk |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r c0902865ca63 -r 5b89f894ed46 graphics/opencv/options.mk
--- a/graphics/opencv/options.mk        Thu Feb 05 02:24:43 2015 +0000
+++ b/graphics/opencv/options.mk        Thu Feb 05 03:51:13 2015 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index