2020-06-19 15:06:35 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2020/06/19 13:06:35 nia Exp $
|
2019-06-09 00:46:03 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mgba
|
|
|
|
|
2020-06-19 15:06:35 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= ffmpeg qt5 opengl
|
|
|
|
PKG_SUGGESTED_OPTIONS+= ffmpeg qt5 opengl
|
2019-06-09 00:46:03 +02:00
|
|
|
|
2020-01-25 20:26:18 +01:00
|
|
|
PLIST_SRC+= PLIST
|
|
|
|
PLIST_VARS+= qt
|
2019-06-09 00:46:03 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mffmpeg)
|
|
|
|
CMAKE_ARGS+= -DUSE_FFMPEG=ON
|
|
|
|
.include "../../multimedia/ffmpeg4/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_FFMPEG=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mqt5)
|
|
|
|
PLIST.qt= yes
|
|
|
|
CMAKE_ARGS+= -DBUILD_QT=ON
|
2020-06-19 15:06:35 +02:00
|
|
|
# We probably don't actually want Qt5Multimedia.
|
|
|
|
# It's an option as an audio output, but SDL supports many more pkgsrc
|
|
|
|
# platforms natively, without going via PulseAudio.
|
|
|
|
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=TRUE
|
2020-06-15 00:01:23 +02:00
|
|
|
TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
|
2019-06-09 00:46:03 +02:00
|
|
|
.include "../../x11/qt5-qtbase/buildlink3.mk"
|
2020-06-19 15:06:35 +02:00
|
|
|
#.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
|
2019-06-09 00:46:03 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_QT=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mopengl)
|
|
|
|
CMAKE_ARGS+= -DBUILD_GL=ON
|
|
|
|
CMAKE_ARGS+= -DUSE_EPOXY=ON
|
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
2019-12-24 00:03:24 +01:00
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
2019-06-09 00:46:03 +02:00
|
|
|
.include "../../graphics/libepoxy/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_GL=OFF
|
|
|
|
CMAKE_ARGS+= -DUSE_EPOXY=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mopengl) && !empty(PKG_OPTIONS:Mqt5)
|
2020-01-25 20:26:18 +01:00
|
|
|
PLIST_SRC+= PLIST.shaders
|
2019-06-09 00:46:03 +02:00
|
|
|
.endif
|