pkgsrc/graphics/pfstools/options.mk
2016-02-25 13:37:46 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2016/02/25 13:37:48 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pfstools
PKG_SUPPORTED_OPTIONS= imagemagick octave qt opengl
PKG_SUGGESTED_OPTIONS.Darwin+= opengl
PLIST_VARS+= im octave qt gl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mimagemagick)
.include "../../graphics/ImageMagick/buildlink3.mk"
PLIST.im= yes
CMAKE_ARGS+= -DWITH_ImageMagick=YES
.else
CMAKE_ARGS+= -DWITH_ImageMagick=NO
.endif
.if !empty(PKG_OPTIONS:Moctave)
.include "../../math/octave/buildlink3.mk"
REPLACE_OCTAVE+= src/octave/pfsoctavelum src/octave/pfsoctavergb
REPLACE_OCTAVE+= src/octave/pfsstat
.include "../../math/octave/octave.mk"
PLIST.octave= yes
PLIST_SUBST+= OCT_LOCALVEROCTFILEDIR=${OCT_LOCALVEROCTFILEDIR:S/${BUILDLINK_PREFIX.octave}\///}
PLIST_SUBST+= OCT_LOCALVERFCNFILEDIR=${OCT_LOCALVERFCNFILEDIR:S/${BUILDLINK_PREFIX.octave}\///}
CMAKE_ARGS+= -DWITH_Octave=YES
.else
CMAKE_ARGS+= -DWITH_Octave=NO
.endif
.if !empty(PKG_OPTIONS:Mqt)
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
PLIST.qt= yes
CMAKE_ARGS+= -DWITH_QT=YES
.else
CMAKE_ARGS+= -DWITH_QT=NO
.endif
.if !empty(PKG_OPTIONS:Mopengl)
. if ${OPSYS} != "Darwin"
.include "../../graphics/glut/buildlink3.mk"
. endif
# XXX nasty hack
CXXFLAGS.NetBSD+= -lpthread
PLIST.gl= yes
CMAKE_ARGS+= -DWITH_pfsglview=YES
.else
CMAKE_ARGS+= -DWITH_pfsglview=NO
.endif