pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/blender Convert to options framework. Quite e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6f0bdb221bd9
branches: trunk
changeset: 495083:6f0bdb221bd9
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Jun 02 14:14:43 2005 +0000
description:
Convert to options framework. Quite easy, since all options are
currently not supported :]
diffstat:
graphics/blender/Makefile | 42 ++----------------------------------------
graphics/blender/options.mk | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 40 deletions(-)
diffs (106 lines):
diff -r d9ab6a98b8af -r 6f0bdb221bd9 graphics/blender/Makefile
--- a/graphics/blender/Makefile Thu Jun 02 12:37:33 2005 +0000
+++ b/graphics/blender/Makefile Thu Jun 02 14:14:43 2005 +0000
@@ -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 @@
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 @@
${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 -r d9ab6a98b8af -r 6f0bdb221bd9 graphics/blender/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/blender/options.mk Thu Jun 02 14:14:43 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index