Guest User

blender-2.65a.ebuild

a guest
Feb 16th, 2013
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/app-i18n/opencc/opencc-0.2.0.ebuild,v 1.5 2012/05/18 14:20:03 josejx Exp $
  4.  
  5. EAPI=4
  6. PYTHON_DEPEND="3:3.3"
  7.  
  8. PATCHSET="a1"
  9.  
  10. inherit cmake-utils multilib
  11.  
  12. DESCRIPTION="Libraries for Simplified-Traditional Chinese Conversion"
  13. HOMEPAGE="http://code.google.com/p/open-chinese-convert/"
  14. SRC_URI="http://open-chinese-convert.googlecode.com/files/${P}.tar.gz"
  15.  
  16. IUSE="cycles +game-engine player +elbeem +openexr ffmpeg jpeg2k openal
  17.        openmp +dds fftw jack doc sndfile tweak-mode sdl sse redcode
  18.        iconv collada 3dmouse debug nls"
  19. REQUIRED_USE="player? ( game-engine ) redcode? ( jpeg2k )"
  20.  
  21. LANGS="en ar bg ca cs de el es es_ES fa fi fr he hr hu id it ja ky ne nl pl pt pt_BR ru sr sr@latin sv tr uk zh_CN zh_TW"
  22. for X in ${LANGS} ; do
  23.         IUSE+=" linguas_${X}"
  24.         REQUIRED_USE+=" linguas_${X}? ( nls )"
  25. done
  26.  
  27. DESCRIPTION="3D Creation/Animation/Publishing System"
  28. HOMEPAGE="http://www.blender.org"
  29.  
  30. case ${PV} in
  31.         *_p*)
  32.                 SRC_URI="http://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;;
  33.         *)
  34.                 SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;;
  35. esac
  36.  
  37. if [[ -n ${PATCHSET} ]]; then
  38.         SRC_URI+=" http://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz"
  39. fi
  40.  
  41. SLOT="0"
  42. LICENSE="|| ( GPL-2 BL )"
  43. KEYWORDS="~amd64 ~x86"
  44.  
  45.  
  46. RDEPEND="virtual/jpeg
  47.        media-libs/libpng:0
  48.        x11-libs/libXi
  49.        x11-libs/libX11
  50.        media-libs/tiff:0
  51.        media-libs/libsamplerate
  52.        virtual/opengl
  53.        virtual/glu
  54.        >=media-libs/freetype-2.0
  55.        virtual/libintl
  56.        media-libs/glew
  57.        >=sci-physics/bullet-2.78[-double-precision]
  58.        dev-cpp/eigen:3
  59.        sci-libs/colamd
  60.        sci-libs/ldl
  61.        dev-cpp/glog[gflags]
  62.        sys-libs/zlib
  63.        cycles? (
  64.                media-libs/openimageio
  65.                >=dev-libs/boost-1.44[threads(+)]
  66.        )
  67.        iconv? ( dev-libs/libiconv )
  68.        sdl? ( media-libs/libsdl[audio,joystick] )
  69.  
  70.        openexr? ( media-libs/openexr )
  71.        ffmpeg? (
  72.                >=virtual/ffmpeg-0.6.90[x264,mp3,encode,theora,jpeg2k?]
  73.        )
  74.        openal? ( >=media-libs/openal-1.6.372 )
  75.        fftw? ( sci-libs/fftw:3.0 )
  76.        jack? ( media-sound/jack-audio-connection-kit )
  77.        sndfile? ( media-libs/libsndfile )
  78.        collada? ( media-libs/opencollada )
  79.        3dmouse? ( dev-libs/libspnav )
  80.        cycles? ( dev-util/nvidia-cuda-toolkit )
  81.        jpeg2k? ( media-libs/openjpeg )"
  82.  
  83. DEPEND="dev-util/scons
  84.        doc? (
  85.                dev-python/sphinx
  86.                app-doc/doxygen[-nodot(-),dot(+)]
  87.        )
  88.        nls? ( sys-devel/gettext )
  89.        ${RDEPEND}"
  90.  
  91. pkg_pretend() {
  92.         if use openmp && ! tc-has-openmp; then
  93.                 eerror "You are using gcc built without 'openmp' USE."
  94.                 eerror "Switch CXX to an OpenMP capable compiler."
  95.                 die "Need openmp"
  96.         fi
  97.  
  98.         if use doc; then
  99.                 CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
  100.         fi
  101. }
  102.  
  103.  
  104. pkg_setup() {
  105.         python_set_active_version 3
  106. }
  107.  
  108. src_prepare() {
  109.         epatch "${WORKDIR}"/${PV}/*.patch
  110.         epatch "${FILESDIR}/blender-2.65a-CMakeList.patch"
  111.         epatch "${FILESDIR}/blender-2.65a-externs.patch"
  112.         epatch "${FILESDIR}/blender-2.65a-cmakes.patch"
  113.  
  114.         # remove some bundled deps
  115.         rm -r \
  116.                 extern/libopenjpeg \
  117.                 extern/glew \
  118.                 || die
  119.                 #extern/Eigen3 \
  120.                 #extern/bullet2 \
  121.                 #extern/colamd \
  122.                 #extern/binreloc \
  123.  
  124.                 #extern/libmv/third_party/{ldl,glog,gflags} \
  125.  
  126.         #ewarn "$(echo "Remaining bundled dependencies:";
  127.         #                ( find extern -mindepth 1 -maxdepth 1 -type d; find extern/libmv/third_party -mindepth 1 -maxdepth 1 -type d; ) | sed 's|^|- |')"
  128. }
  129.  
  130. src_configure() {
  131.  
  132. #cmake ../ -DPYTHON_VERSION=3.3.0 -DWITH_STRICT_DEP=ON -DPYTHON_LIBRARY=/usr/lib64/libpython3.3.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.3/
  133. # -DOPENJPEG_LIBRARY=/usr/lib64/libopenjpeg.so -DOPENJPEG_INCLUDE_DIR=/usr/include
  134. #-DWITH_OPENAL=OFF -DWITH_LZO=OFF -DWITH_LZMA=OFF -DWITH_INPUT_NDOF=OFF -DWITH_OPENIMAGEIO=OFF -DWITH_OPENCOLORIO=OFF -DWITH_PYTHON_INSTALL_NUMPY=OFF -DWITH_LIBMV=OFF -DWITH_BULLET=OFF        
  135.   local mycmakeargs=(
  136.     "-DWITH_STRICT_DEP=ON"
  137.     "-DWITH_BULLET=ON"
  138.     "-DWITH_SYSTEM_BULLET=ON"    
  139.     "-DWITH_LZO=OFF"
  140.     "-DWITH_LZMA=OFF"
  141.     "-DWITH_OPENCOLORIO=OFF"
  142.     "-DWITH_COMPOSITOR_LEGACY=ON"
  143.     "$(cmake-utils_use_with nls INTERNATIONAL)"
  144.     "$(cmake-utils_use_with player PLAYER)"
  145.     "$(cmake-utils_use_with elbeem MOD_FLUID)"
  146.     "$(cmake-utils_use_with fftw MOD_OCEANSIM)"
  147.     "$(cmake-utils_use_with openexr IMAGE_OPENEXR)"
  148.     "$(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG)"
  149.     "$(cmake-utils_use_with jpeg2k SYSTEM_OPENJPEG)"
  150.     "$(cmake-utils_use_with redcode IMAGE_REDCODE)"
  151.     "$(cmake-utils_use_with ffmpeg CODEC_FFMPEG)"
  152.     "$(cmake-utils_use_with collada OPENCOLLADA)"
  153.     "$(cmake-utils_use_with jack JACK)"
  154.     "$(cmake-utils_use_with 3dmouse INPUT_NDOF)"
  155.     "$(cmake-utils_use_with sse RAYOPTIMIZATION)"
  156.     "$(cmake-utils_use_with cycles CYCLES)"
  157.     "$(cmake-utils_use_with cycles OPENIMAGEIO)"
  158.     "$(cmake-utils_use_with cycles CYCLES_TEST)"
  159.     "$(cmake-utils_use_with cycles CYCLES_CUDA_BINARIES)"
  160.     "$(cmake-utils_use_with game-engine GAMEENGINE)"
  161.     "$(cmake-utils_use_with openmp OPENMP)"
  162.     "$(cmake-utils_use_with dds IMAGE_DDS)"
  163.     "$(cmake-utils_use_with openal OPENAL)"
  164.     "$(cmake-utils_use_with sdl SDL)"
  165.     "$(cmake-utils_use_with sndfile CODEC_SNDFILE)"
  166.     "$(cmake-utils_use_with fftw FFTW3)"
  167.         )
  168.  
  169.         cmake-utils_src_configure
  170.   ewarn "$(echo "Configured")"
  171. #"$(cmake-utils_use_with cycles CYCLES_OSL)"
  172. #"$(cmake-utils_use_with IN_SOURCE_BUILD)"
  173. #"$(cmake-utils_use_with BLENDER)"
  174. #"$(cmake-utils_use_with PYTHON)"
  175. #"$(cmake-utils_use_with PYTHON_SECURITY)"
  176. #"$(cmake-utils_use_with PYTHON_SECURITY)"
  177. #"$(cmake-utils_use_with PYTHON_SAFETY)"
  178. #"$(cmake-utils_use_with PYTHON_MODULE)"
  179. #"$(cmake-utils_use_with BUILDINFO)"
  180. #"$(cmake-utils_use_with IK_ITASC)"
  181. #"$(cmake-utils_use_with IK_SOLVER)"
  182. #"$(cmake-utils_use_with BULLET)"
  183. #"$(cmake-utils_use_with OPENCOLORIO)"
  184. #"$(cmake-utils_use_with COMPOSITOR)"
  185. #"$(cmake-utils_use_with COMPOSITOR_LEGACY)"
  186. #"$(cmake-utils_use_with GHOST_DEBUG)"
  187. #"$(cmake-utils_use_with GHOST_SDL)"
  188. #"$(cmake-utils_use_with HEADLESS)"
  189. #"$(cmake-utils_use_with AUDASPACE)"
  190. #"$(cmake-utils_use_with OPENMP)"
  191. #"$(cmake-utils_use_with X11_XINPUT)"
  192. #"$(cmake-utils_use_with X11_XF86VMODE)"
  193. #"$(cmake-utils_use_with SYSTEM_GLEW)"
  194. #"$(cmake-utils_use_with GHOST_XDND)"
  195. #"$(cmake-utils_use_with SYSTEM_OPENJPEG)"
  196. #"$(cmake-utils_use_with MOD_SMOKE)"
  197. #"$(cmake-utils_use_with MOD_DECIMATE)"
  198. #"$(cmake-utils_use_with MOD_BOOLEAN)"
  199. #"$(cmake-utils_use_with MOD_REMESH)"
  200. #"$(cmake-utils_use_with MOD_CLOTH_ELTOPO)"
  201. #"$(cmake-utils_use_with IMAGE_TIFF)"
  202. #"$(cmake-utils_use_with IMAGE_DDS)"
  203. #"$(cmake-utils_use_with IMAGE_CINEON)"
  204. #"$(cmake-utils_use_with IMAGE_HDR)"
  205. #"$(cmake-utils_use_with IMAGE_FRAMESERVER)"
  206. #"$(cmake-utils_use_with CODEC_AVI)"
  207. #"$(cmake-utils_use_with CODEC_SNDFILE)"
  208. #"$(cmake-utils_use_with CODEC_QUICKTIME)"
  209. #"$(cmake-utils_use_with SDL)"
  210. #"$(cmake-utils_use_with OPENAL)"
  211. #"$(cmake-utils_use_with LZO)"
  212. #"$(cmake-utils_use_with LZMA)"
  213. #"$(cmake-utils_use_with LIBMV)"
  214. #"$(cmake-utils_use_with INSTALL_PORTABLE)"
  215. #"$(cmake-utils_use_with PYTHON_INSTALL)"
  216. #"$(cmake-utils_use_with PYTHON_INSTALL_NUMPY)"
  217. #"$(cmake-utils_use_with MINGW64)"
  218. #"$(cmake-utils_use_with LLVM)"
  219. #"$(cmake-utils_use_with MEM_JEMALLOC)"
  220. #"$(cmake-utils_use_with CXX_GUARDEDALLOC)"
  221. #"$(cmake-utils_use_with ASSERT_ABORT)"
  222. #"$(cmake-utils_use_with COCOA)"
  223. #"$(cmake-utils_use_with LIBS10.5)"
  224. #"$(cmake-utils_use_with WEBPLUGIN)"
  225. #"$(cmake-utils_use_with IK_SOLVER)"
  226. #"$(cmake-utils_use_with IK_ITASC)"
  227. #"$(cmake-utils_use_with OPENCOLORIO)"
  228. #"$(cmake-utils_use_with BUILDINFO)"
  229.  
  230. #"$(cmake-utils_use_with INSTALL_PORTABLE)"
  231. #"$(cmake-utils_use_with X11_XF86VMODE)"
  232. #"$(cmake-utils_use_with X11_XINPUT)"
  233. #"$(cmake-utils_use_with MEM_JEMALLOC)"
  234. #"$(cmake-utils_use_with SYSTEM_GLEW)"
  235.  
  236. #"$(cmake-utils_use_with IMAGE_CINEON)"
  237.  
  238. #"$(cmake-utils_use_with IMAGE_HDR)"
  239. #"$(cmake-utils_use_with IMAGE_OPENEXR)"
  240. #"$(cmake-utils_use_with IMAGE_OPENJPEG)"
  241. #"$(cmake-utils_use_with IMAGE_REDCODE)"
  242. #"$(cmake-utils_use_with IMAGE_TIFF)"
  243.  
  244. #"$(cmake-utils_use_with JACK)"
  245. #"$(cmake-utils_use_with CODEC_AVI)"
  246. #"$(cmake-utils_use_with CODEC_FFMPEG)"
  247.  
  248. #"$(cmake-utils_use_with LZMA)"
  249. #"$(cmake-utils_use_with LZO)"
  250. #"$(cmake-utils_use_with PYTHON_INSTALL)"
  251. #"$(cmake-utils_use_with PYTHON_INSTALL_NUMPY)"
  252. #"$(cmake-utils_use_with PYTHON_MODULE)"
  253. #"$(cmake-utils_use_with PYTHON_SAFETY)"
  254. }
  255.  
  256. src_install() {
  257.         cmake-utils_src_install
  258.  
  259. }
RAW Paste Data