2020-03-01 16:36:01 +01:00
|
|
|
# $NetBSD: options.mk,v 1.11 2020/03/01 15:36:01 nia Exp $
|
2012-04-15 05:49:00 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.opencv
|
2020-03-01 16:36:01 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= ffmpeg jasper
|
2012-04-15 05:49:00 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2015-02-05 04:51:13 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mffmpeg)
|
2019-04-24 21:34:44 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_FFMPEG=ON
|
2019-12-29 11:00:08 +01:00
|
|
|
CMAKE_ARGS+= -DFFMPEG_INCLUDE_DIR=${PREFIX}/include/ffmpeg4
|
|
|
|
CMAKE_ARGS+= -DFFMPEG_LIB_DIR=${PREFIX}/lib/ffmpeg4
|
|
|
|
.include "../../multimedia/ffmpeg4/buildlink3.mk"
|
2015-02-05 04:51:13 +01:00
|
|
|
.else
|
2019-04-24 21:34:44 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_FFMPEG=OFF
|
2015-02-05 04:51:13 +01:00
|
|
|
.endif
|
|
|
|
|
2020-03-01 16:36:01 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mjasper)
|
|
|
|
CMAKE_ARGS+= -DWITH_JASPER=ON
|
|
|
|
# jasper uses SIZE_MAX and friends in its headers.
|
|
|
|
CXXFLAGS+= -D__STDC_LIMIT_MACROS
|
|
|
|
.include "../../graphics/jasper/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_JASPER=OFF
|
|
|
|
.endif
|
|
|
|
|
2012-04-15 05:49:00 +02:00
|
|
|
# FIXME: should be option.mk'ed instead
|
2019-04-24 21:34:44 +02:00
|
|
|
CMAKE_ARGS+= -DBUILD_DOCS=OFF
|