pkgsrc/graphics/blender/Makefile
adam 5d1cd91f0e Changes 2.41:
* GLSL pixel and vertex shaders
* Full access to Blenders material capabilities
* Split screen and multi-viewports
* Number of fixes were made to the physics system
* Return of the armature capabilities
2006-02-10 20:34:25 +00:00

56 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.50 2006/02/10 20:34:25 adam Exp $
DISTNAME= blender-2.41
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.umn.edu/pub/blender.org/source/ \
http://download.blender.org/source/
MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://www.blender.org/
COMMENT= Fully integrated 3D graphics creation suite
BUILD_DEPENDS+= scons>=0.96:../../devel/scons
WRKSRC= ${WRKDIR}/blender
USE_LIBTOOL= yes
USE_TOOLS+= gmake
LDFLAGS+= -lcrypto
.include "options.mk"
INSTALLATION_DIRS= bin
# remember to change the line number after an update
post-patch:
${MV} ${WRKSRC}/SConstruct ${WRKSRC}/SConstruct.orig
${AWK} '{print} NR == 62 {print "env.Append(LINKFLAGS = \"-Wl,-R${X11BASE}/lib,-R${LOCALBASE}/lib\")"}' ${WRKSRC}/SConstruct.orig > ${WRKSRC}/SConstruct
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
ADD_C_INCLUDE_DIRS=${WRKDIR}/.buildlink/include ADD_C_LIB_DIRS=${WRKDIR}/.buildlink/lib \
${PREFIX}/bin/scons -C ${WRKSRC} prefix=${PREFIX}
do-install:
${CP} -f ${WRKSRC}/blender ${WRKSRC}/blender-bin
${SED} -e "s|__PREFIX__|${PREFIX}|g" files/blender > ${WRKDIR}/blender/bin/blender
${CHMOD} +x ${WRKDIR}/blender/bin/blender
${INSTALL_PROGRAM} ${WRKSRC}/blender-bin ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts
${INSTALL_DATA} ${WRKSRC}/release/scripts/*.py \
${PREFIX}/share/blender/scripts
${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts/bpymodules
${INSTALL_DATA} ${WRKSRC}/release/scripts/bpymodules/*.py \
${PREFIX}/share/blender/scripts/bpymodules
${INSTALL} ${WRKDIR}/blender/bin/blender ${PREFIX}/bin
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/Mesa/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"