0516d802f4
Thanks leot.
41 lines
1,010 B
Makefile
41 lines
1,010 B
Makefile
# $NetBSD: options.mk,v 1.13 2020/08/03 23:02:18 joerg Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.opencv
|
|
PKG_SUPPORTED_OPTIONS= ffmpeg jasper
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "Darwin"
|
|
PKG_SUPPORTED_OPTIONS+= gtk
|
|
PKG_SUGGESTED_OPTIONS+= gtk
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mffmpeg)
|
|
CMAKE_ARGS+= -DWITH_FFMPEG=ON
|
|
CMAKE_ARGS+= -DFFMPEG_INCLUDE_DIR=${PREFIX}/include/ffmpeg4
|
|
CMAKE_ARGS+= -DFFMPEG_LIB_DIR=${PREFIX}/lib/ffmpeg4
|
|
.include "../../multimedia/ffmpeg4/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_FFMPEG=OFF
|
|
.endif
|
|
|
|
.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
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk)
|
|
CMAKE_ARGS+= -DWITH_GTK=ON
|
|
.include "../../x11/gtk3/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_GTK=OFF
|
|
.endif
|
|
|
|
# FIXME: should be option.mk'ed instead
|
|
CMAKE_ARGS+= -DBUILD_DOCS=OFF
|