Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316913 Details for
Bug 276338
media-gfx/blender-2.5 SVN
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
blender-9999 added sm_30 flag
blender-9999.ebuild (text/plain), 7.34 KB, created by
AaronD
on 2012-07-01 22:13:28 UTC
(
hide
)
Description:
blender-9999 added sm_30 flag
Filename:
MIME Type:
Creator:
AaronD
Created:
2012-07-01 22:13:28 UTC
Size:
7.34 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI=4 > >inherit cmake-utils subversion eutils >PYTHON_DEPEND="3:3.2" > >DESCRIPTION="3D Creation/Animation/Publishing System" >HOMEPAGE="http://www.blender.org/" >ESVN_REPO_URI="https://svn.blender.org/svnroot/bf-blender/trunk/blender" > >LICENSE="GPL" >SLOT="2.6" >KEYWORDS="~x86 ~amd64" >IUSE="+game-engine player +elbeem eltopo +openexr ffmpeg libav jpeg2k \ > openal openmp +dds fftw jack sndfile oceansim sdl sse redcode intl \ > contrib collada cuda sm_13 sm_20 sm_21 sm_30 ndof > " >LANGS="en ar bg ca cs de el es fi fr hr it ja ko nl pl pt_BR ro ru sr sv uk zh_CN" >for X in ${LANGS} ; do > IUSE="${IUSE} linguas_${X}" >done > > >DEPEND="virtual/jpeg > media-libs/libpng > x11-libs/libXi > x11-libs/libX11 > media-libs/tiff > media-libs/libsamplerate > virtual/opengl > >=media-libs/freetype-2.0 > media-libs/glew > dev-cpp/eigen:2 > >=sci-physics/bullet-2.76 > sys-libs/zlib > sdl? ( media-libs/libsdl[audio,joystick] ) > openexr? ( media-libs/openexr ) > ffmpeg? ( > >=media-video/ffmpeg-0.5[x264,xvid,mp3,encode,theora] > jpeg2k? ( >=media-video/ffmpeg-0.5[x264,xvid,mp3,encode,theora,jpeg2k] ) > ) > libav? ( > media-video/libav[x264,xvid,mp3,encode,theora] > jpeg2k? ( media-video/libav[x264,xvid,mp3,encode,theora,jpeg2k] ) > ) > openal? ( >=media-libs/openal-1.6.372 ) > fftw? ( sci-libs/fftw:3.0 ) > jack? ( media-sound/jack-audio-connection-kit ) > sndfile? ( media-libs/libsndfile ) > collada? ( media-libs/opencollada ) > cuda? ( dev-util/nvidia-cuda-toolkit ) > media-libs/openimageio > ndof? ( app-misc/libspnav )" > >RDEPEND="${DEPEND}" > >REQUIRED_USE="libav? ( !ffmpeg ) > ffmpeg? ( !libav ) > redcode? ( ^^ ( libav ffmpeg ) )" > ># configure internationalization only if LINGUAS have more ># languages than 'en', otherwise must be disabled ># A user may have en and en_US enabled. For libre/openoffice ># as an example. >for mylang in "${LINGUAS}" ; do > if [[ ${mylang} != "en" && ${mylang} != "en_US" && ${mylang} != "" ]]; then > DEPEND="${DEPEND} > sys-devel/gettext" > break; > fi >done > ># S="${WORKDIR}/${PN}" > >src_unpack(){ > subversion_fetch > if use contrib; then > S="${S}"/release/scripts/addons_contrib subversion_fetch \ > "https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/" > fi >} > >pkg_setup() { > enable_openmp="OFF" > if use openmp; then > if tc-has-openmp; then > enable_openmp="ON" > else > ewarn "You are using gcc built without 'openmp' USE." > ewarn "Switch CXX to an OpenMP capable compiler." > die "Need openmp" > fi > fi > > if ! use sm_13 && ! use sm_20 && ! use sm_21 ! use sm_30; then > if use cuda; then > ewarn "You have not chosen a CUDA kernel. It takes an extreamly long time" > ewarn "to compile all the CUDA kernels. Check http://www.nvidia.com/object/cuda_gpus.htm" > ewarn "for your gpu and enable the matching sm_?? use flag to save time." > fi > else > if ! use cuda; then > ewarn "You have enabled a CUDA kernel (sm_??), but you have not set" > ewarn "'cuda' USE. CUDA will not be compiled until you do so." > fi > fi >} > >src_prepare() >{ > epatch "${FILESDIR}"/${PN}-desktop.patch > epatch "${FILESDIR}"/${PN}-${SLOT}-doxygen.patch > # Eigen2 > einfo "Removing bundled Eigen2 ..." > rm -r extern/Eigen2 > epatch "${FILESDIR}"/${PN}-${SLOT}-eigen.patch > if use libav; then > epatch "${FILESDIR}"/${PN}-libav.patch > fi >} > >src_configure() { > > local mycmakeargs="" > > #CUDA Kernal Selection > local CUDA_ARCH="" > if use cuda; then > if use sm_13; then > if [[ -n "${CUDA_ARCH}" ]] ; then > CUDA_ARCH="${CUDA_ARCH};sm_13" > else > CUDA_ARCH="sm_13" > fi > fi > if use sm_20; then > if [[ -n "${CUDA_ARCH}" ]] ; then > CUDA_ARCH="${CUDA_ARCH};sm_20" > else > CUDA_ARCH="sm_20" > fi > fi > if use sm_21; then > if [[ -n "${CUDA_ARCH}" ]] ; then > CUDA_ARCH="${CUDA_ARCH};sm_21" > else > CUDA_ARCH="sm_21" > fi > fi > if use sm_30; then > if [[ -n "${CUDA_ARCH}" ]] ; then > CUDA_ARCH="${CUDA_ARCH};sm_30" > else > CUDA_ARCH="sm_30" > fi > fi > > #If a kernel isn't selected then all of them are built by default > if [ -n "${CUDA_ARCH}" ] ; then > mycmakeargs="${mycmakeargs} -DCYCLES_CUDA_ARCH=${CUDA_ARCH}" > fi > mycmakeargs="${mycmakeargs} > -DWITH_CYCLES_CUDA=ON > -DCUDA_INCLUDES=/opt/cuda/include > -DCUDA_LIBRARIES=/opt/cuda/lib64 > -DCUDA_NVCC=/opt/cuda/bin/nvcc" > fi > > #iconv is enabled when international is enabled > if use intl; then > for mylang in "${LINGUAS}" ; do > if [[ ${mylang} != "en" && ${mylang} != "en_US" && ${mylang} != "" ]]; then > mycmakeargs="${mycmakeargs} -DWITH_INTERNATIONAL=ON" > break; > fi > done > fi > > #modified the install prefix in order to get everything to work for src_install > #make DESTDIR="${D}" install didn't work > mycmakeargs="${mycmakeargs} > -DWITH_BUILTIN_GLEW=OFF > -DWITH_PYTHON_INSTALL=OFF > -DWITH_BINRELOC=OFF > -DWITH_INSTALL_PORTABLE=OFF > -DCMAKE_INSTALL_PREFIX="${D}/usr" > $(cmake-utils_use_with player PLAYER) > $(cmake-utils_use_with elbeem MOD_FLUID) > $(cmake-utils_use_with sdl SDL) > $(cmake-utils_use_with sndfile CODEC_SNDFILE) > $(cmake-utils_use_with openexr IMAGE_OPENEXR) > $(cmake-utils_use_with dds IMAGE_DDS) > $(cmake-utils_use_with fftw FFTW3) > $(cmake-utils_use_with openmp OPENMP) > $(cmake-utils_use_with openal OPENAL) > $(cmake-utils_use_with sse RAYOPTIMIZATION) > $(cmake-utils_use_with redcode IMAGE_REDCODE) > $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG) > $(cmake-utils_use_with eltopo MOD_CLOTH_ELTOPO) > $(cmake-utils_use_with jack JACK) > $(cmake-utils_use_with collada OPENCOLLADA) > $(cmake-utils_use_with ndof INPUT_NDOF) > $(cmake-utils_use_with oceansim MOD_OCEANSIM)" > > # FIX: Game Engine module needs to be active to build the Blender Player > if ! use game-engine && use player; then > elog "Forcing Game Engine [+game-engine] as required by Blender Player [+player]" > mycmakeargs="${mycmakeargs} -DWITH_GAMEENGINE=ON" > else > mycmakeargs="${mycmakeargs} > $(cmake-utils_use_with game-engine GAMEENGINE)" > fi > > if use libav || use ffmpeg; then > mycmakeargs="${mycmakeargs} -DWITH_CODEC_FFMPEG=ON" > else > mycmakeargs="${mycmakeargs} -DWITH_CODEC_FFMPEG=OFF" > fi > > if use redcode && ! use jpeg2k && ! use libav || ! use ffmpeg; then > elog "Forcing OpenJPEG as required by Redcode [+redcode]" > mycmakeargs="${mycmakeargs} -DWITH_IMAGE_OPENJPEG=ON" > else > mycmakeargs="${mycmakeargs} > $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG)" > fi > > cmake-utils_src_configure >} > >src_install() { > cd "${CMAKE_BUILD_DIR}" > emake install || die >} > >pkg_preinst() { > cd "${D}/usr" > VERSION=`ls share/blender/` > > mv "bin/blender" "bin/blender-bin-${SLOT}" > mv "bin/blender-thumbnailer.py" "bin/blender-thumbnailer-${SLOT}.py" > if use player; then > mv "bin/blenderplayer" "bin/blenderplayer-${SLOT}" > fi > > # create a wrapper > cat <<- EOF >> "bin/blender-${SLOT}" > #!/bin/sh > > # stop this script if the local blender path is a symlink > if [ -L \${HOME}/.blender ]; then > echo "Detected a symbolic link for \${HOME}/.blender" > echo "Sorry, to avoid dangerous situations, the Blender binary can" > echo "not be started until you have removed the symbolic link:" > echo " # rm -i \${HOME}/.blender" > exit 1 > fi > > export BLENDER_SYSTEM_SCRIPTS="/usr/share/blender/${VERSION}/scripts" > export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${VERSION}/datafiles" > exec /usr/bin/blender-bin-${SLOT} \$* > EOF > > chmod 755 "bin/blender-${SLOT}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 276338
:
196474
|
196477
|
199549
|
201208
|
201222
|
201223
|
201225
|
201312
|
201684
|
201685
|
201687
|
201688
|
202454
|
204007
|
204008
|
204009
|
204010
|
204012
|
204014
|
204031
|
204216
|
204616
|
204622
|
204624
|
204625
|
205091
|
205675
|
205676
|
206068
|
206853
|
213876
|
215848
|
224099
|
224443
|
227357
|
227477
|
227479
|
227481
|
228419
|
228465
|
228519
|
238603
|
238605
|
241313
|
241315
|
246942
|
246944
|
252871
|
254325
|
255923
|
258479
|
258646
|
259906
|
263079
|
263847
|
264145
|
264655
|
265177
|
265489
|
266121
|
268743
|
269639
|
269671
|
269725
|
270319
|
271985
|
272415
|
274533
|
274535
|
277707
|
278649
|
278821
|
278823
|
278903
|
278905
|
280689
|
280693
|
282083
|
282169
|
285111
|
286065
|
286067
|
286175
|
286177
|
292059
|
292061
|
292063
|
292065
|
292067
|
292069
|
292071
|
292169
|
296945
|
297059
|
301437
|
301439
|
303799
|
307951
|
308237
|
309395
|
311773
|
316911
| 316913 |
328834