summaryrefslogtreecommitdiff
path: root/graphics/jasper/options.mk
blob: 3ded91e4bcf9b002ec6a9013f147a3532b5852a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: options.mk,v 1.2 2020/07/21 07:31:28 adam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.jasper
PKG_SUPPORTED_OPTIONS=	opengl

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		opengl

.if !empty(PKG_OPTIONS:Mopengl)
CMAKE_ARGS+=	-DJAS_ENABLE_OPENGL=ON
PLIST.opengl=	yes
.  if ${OPSYS} != "Darwin"
.    include "../../graphics/freeglut/buildlink3.mk"
.  endif
.else
CMAKE_ARGS+=	-DJAS_ENABLE_OPENGL=OFF
.endif