blob: 16850161b6fc266052b50f167d99b0433ce01851 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: blender
# Date created: 27 Feb 2003
# Whom: David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
PORTNAME= blender
PORTVERSION= 2.43
PORTREVISION= 2
CATEGORIES= graphics games
MASTER_SITES= http://download.blender.org/source/ \
ftp://ftp.cs.umn.edu/pub/blender.org/source/ \
http://public.planetmirror.com/pub/blender/source/
PKGNAMESUFFIX= -devel
MAINTAINER= dyeske@yahoo.com
COMMENT= 3D modeling/rendering/animation/gaming package
BUILD_DEPENDS= ${X11BASE}/lib/libftgl.a:${PORTSDIR}/graphics/ftgl
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
freetype.9:${PORTSDIR}/print/freetype2 \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
SDL.11:${PORTSDIR}/devel/sdl12 \
Half.4:${PORTSDIR}/graphics/OpenEXR \
openal.0:${PORTSDIR}/audio/openal \
alut.1:${PORTSDIR}/audio/freealut \
avutil.1:${PORTSDIR}/multimedia/ffmpeg-devel
PLIST_FILES= bin/blender
USE_X_PREFIX= yes
USE_GETTEXT= yes
USE_PYTHON= 2.4+
USE_SDL= sdl
USE_GL= yes
USE_GMAKE= yes
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.endif
.include <bsd.port.pre.mk>
ONLY_FOR_ARCHS= i386
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|sdl11-config|${SDL_CONFIG}|; \
s|2.3|${PYTHON_VER}|' \
${WRKSRC}/source/nan_definitions.mk
@${REINPLACE_CMD} -e \
's|gcc|${CC}|; \
s|g++|${CXX}|; \
s|-O2|${CFLAGS}|; \
s|-DGAMEBLENDER=1||; \
s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
${WRKSRC}/source/nan_compile.mk
@${REINPLACE_CMD} -e \
's|-lc_r||; \
s|-pthread|${PTHREAD_LIBS}|' \
${WRKSRC}/source/nan_link.mk
@${REINPLACE_CMD} -e \
's|-FIX_NAN_WARN||' \
${WRKSRC}/source/nan_warn.mk
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/obj/freebsd/bin/blender ${PREFIX}/bin
.include <bsd.port.post.mk>
|