blob: ea9051b80f583722d5cc279f594ca5fc3f199a8e (
plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.42a.ebuild,v 1.6 2006/11/11 13:44:48 lu_zero Exp $
inherit multilib flag-o-matic eutils python
#IUSE="sdl jpeg png mozilla truetype static fmod"
IUSE="openal sdl openexr jpeg png nls iconv blender-game ffmpeg"
DESCRIPTION="3D Creation/Animation/Publishing System"
HOMEPAGE="http://www.blender.org/"
SRC_URI="http://download.blender.org/source/${P}.tar.gz"
SLOT="0"
LICENSE="|| ( GPL-2 BL )"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
media-libs/tiff
nls? ( >=media-libs/freetype-2.0
virtual/libintl )
iconv? ( virtual/libiconv )
openal? ( ~media-libs/openal-0.0.8
media-libs/freealut )
sdl? ( >=media-libs/libsdl-1.2 )
ffmpeg? ( ~media-video/ffmpeg-0.4.9_p20060530 )
~media-libs/x264-svn-20060612
>=dev-libs/openssl-0.9.6
>=media-gfx/yafray-0.0.7
nls? ( >=media-libs/ftgl-2.1 )
openexr? ( media-libs/openexr )
virtual/opengl"
DEPEND="dev-util/scons
|| ( x11-libs/libXt virtual/x11 )
${RDEPEND}"
blend_with() {
local UWORD="$2"
if [ -z "${UWORD}" ]; then
UWORD="$1"
fi
if useq $1; then
echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]'
else
echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]'
fi
return 0
}
src_unpack() {
unpack ${A}
mkdir -p ${WORKDIR}/install/linux2/plugins/
# chmod 755 bmake
# rm -fR include
cd ${WORKDIR}/install/linux2/plugins/
cp -pPR ${S}/source/blender/blenpluginapi include
cd ${S}
epatch ${FILESDIR}/blender-2.37-dirs.patch
# mkdir -p ${WORKDIR}/build/linux2/{extern,intern,source}
}
src_compile() {
local myconf=""
myconf="${myconf} $(blend_with openal)"
myconf="${myconf} $(blend_with sdl)"
myconf="${myconf} $(blend_with openexr)"
myconf="${myconf} $(blend_with jpeg)"
myconf="${myconf} $(blend_with ffmpeg)"
myconf="${myconf} $(blend_with png)"
myconf="${myconf} $(blend_with nls international)"
myconf="${myconf} $(blend_with iconv)"
myconf="${myconf} $(blend_with blender-game gameengine)"
scons ${MAKEOPTS} ${myconf} \
WITH_BF_PLAYER=0 || die
# sed -i -e "s/-O2/${CFLAGS// /\' ,\'}/g" ${S}/SConstruct
# scons ${MAKEOPTS} || die
cd ${WORKDIR}/install/linux2/plugins/
chmod 755 bmake
emake || die
}
src_install() {
exeinto /usr/bin/
doexe ${WORKDIR}/install/linux2/blender
dodir /usr/share/${PN}
exeinto /usr/$(get_libdir)/${PN}/textures
doexe ${WORKDIR}/install/linux2/plugins/texture/*.so
exeinto /usr/$(get_libdir)/${PN}/sequences
doexe ${WORKDIR}/install/linux2/plugins/sequence/*.so
insinto /usr/include/blender/
doins ${WORKDIR}/install/linux2/plugins/include/*.h
use nls && \
cp -pPR ${WORKDIR}/install/linux2/.blender/{.Blanguages,.bfont.ttf,locale}\
${D}/usr/share/${PN}
cp -pPR ${WORKDIR}/install/linux2/.blender/scripts ${D}/usr/share/${PN}
mv ${D}/usr/share/${PN}/locale ${D}/usr/share
insinto /usr/share/pixmaps
doins ${FILESDIR}/${PN}.png
insinto /usr/share/applications
doins ${FILESDIR}/${PN}.desktop
dodoc COPYING INSTALL README
}
pkg_preinst(){
if [ -h "/usr/$(get_libdir)/blender/plugins/include" ];
then
rm -f /usr/$(get_libdir)/blender/plugins/include
fi
}
|