summaryrefslogtreecommitdiff
path: root/graphics/blender/options.mk
diff options
context:
space:
mode:
authorwiz <wiz>2005-06-02 14:14:43 +0000
committerwiz <wiz>2005-06-02 14:14:43 +0000
commit095fb51f99c5f2d15ef55179a02fe98275669e6e (patch)
tree4cbad4ef27b9b306568f974adb27368c39f86ffc /graphics/blender/options.mk
parente406994c11ded12c5607675cf8ecda950d909c59 (diff)
downloadpkgsrc-095fb51f99c5f2d15ef55179a02fe98275669e6e.tar.gz
Convert to options framework. Quite easy, since all options are
currently not supported :]
Diffstat (limited to 'graphics/blender/options.mk')
-rw-r--r--graphics/blender/options.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/blender/options.mk b/graphics/blender/options.mk
new file mode 100644
index 00000000000..53044268694
--- /dev/null
+++ b/graphics/blender/options.mk
@@ -0,0 +1,39 @@
+# $NetBSD: options.mk,v 1.1 2005/06/02 14:14:43 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.blender
+PKG_SUPPORTED_OPTIONS=
+# disabled these options; they ought to be re-instantiated one day
+.if 0
+PKG_SUPPORTED_OPTIONS+= blender-exppython ogg openal vorbis
+.endif
+PKG_OPTIONS_LEGACY_VARS+= BLENDER_USE_EXPPYTHON:blender-exppython
+PKG_OPTIONS_LEGACY_VARS+= BLENDER_USE_OGG:ogg
+PKG_OPTIONS_LEGACY_VARS+= BLENDER_USE_OPENAL:openal
+PKG_OPTIONS_LEGACY_VARS+= BLENDER_USE_VORBIS:vorbis
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mexppython)
+CONFIGURE_ARGS+= --enable-exppython
+.else
+CONFIGURE_ARGS+= --disable-exppython
+.endif
+
+.if !empty(PKG_OPTIONS:Mogg)
+CONFIGURE_ARGS+= --with-ogg=${PREFIX}
+.include "../../multimedia/libogg/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ogg --disable-oggtest
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenal)
+CONFIGURE_ARGS+= --enable-openal
+.include "../../audio/openal/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mvorbis)
+CONFIGURE_ARGS+= --with-vorbis=${PREFIX}
+.include "../../audio/libvorbis/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-vorbis --disable-vorbistest
+.endif