pkgsrc/graphics/blender/Makefile
jmmv 180179dc5d Remove the unconditional openal dependency (which is not used by default)
and bump PKGREVISION to 2.  openal can be pulled in by the BLENDER_USE_OPENAL
knob.  Pointed out by jschauma@.
2004-06-10 18:07:01 +00:00

71 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.35 2004/06/10 18:07:01 jmmv Exp $
#
DISTNAME= blender-2.32
PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.umn.edu/pub/blender.org/source/ \
http://download.blender.org/source/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://www.blender.org/
COMMENT= Fully integrated 3D graphics creation suite
USE_X11= YES
HAS_CONFIGURE= YES
USE_GNU_TOOLS+= make
USE_BUILDLINK3= YES
USE_LIBTOOL= YES
LDFLAGS+= -lcrypto
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
CONFIGURE_ARGS+= --prefix=${PREFIX} --without-ode
.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
.if defined(BLENDER_INSTALL_DOC)
DEPENDS+= blender-doc:../../graphics/blender-doc
.endif
.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
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/libtool/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/Mesa/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"