diff options
author | wiz <wiz@pkgsrc.org> | 2005-06-02 14:14:43 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-06-02 14:14:43 +0000 |
commit | 209e68d03614b8dd133c951f279ac677a09cf0f5 (patch) | |
tree | 4cbad4ef27b9b306568f974adb27368c39f86ffc /graphics | |
parent | 6f0021fb8cfca7aa9caa3c05259c99782c2459ed (diff) | |
download | pkgsrc-209e68d03614b8dd133c951f279ac677a09cf0f5.tar.gz |
Convert to options framework. Quite easy, since all options are
currently not supported :]
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/blender/Makefile | 42 | ||||
-rw-r--r-- | graphics/blender/options.mk | 39 |
2 files changed, 41 insertions, 40 deletions
diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index 2ed1e057880..6eb804f7e31 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2005/06/01 18:02:54 jlam Exp $ +# $NetBSD: Makefile,v 1.44 2005/06/02 14:14:43 wiz Exp $ # DISTNAME= blender-2.36 @@ -20,11 +20,7 @@ USE_LIBTOOL= YES LDFLAGS+= -lcrypto -.include "../../mk/bsd.prefs.mk" - -BUILD_DEFS+= BLENDER_USE_OGG BLENDER_USE_VORBIS -BUILD_DEFS+= BLENDER_USE_OPENAL BLENDER_USE_EXPPYTHON -BUILD_DEFS+= BLENDER_INSTALL_DOC +.include "options.mk" post-patch: ${MV} ${WRKSRC}/SConstruct ${WRKSRC}/SConstruct.orig @@ -44,40 +40,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/release/scripts/* ${PREFIX}/share/blender/scripts ${INSTALL} ${WRKDIR}/blender/bin/blender ${PREFIX}/bin -.if defined(BLENDER_INSTALL_DOC) -DEPENDS+= blender-doc:../../graphics/blender-doc -.endif - -# -# disabled these options; they ought to be re-instantiated one day -# -.if 0 -.if defined(BLENDER_USE_OGG) -CONFIGURE_ARGS+= --with-ogg=${PREFIX} -.include "../../multimedia/libogg/buildlink3.mk" -.else -CONFIGURE_ARGS+= --without-ogg --disable-oggtest -.endif - -.if defined(BLENDER_USE_VORBIS) -CONFIGURE_ARGS+= --with-vorbis=${PREFIX} -.include "../../audio/libvorbis/buildlink3.mk" -.else -CONFIGURE_ARGS+= --without-vorbis --disable-vorbistest -.endif - -.if defined(BLENDER_USE_OPENAL) -CONFIGURE_ARGS+= --enable-openal -.include "../../audio/openal/buildlink3.mk" -.endif - -.if defined(BLENDER_USE_EXPPYTHON) -CONFIGURE_ARGS+= --enable-exppython -.else -CONFIGURE_ARGS+= --disable-exppython -.endif -.endif - .include "../../devel/SDL/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../graphics/Mesa/buildlink3.mk" 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 |