pkgsrc/print/mupdf/options.mk
2020-04-07 12:13:01 +00:00

34 lines
651 B
Makefile

# $NetBSD: options.mk,v 1.11 2020/04/07 12:13:01 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mupdf
PKG_SUPPORTED_OPTIONS= curl opengl
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "Darwin"
PKG_SUGGESTED_OPTIONS= opengl
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= curl opengl
#
# curl support
#
.if !empty(PKG_OPTIONS:Mcurl)
PLIST.curl= yes
.include "../../www/curl/buildlink3.mk"
.endif
#
# glut support
#
.if !empty(PKG_OPTIONS:Mopengl)
PLIST.opengl= yes
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/freeglut/buildlink3.mk"
LDFLAGS.NetBSD+= -lGL # for glCallList
.else
MAKE_ENV+= HAVE_GLUT=no
.endif