diff options
author | 2011-11-27 19:33:29 +0100 | |
---|---|---|
committer | 2011-11-27 19:33:29 +0100 | |
commit | 306c17e14aaf2c2a8a2d8de04961df164a220054 (patch) | |
tree | deab88848385957b10f6b5133846bdb29815fe22 | |
parent | test (diff) | |
parent | use flag fixes & manifest updates (diff) | |
download | mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.tar.gz mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.tar.bz2 mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.zip |
Merge branch 'master' of /home/shaegler/dev/gentoo/mistafunk-gentoo-overlay
79 files changed, 4687 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f92e51 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.*~ + diff --git a/app-admin/tuxboot/Manifest b/app-admin/tuxboot/Manifest new file mode 100644 index 0000000..9c08424 --- /dev/null +++ b/app-admin/tuxboot/Manifest @@ -0,0 +1,3 @@ +DIST tuxboot-39.src.tar.gz 3305411 RMD160 9795c4a837383820ef4af3f59e0a601c521c630c SHA1 e0d510e9bd02d07f4e971af3d1486d569876edda SHA256 64f134617576a973dda8fe076d3607fac3393e1f433ce666cbf75f62f58dd41b +EBUILD tuxboot-39.ebuild 491 RMD160 13ff8f2f1671d6424c0586dcdb589f8b354aa928 SHA1 7b8a5a641dd1b9558d02772d44f38a7b11c39b21 SHA256 8ed3189eab7a93a862608db052df4522e374bb1101c1c3e30fa12ac83f417513 +MISC tuxboot-39.ebuild~ 500 RMD160 d58011abeaae24d0da77cba257434a34c60b7aaa SHA1 772f51ee6b3cc24eb92ea24f46f984b81990fd6e SHA256 a2a1413407214c2e9541d05dd4f0cc46b0e830371af433e3f404693502ff83d2 diff --git a/app-admin/tuxboot/tuxboot-39.ebuild b/app-admin/tuxboot/tuxboot-39.ebuild new file mode 100644 index 0000000..6ab2e16 --- /dev/null +++ b/app-admin/tuxboot/tuxboot-39.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils qt4-r2 + +DESCRIPTION="Tuxboot helps you to create a bootable Live USB drive for Clonezilla live, DRBL live, GParted live and Tux2live." +HOMEPAGE="http://tuxboot.org" +SRC_URI="mirror://sourceforge/tuxboot/${PF}.src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="" +RDEPEND="app-arch/p7zip" + +src_install() { + dobin tuxboot +} diff --git a/media-gfx/blender-cycles/blender-cycles-9999.ebuild b/media-gfx/blender-cycles/blender-cycles-9999.ebuild new file mode 100644 index 0000000..2482613 --- /dev/null +++ b/media-gfx/blender-cycles/blender-cycles-9999.ebuild @@ -0,0 +1,391 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +PYTHON_DEPEND="3:3.2" +EAPI=3 + +inherit eutils python versionator flag-o-matic toolchain-funcs + +IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ + +dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ + redcode +zlib iconv contrib" + +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 + +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org" +SRC_URI="http://download.blender.org/source/${P}.tar.gz" + +SLOT="2.5" +LICENSE="|| ( GPL-2 BL )" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libXi + x11-libs/libX11 + media-libs/tiff + media-libs/libsamplerate + virtual/opengl + >=media-libs/freetype-2.0 + virtual/libintl + media-libs/glew + dev-cpp/eigen:2 + >=sci-physics/bullet-2.76 + iconv? ( virtual/libiconv ) + zlib? ( sys-libs/zlib ) + sdl? ( media-libs/libsdl[audio,joystick] ) + openexr? ( media-libs/openexr ) + ffmpeg? ( + >=virtual/ffmpeg-0.6.90[x264,mp3,encode,theora] + jpeg2k? ( >=virtual/ffmpeg-0.6.90[x264,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 ) + lcms? ( media-libs/lcms )" + +DEPEND=">=dev-util/scons-0.98 + apidoc? ( + dev-python/sphinx + >=app-doc/doxygen-1.5.7[-nodot] + ) + x11-base/xorg-server + ${RDEPEND}" + +# configure internationalization only if LINGUAS have more +# languages than 'en', otherwise must be disabled +if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then + DEPEND="${DEPEND} + sys-devel/gettext" +fi + +blend_with() { + local UWORD="$2" + [ -z "${UWORD}" ] && UWORD="$1" + if useq $1; then + echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + else + echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + fi +} + +pkg_setup() { + enable_openmp=0 + if use openmp; then + if tc-has-openmp; then + enable_openmp=1 + else + ewarn "You are using gcc built without 'openmp' USE." + ewarn "Switch CXX to an OpenMP capable compiler." + die "Need openmp" + fi + fi + python_set_active_version 3 +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-desktop.patch + epatch "${FILESDIR}"/${PN}-${SLOT}-doxyfile.patch + + # TODO: write a proper Makefile to replace the borked bmake script + epatch "${FILESDIR}"/${PN}-${SLOT}-bmake.patch + + # OpenJPEG + einfo "Removing bundled OpenJPEG ..." + rm -r extern/libopenjpeg + + # Glew + einfo "Removing bundled Glew ..." + rm -r extern/glew + epatch "${FILESDIR}"/${PN}-${SLOT}-glew.patch + + # Eigen2 + einfo "Removing bundled Eigen2 ..." + rm -r extern/Eigen2 + epatch "${FILESDIR}"/${PN}-${SLOT}-eigen.patch +} + +src_configure() { + # add system openjpeg into Scons build options. + cat <<- EOF >> "${S}"/user-config.py + BF_OPENJPEG="/usr" + BF_OPENJPEG_INC="/usr/include" + BF_OPENJPEG_LIB="openjpeg" + EOF + + # FIX: littlecms includes path aren't specified + if use lcms; then + cat <<- EOF >> "${S}"/user-config.py + BF_LCMS_INC="/usr/include/" + BF_LCMS_LIB="lcms" + BF_LCMS_LIBPATH="/usr/lib/" + EOF + fi + + # add system sci-physic/bullet into Scons build options. +# cat <<- EOF >> "${S}"/user-config.py +# WITH_BF_BULLET=1 +# BF_BULLET="/usr/include" +# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" +# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" +# EOF + + #add iconv into Scons build options. + if use !elibc_glibc && use !elibc_uclibc && use iconv; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_ICONV=1 + BF_ICONV="/usr" + EOF + fi + + # configure internationalization only if LINGUAS have more + # languages than 'en', otherwise must be disabled + [[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py + + # configure Elbeem fluid system + use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py + + # configure Tweak Mode + use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py + + # 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]" + echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py + else + blend_with game-engine gameengine + fi + + # set CFLAGS used in /etc/make.conf correctly + echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ + | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # set CXXFLAGS used in /etc/make.conf correctly + local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset general options passed to the C/C++ compilers (useless hardcoded flags) + # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu + # shadows, see bug #276338 for reference + echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py + + # set LDFLAGS used in /etc/make.conf correctly + local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset REL_* variables (useless hardcoded flags) + cat <<- EOF >> "${S}"/user-config.py + REL_CFLAGS=[] + REL_CXXFLAGS=[] + REL_CCFLAGS=[] + EOF + + # reset warning flags (useless for NON blender developers) + cat <<- EOF >> "${S}"/user-config.py + C_WARN =[ '-w', '-g0' ] + CC_WARN =[ '-w', '-g0' ] + CXX_WARN=[ '-w', '-g0' ] + EOF + + # detecting -j value from MAKEOPTS + local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" + [[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS + + # generic settings which differ from the defaults from linux2-config.py + cat <<- EOF >> "${S}"/user-config.py + BF_OPENGL_LIB='GL GLU X11 Xi GLEW' + BF_INSTALLDIR="../install" + WITHOUT_BF_PYTHON_INSTALL=1 + BF_PYTHON="/usr" + BF_PYTHON_VERSION="3.2" + BF_PYTHON_ABI_FLAGS="" + BF_BUILDINFO=0 + BF_QUIET=1 + BF_NUMJOBS=${NUMJOBS} + BF_LINE_OVERWRITE=0 + WITH_BF_FHS=1 + WITH_BF_BINRELOC=0 + WITH_BF_STATICOPENGL=0 + WITH_BF_OPENMP=${enable_openmp} + EOF + + # configure WITH_BF* Scons build options + for arg in \ + 'sdl' \ + 'apidoc docs' \ + 'lcms' \ + 'jack' \ + 'sndfile' \ + 'openexr' \ + 'dds' \ + 'fftw fftw3' \ + 'jpeg2k openjpeg' \ + 'openal'\ + 'ffmpeg' \ + 'ffmpeg ogg' \ + 'player' \ + 'collada' \ + 'sse rayoptimization' \ + 'redcode' \ + 'zlib' ; do + blend_with ${arg} + done + + # enable debugging/testing support + use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py + use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py +} + +src_compile() { + scons || die \ + '!!! Please add "${S}/scons.config" when filing bugs reports \ + to bugs.gentoo.org' + + einfo "Building plugins ..." + cd "${WORKDIR}"/${P}/release/plugins \ + || die "dir ${WORKDIR}/${P}/release/plugins do not exist" + chmod 755 bmake + + # FIX: plugins are built without respecting user's LDFLAGS + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + LDFLAGS="$(raw-ldflags) -Bshareable" \ + > /dev/null \ + || die "plugins compilation failed" +} + +src_install() { + # creating binary wrapper + cat <<- EOF >> "${WORKDIR}/install/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/${SLOT}/scripts" + export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" + exec /usr/bin/blender-bin-${SLOT} \$* + EOF + + # install binaries + exeinto /usr/bin/ + cp "${WORKDIR}/install/blender" "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-${SLOT}" + if use player; then + cp "${WORKDIR}/install/blenderplayer" \ + "${WORKDIR}/install/blenderplayer-${SLOT}" + doexe "${WORKDIR}/install/blenderplayer-${SLOT}" + fi + + # install plugins + exeinto /usr/share/${PN}/${SLOT}/textures + doexe "${WORKDIR}"/${P}/release/plugins/texture/*.so + exeinto /usr/share/${PN}/${SLOT}/sequences + doexe "${WORKDIR}"/${P}/release/plugins/sequence/*.so + insinto /usr/include/${PN}/${SLOT} + doins "${WORKDIR}"/${P}/release/plugins/include/*.h +# rm -r "${WORKDIR}"/${P}/release/plugins || die + + # install desktop file + insinto /usr/share/pixmaps + cp release/freedesktop/icons/scalable/apps/blender.svg \ + release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + doins release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + insinto /usr/share/applications + cp release/freedesktop/blender.desktop \ + release/freedesktop/blender-${SLOT}.desktop + doins release/freedesktop/blender-${SLOT}.desktop + + # install docs +# use doc && dodoc release/text/BlenderQuickStart.pdf + if use apidoc; then + + einfo "Generating (BGE) Blender Game Engine API docs ..." + docinto "API/BGE_API" + dohtml -r "${WORKDIR}"/${P}/doc/* + +# einfo "Generating (BPY) Blender Python API docs ..." +# epydoc source/blender/python/doc/*.py -v \ +# -o doc/BPY_API \ +# --quiet --quiet --quiet \ +# --simple-term \ +# --inheritance=included \ +# --graph=all \ +# --dotpath /usr/bin/dot \ +# || die "epydoc failed." +# docinto "API/python" +# dohtml -r doc/BPY_API/* + + einfo "Generating Blender C/C++ API docs ..." + pushd "${WORKDIR}"/${P}/doc/doxygen > /dev/null + doxygen -u Doxyfile + doxygen || die "doxygen failed to build API docs." + docinto "API/blender" + dohtml -r html/* + popd > /dev/null + fi + + # final cleanup + rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} + + # installing blender + insinto /usr/share/${PN}/${SLOT} + doins -r "${WORKDIR}"/install/2.59/* || die + + # FIX: making all python scripts readable only by group 'users', + # so nobody can modify scripts apart root user, but python + # cache (*.pyc) can be written and shared across the users. + chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die + chmod 755 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die +} + +pkg_preinst() { + if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; + then + rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include + fi +} + +pkg_postinst() { + echo + elog "Blender uses python integration. As such, may have some" + elog "inherit risks with running unknown python scripting." + elog + elog "It is recommended to change your blender temp directory" + elog "from /tmp to /home/user/tmp or another tmp file under your" + elog "home directory. This can be done by starting blender, then" + elog "dragging the main menu down do display all paths." + elog + elog "Blender has its own internal rendering engine but you" + elog "can export to external renderers for image computation" + elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" + elog + elog "If you need one of them just emerge it:" + elog " [1] emerge -av media-gfx/yafray" + elog " [2] emerge -av media-gfx/sunflow" + elog " [3] emerge -av media-gfx/povray" + elog " [4] emerge -av media-gfx/luxrender" + elog + elog "When setting the Blender paths with the User Preferences" + elog "dialog box, remember to NOT declare your home's paths as:" + elog "~/.blender, but as: /home/user/.blender; in other words," + elog "DO NOT USE the tilde inside the paths, as Blender is not" + elog "able to handle it, ignoring your customizations." +} diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest new file mode 100644 index 0000000..ea163a6 --- /dev/null +++ b/media-gfx/blender/Manifest @@ -0,0 +1,12 @@ +AUX blender-2.5-bmake.patch 424 RMD160 0520e3f4a9a02be1b679d38934c2358a6f1c1fa2 SHA1 347a95208976878c56ebcd42f3484c95eca4c0fe SHA256 f69ecf7cd54ba9099408568f436e65b18e4d55f15ac1c07054cbd7c8d18c24bf +AUX blender-2.5-doxyfile.patch 595 RMD160 f4890f0ead6943f323bc61e7f6766c2133e8591b SHA1 0fd7c202f044224cf9944596cf36cfcd56b39067 SHA256 d267e0fab4ecb9be78b9238a9c2af60ac9d5ddb7b42f73f479b9266704605883 +AUX blender-2.5-eigen.patch 945 RMD160 f27887af1ec8f335f999786da43a7a1c6660c03c SHA1 d7d083473da1a0995093058dbd6ed02ad045ec1e SHA256 4d105fee499e53e381be408d520d5ad06d9a3414a5e4a471ea3ded7e0db2868a +AUX blender-2.5-ffmpeg.patch 2356 RMD160 7bab6c7af309a3db2c88030e75c3605fd46c47fb SHA1 5eb7c932de187a6a42327710dafb48f23fecb16d SHA256 cd73f330e1f5cadf863691effebf56b3400a0fb152147838f6181abae14b9f2a +AUX blender-2.5-glew.patch 502 RMD160 387e2142b29c3f0bd40ff9893d0378dd17151827 SHA1 69f05bbbb3c249124943ac133eed25d7dd72a715 SHA256 bcf57104045e11513b922ebe98e8401ef9395dbda707b2058a2a7623611d3f26 +AUX blender-2.59-r1-opencollada-fixes.patch 2405 RMD160 c270a462caaa9be50a83d8bce05c9e7dcafff14a SHA1 533e507413a77c58894024d8722b7efcbe4ecd29 SHA256 861c2e0f2a58c334ec7d82f20d2f7f197fe73420fac524edf26b01d75807a9b5 +AUX blender-desktop.patch 639 RMD160 c0912b6b1c2dbb823b622c0ee7ce1116208ea308 SHA1 acbf1c8b62923ca02458ed37fb947b585f97fa66 SHA256 cd0b581d9636c7378209844412e64c807efbd7e6ba3333fe5cec8fe4bb8ecd7d +DIST blender-2.59.tar.gz 16935441 RMD160 8c026e6f682c6076b74854a9b29c049a052525a1 SHA1 00ec50e0c29db152cb098b397c1ff3bf3c95cc3b SHA256 1763d85f83c25608aa861c84de226c32e0700f522ba4539a7b4e90f5a5f0315d +DIST blender-2.60.tar.gz 25681314 RMD160 3ba093ddbefb4376c2874b44740702eda0fc4d73 SHA1 5092d8d9b047e70020d58deb24f1ec66c475048e SHA256 daf195f41be2024e3ac913ed47d415b9903214e7ceefee1ca23cb5879ec7261d +EBUILD blender-2.59-r1.ebuild 12287 RMD160 f7db51be73b86a364e9ea1896400a1e82205ed31 SHA1 d06f30ba211fc3ff5149e59a0448848bdd201594 SHA256 8c7b25f51f0dcac5a9df76796ae873ef9455a31aed50cd739d076ef32327f97c +EBUILD blender-2.60.ebuild 12265 RMD160 5e410bdf0bedf99ca01aab7f8f73de2c2cffafb1 SHA1 563a4baca70a2baaf7960abafac7bfbbbb03628f SHA256 1373e5cb9206446f659171e21ce4a1cf430500a80d383ea6b59e59c60a8f759e +EBUILD blender-2.60_rc.ebuild 12457 RMD160 22af4a96410c079e9e977873f6a50a4db46d5065 SHA1 b2c63616718d5bd28bbc5bedef0da83b96ebd2ae SHA256 bdda88a5ae39a2f801ec04391ef566ec4f04e5fe1c88681349e3200fe24442a9 diff --git a/media-gfx/blender/blender-2.59-r1.ebuild b/media-gfx/blender/blender-2.59-r1.ebuild new file mode 100644 index 0000000..0bdf09e --- /dev/null +++ b/media-gfx/blender/blender-2.59-r1.ebuild @@ -0,0 +1,403 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# this ebuild is based on the one found in the "alice" overlay (in layman) +# currently the main differences are collada support + +PYTHON_DEPEND="3:3.2" +EAPI=3 + +inherit eutils python versionator flag-o-matic toolchain-funcs + +IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ + +dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ + redcode +zlib iconv contrib collada" + +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 + +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org" +SRC_URI="http://download.blender.org/source/${P}.tar.gz" + +SLOT="2.5" +LICENSE="|| ( GPL-2 BL )" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libXi + x11-libs/libX11 + media-libs/tiff + media-libs/libsamplerate + virtual/opengl + >=media-libs/freetype-2.0 + virtual/libintl + media-libs/glew + dev-cpp/eigen:2 + >=sci-physics/bullet-2.76 + iconv? ( virtual/libiconv ) + zlib? ( sys-libs/zlib ) + sdl? ( media-libs/libsdl[audio,joystick] ) + openexr? ( media-libs/openexr ) + ffmpeg? ( + >=virtual/ffmpeg-0.6.90[x264,mp3,encode,theora] + jpeg2k? ( >=virtual/ffmpeg-0.6.90[x264,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 ) + lcms? ( media-libs/lcms ) + collada? ( media-libs/opencollada dev-libs/libxml2 )" + +DEPEND=">=dev-util/scons-0.98 + apidoc? ( + dev-python/sphinx + >=app-doc/doxygen-1.5.7[-nodot] + ) + x11-base/xorg-server + ${RDEPEND}" + +# configure internationalization only if LINGUAS have more +# languages than 'en', otherwise must be disabled +if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then + DEPEND="${DEPEND} + sys-devel/gettext" +fi + +blend_with() { + local UWORD="$2" + [ -z "${UWORD}" ] && UWORD="$1" + if use $1; then + echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + else + echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + fi +} + +pkg_setup() { + enable_openmp=0 + if use openmp; then + if tc-has-openmp; then + enable_openmp=1 + else + ewarn "You are using gcc built without 'openmp' USE." + ewarn "Switch CXX to an OpenMP capable compiler." + die "Need openmp" + fi + fi + python_set_active_version 3 +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-desktop.patch + epatch "${FILESDIR}"/${PN}-${SLOT}-doxyfile.patch + + # TODO: write a proper Makefile to replace the borked bmake script + epatch "${FILESDIR}"/${PN}-${SLOT}-bmake.patch + + # OpenJPEG + rm -r extern/libopenjpeg + + # Glew + rm -r extern/glew + epatch "${FILESDIR}"/${PN}-${SLOT}-glew.patch + + # Eigen2 + rm -r extern/Eigen2 + epatch "${FILESDIR}"/${PN}-${SLOT}-eigen.patch + + epatch "${FILESDIR}/${PF}-opencollada-fixes.patch" +} + +src_configure() { + # add system openjpeg into Scons build options. + cat <<- EOF >> "${S}"/user-config.py + BF_OPENJPEG="/usr" + BF_OPENJPEG_INC="/usr/include" + BF_OPENJPEG_LIB="openjpeg" + EOF + + # FIX: littlecms includes path aren't specified + if use lcms; then + cat <<- EOF >> "${S}"/user-config.py + BF_LCMS_INC="/usr/include/" + BF_LCMS_LIB="lcms" + BF_LCMS_LIBPATH="/usr/lib/" + EOF + fi + + # add system sci-physic/bullet into Scons build options. +# cat <<- EOF >> "${S}"/user-config.py +# WITH_BF_BULLET=1 +# BF_BULLET="/usr/include" +# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" +# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" +# EOF + + #add iconv into Scons build options. + if use !elibc_glibc && use !elibc_uclibc && use iconv; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_ICONV=1 + BF_ICONV="/usr" + EOF + fi + + # configure internationalization only if LINGUAS have more + # languages than 'en', otherwise must be disabled + [[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py + + # configure Elbeem fluid system + use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py + + # configure Tweak Mode + use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py + + # 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]" + echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py + else + blend_with game-engine gameengine + fi + + # set CFLAGS used in /etc/make.conf correctly + echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ + | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # set CXXFLAGS used in /etc/make.conf correctly + local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset general options passed to the C/C++ compilers (useless hardcoded flags) + # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu + # shadows, see bug #276338 for reference + echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py + + # set LDFLAGS used in /etc/make.conf correctly + local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset REL_* variables (useless hardcoded flags) + cat <<- EOF >> "${S}"/user-config.py + REL_CFLAGS=[] + REL_CXXFLAGS=[] + REL_CCFLAGS=[] + EOF + + # reset warning flags (useless for NON blender developers) + cat <<- EOF >> "${S}"/user-config.py + C_WARN =[ '-w', '-g0' ] + CC_WARN =[ '-w', '-g0' ] + CXX_WARN=[ '-w', '-g0' ] + EOF + + # detecting -j value from MAKEOPTS + local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" + [[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS + + # generic settings which differ from the defaults from linux2-config.py + cat <<- EOF >> "${S}"/user-config.py + BF_OPENGL_LIB='GL GLU X11 Xi GLEW' + BF_INSTALLDIR="../install" + WITHOUT_BF_PYTHON_INSTALL=1 + BF_PYTHON="/usr" + BF_PYTHON_VERSION="3.2" + BF_PYTHON_ABI_FLAGS="" + BF_BUILDINFO=0 + BF_QUIET=1 + BF_NUMJOBS=${NUMJOBS} + BF_LINE_OVERWRITE=0 + WITH_BF_FHS=1 + WITH_BF_BINRELOC=0 + WITH_BF_STATICOPENGL=0 + WITH_BF_OPENMP=${enable_openmp} + EOF + + if use collada; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_COLLADA = True + BF_OPENCOLLADA = "/usr" + BF_OPENCOLLADA_INC = "/usr/include/opencollada" + BF_OPENCOLLADA_LIBPATH = "/usr/lib/opencollada" + EOF + fi + + # configure WITH_BF* Scons build options + for arg in \ + 'sdl' \ + 'apidoc docs' \ + 'lcms' \ + 'jack' \ + 'sndfile' \ + 'openexr' \ + 'dds' \ + 'fftw fftw3' \ + 'jpeg2k openjpeg' \ + 'openal'\ + 'ffmpeg' \ + 'ffmpeg ogg' \ + 'player' \ + 'collada' \ + 'sse rayoptimization' \ + 'redcode' \ + 'zlib' ; do + blend_with ${arg} + done + + # enable debugging/testing support + use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py + use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py +} + +src_compile() { + scons || die \ + '!!! Please add "${S}/scons.config" when filing bugs reports \ + to bugs.gentoo.org' + + einfo "Building plugins ..." + cd "${WORKDIR}"/${P}/release/plugins \ + || die "dir ${WORKDIR}/${P}/release/plugins do not exist" + chmod 755 bmake + + # FIX: plugins are built without respecting user's LDFLAGS + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + LDFLAGS="$(raw-ldflags) -Bshareable" \ + > /dev/null \ + || die "plugins compilation failed" +} + +src_install() { + # creating binary wrapper + cat <<- EOF >> "${WORKDIR}/install/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/${SLOT}/scripts" + export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" + exec /usr/bin/blender-bin-${SLOT} \$* + EOF + + # install binaries + exeinto /usr/bin/ + cp "${WORKDIR}/install/blender" "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-${SLOT}" + if use player; then + cp "${WORKDIR}/install/blenderplayer" \ + "${WORKDIR}/install/blenderplayer-${SLOT}" + doexe "${WORKDIR}/install/blenderplayer-${SLOT}" + fi + + # install plugins + exeinto /usr/share/${PN}/${SLOT}/textures + doexe "${WORKDIR}"/${P}/release/plugins/texture/*.so + exeinto /usr/share/${PN}/${SLOT}/sequences + doexe "${WORKDIR}"/${P}/release/plugins/sequence/*.so + insinto /usr/include/${PN}/${SLOT} + doins "${WORKDIR}"/${P}/release/plugins/include/*.h +# rm -r "${WORKDIR}"/${P}/release/plugins || die + + # install desktop file + insinto /usr/share/pixmaps + cp release/freedesktop/icons/scalable/apps/blender.svg \ + release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + doins release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + insinto /usr/share/applications + cp release/freedesktop/blender.desktop \ + release/freedesktop/blender-${SLOT}.desktop + doins release/freedesktop/blender-${SLOT}.desktop + + # install docs +# use doc && dodoc release/text/BlenderQuickStart.pdf + if use apidoc; then + + einfo "Generating (BGE) Blender Game Engine API docs ..." + docinto "API/BGE_API" + dohtml -r "${WORKDIR}"/${P}/doc/* + +# einfo "Generating (BPY) Blender Python API docs ..." +# epydoc source/blender/python/doc/*.py -v \ +# -o doc/BPY_API \ +# --quiet --quiet --quiet \ +# --simple-term \ +# --inheritance=included \ +# --graph=all \ +# --dotpath /usr/bin/dot \ +# || die "epydoc failed." +# docinto "API/python" +# dohtml -r doc/BPY_API/* + + einfo "Generating Blender C/C++ API docs ..." + pushd "${WORKDIR}"/${P}/doc/doxygen > /dev/null + doxygen -u Doxyfile + doxygen || die "doxygen failed to build API docs." + docinto "API/blender" + dohtml -r html/* + popd > /dev/null + fi + + # final cleanup + rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} + + # installing blender + insinto /usr/share/${PN}/${SLOT} + doins -r "${WORKDIR}"/install/2.59/* || die + + # FIX: making all python scripts readable only by group 'users', + # so nobody can modify scripts apart root user, but python + # cache (*.pyc) can be written and shared across the users. + chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die + chmod 755 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die +} + +pkg_preinst() { + if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; + then + rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include + fi +} + +pkg_postinst() { + echo + elog "Blender uses python integration. As such, may have some" + elog "inherit risks with running unknown python scripting." + elog + elog "It is recommended to change your blender temp directory" + elog "from /tmp to /home/user/tmp or another tmp file under your" + elog "home directory. This can be done by starting blender, then" + elog "dragging the main menu down do display all paths." + elog + elog "Blender has its own internal rendering engine but you" + elog "can export to external renderers for image computation" + elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" + elog + elog "If you need one of them just emerge it:" + elog " [1] emerge -av media-gfx/yafray" + elog " [2] emerge -av media-gfx/sunflow" + elog " [3] emerge -av media-gfx/povray" + elog " [4] emerge -av media-gfx/luxrender" + elog + elog "When setting the Blender paths with the User Preferences" + elog "dialog box, remember to NOT declare your home's paths as:" + elog "~/.blender, but as: /home/user/.blender; in other words," + elog "DO NOT USE the tilde inside the paths, as Blender is not" + elog "able to handle it, ignoring your customizations." +} diff --git a/media-gfx/blender/blender-2.60.ebuild b/media-gfx/blender/blender-2.60.ebuild new file mode 100644 index 0000000..8d8bd1b --- /dev/null +++ b/media-gfx/blender/blender-2.60.ebuild @@ -0,0 +1,409 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# this ebuild is based on the one found in the "alice" overlay (in layman) +# currently the main differences are collada support + +PYTHON_DEPEND="3:3.2" +EAPI=3 + +inherit eutils python versionator flag-o-matic toolchain-funcs + +IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ + +dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ + redcode +zlib iconv contrib collada" + +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 + +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org" +SRC_URI="http://download.blender.org/source/${P}.tar.gz" + +SLOT="2.6" +LICENSE="|| ( GPL-2 BL )" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libXi + x11-libs/libX11 + media-libs/tiff + media-libs/libsamplerate + virtual/opengl + >=media-libs/freetype-2.0 + virtual/libintl + media-libs/glew + dev-cpp/eigen:2 + >=sci-physics/bullet-2.76 + iconv? ( virtual/libiconv ) + zlib? ( sys-libs/zlib ) + sdl? ( media-libs/libsdl[audio,joystick] ) + openexr? ( media-libs/openexr ) + ffmpeg? ( + >=virtual/ffmpeg-0.6.90[x264,mp3,encode,theora] + jpeg2k? ( >=virtual/ffmpeg-0.6.90[x264,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 ) + lcms? ( media-libs/lcms ) + collada? ( media-libs/opencollada dev-libs/libxml2 )" + +DEPEND=">=dev-util/scons-0.98 + apidoc? ( + dev-python/sphinx + >=app-doc/doxygen-1.5.7[-nodot] + ) + x11-base/xorg-server + ${RDEPEND}" + +# configure internationalization only if LINGUAS have more +# languages than 'en', otherwise must be disabled +if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then + DEPEND="${DEPEND} + sys-devel/gettext" +fi + +blend_with() { + local UWORD="$2" + [ -z "${UWORD}" ] && UWORD="$1" + if use $1; then + echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + else + echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + fi +} + +pkg_setup() { + enable_openmp=0 + if use openmp; then + if tc-has-openmp; then + enable_openmp=1 + else + ewarn "You are using gcc built without 'openmp' USE." + ewarn "Switch CXX to an OpenMP capable compiler." + die "Need openmp" + fi + fi + python_set_active_version 3 +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-desktop.patch + epatch "${FILESDIR}"/${PN}-2.5-doxyfile.patch + + # TODO: write a proper Makefile to replace the borked bmake script + epatch "${FILESDIR}"/${PN}-2.5-bmake.patch + + # OpenJPEG + rm -r extern/libopenjpeg + + # Glew + rm -r extern/glew + #epatch "${FILESDIR}"/${PN}-2.5-glew.patch + + # Eigen2 + rm -r extern/Eigen2 + epatch "${FILESDIR}"/${PN}-2.5-eigen.patch + + epatch "${FILESDIR}/blender-2.59-r1-opencollada-fixes.patch" +} + +src_configure() { + S="${WORKDIR}/$PF" + + # add system openjpeg into Scons build options. + cat <<- EOF >> "${S}"/user-config.py + BF_OPENJPEG="/usr" + BF_OPENJPEG_INC="/usr/include" + BF_OPENJPEG_LIB="openjpeg" + EOF + + # FIX: littlecms includes path aren't specified + if use lcms; then + cat <<- EOF >> "${S}"/user-config.py + BF_LCMS_INC="/usr/include/" + BF_LCMS_LIB="lcms" + BF_LCMS_LIBPATH="/usr/lib/" + EOF + fi + + # add system sci-physic/bullet into Scons build options. +# cat <<- EOF >> "${S}"/user-config.py +# WITH_BF_BULLET=1 +# BF_BULLET="/usr/include" +# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" +# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" +# EOF + + #add iconv into Scons build options. + if use !elibc_glibc && use !elibc_uclibc && use iconv; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_ICONV=1 + BF_ICONV="/usr" + EOF + fi + + # configure internationalization only if LINGUAS have more + # languages than 'en', otherwise must be disabled + [[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py + + # configure Elbeem fluid system + use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py + + # configure Tweak Mode + use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py + + # 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]" + echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py + else + blend_with game-engine gameengine + fi + + # set CFLAGS used in /etc/make.conf correctly + echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ + | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # set CXXFLAGS used in /etc/make.conf correctly + local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset general options passed to the C/C++ compilers (useless hardcoded flags) + # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu + # shadows, see bug #276338 for reference + echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py + + # set LDFLAGS used in /etc/make.conf correctly + local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset REL_* variables (useless hardcoded flags) + cat <<- EOF >> "${S}"/user-config.py + REL_CFLAGS=[] + REL_CXXFLAGS=[] + REL_CCFLAGS=[] + EOF + + # reset warning flags (useless for NON blender developers) + cat <<- EOF >> "${S}"/user-config.py + C_WARN =[ '-w', '-g0' ] + CC_WARN =[ '-w', '-g0' ] + CXX_WARN=[ '-w', '-g0' ] + EOF + + # detecting -j value from MAKEOPTS + local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" + [[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS + + # generic settings which differ from the defaults from linux2-config.py + cat <<- EOF >> "${S}"/user-config.py + BF_OPENGL_LIB='GL GLU X11 Xi GLEW' + BF_INSTALLDIR="../install" + WITHOUT_BF_PYTHON_INSTALL=1 + BF_PYTHON="/usr" + BF_PYTHON_VERSION="3.2" + BF_PYTHON_ABI_FLAGS="" + BF_BUILDINFO=0 + BF_QUIET=1 + BF_NUMJOBS=${NUMJOBS} + BF_LINE_OVERWRITE=0 + WITH_BF_FHS=1 + WITH_BF_BINRELOC=0 + WITH_BF_STATICOPENGL=0 + WITH_BF_OPENMP=${enable_openmp} + EOF + + if use collada; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_COLLADA = True + BF_OPENCOLLADA = "/usr" + BF_OPENCOLLADA_INC = "/usr/include/opencollada" + BF_OPENCOLLADA_LIBPATH = "/usr/lib/opencollada" + EOF + fi + + # configure WITH_BF* Scons build options + for arg in \ + 'sdl' \ + 'apidoc docs' \ + 'lcms' \ + 'jack' \ + 'sndfile' \ + 'openexr' \ + 'dds' \ + 'fftw fftw3' \ + 'jpeg2k openjpeg' \ + 'openal'\ + 'ffmpeg' \ + 'ffmpeg ogg' \ + 'player' \ + 'collada' \ + 'sse rayoptimization' \ + 'redcode' \ + 'zlib' ; do + blend_with ${arg} + done + + # enable debugging/testing support + use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py + use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py +} + +src_compile() { + S="${WORKDIR}/$PF" + + scons || die \ + '!!! Please add "${S}/scons.config" when filing bugs reports \ + to bugs.gentoo.org' + + einfo "Building plugins ..." + cd "${S}/release/plugins" \ + || die "dir ${S}/release/plugins do not exist" + chmod 755 bmake + + # FIX: plugins are built without respecting user's LDFLAGS + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + LDFLAGS="$(raw-ldflags) -Bshareable" \ + > /dev/null \ + || die "plugins compilation failed" +} + +src_install() { + S="${WORKDIR}/$PF" + + # creating binary wrapper + cat <<- EOF >> "${WORKDIR}/install/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/${SLOT}/scripts" + export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" + exec /usr/bin/blender-bin-${SLOT} \$* + EOF + + # install binaries + exeinto /usr/bin/ + cp "${WORKDIR}/install/blender" "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/install/blender-${SLOT}" + if use player; then + cp "${WORKDIR}/install/blenderplayer" \ + "${WORKDIR}/install/blenderplayer-${SLOT}" + doexe "${WORKDIR}/install/blenderplayer-${SLOT}" + fi + + # install plugins +# exeinto /usr/share/${PN}/${SLOT}/textures +# doexe "${S}/release/plugins/texture/*.so" +# exeinto /usr/share/${PN}/${SLOT}/sequences +# doexe "${S}/release/plugins/sequence/*.so" +# insinto /usr/include/${PN}/${SLOT} +# doins "${S}/release/plugins/include/*.h" +# rm -r "${S}/release/plugins" || die + + # install desktop file + insinto /usr/share/pixmaps + cp release/freedesktop/icons/scalable/apps/blender.svg \ + release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + doins release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + insinto /usr/share/applications + cp release/freedesktop/blender.desktop \ + release/freedesktop/blender-${SLOT}.desktop + doins release/freedesktop/blender-${SLOT}.desktop + + # install docs +# use doc && dodoc release/text/BlenderQuickStart.pdf + if use apidoc; then + + einfo "Generating (BGE) Blender Game Engine API docs ..." + docinto "API/BGE_API" + dohtml -r "${S}"/doc/* + +# einfo "Generating (BPY) Blender Python API docs ..." +# epydoc source/blender/python/doc/*.py -v \ +# -o doc/BPY_API \ +# --quiet --quiet --quiet \ +# --simple-term \ +# --inheritance=included \ +# --graph=all \ +# --dotpath /usr/bin/dot \ +# || die "epydoc failed." +# docinto "API/python" +# dohtml -r doc/BPY_API/* + + einfo "Generating Blender C/C++ API docs ..." + pushd "${S}"/doc/doxygen > /dev/null + doxygen -u Doxyfile + doxygen || die "doxygen failed to build API docs." + docinto "API/blender" + dohtml -r html/* + popd > /dev/null + fi + + # final cleanup + rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} + + # installing blender + insinto /usr/share/${PN}/${SLOT} + doins -r "${WORKDIR}"/install/2.60/* || die + + # FIX: making all python scripts readable only by group 'users', + # so nobody can modify scripts apart root user, but python + # cache (*.pyc) can be written and shared across the users. + #chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die + #chmod 755 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die +} + +pkg_preinst() { + if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; + then + rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include + fi +} + +pkg_postinst() { + echo + elog "Blender uses python integration. As such, may have some" + elog "inherit risks with running unknown python scripting." + elog + elog "It is recommended to change your blender temp directory" + elog "from /tmp to /home/user/tmp or another tmp file under your" + elog "home directory. This can be done by starting blender, then" + elog "dragging the main menu down do display all paths." + elog + elog "Blender has its own internal rendering engine but you" + elog "can export to external renderers for image computation" + elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" + elog + elog "If you need one of them just emerge it:" + elog " [1] emerge -av media-gfx/yafray" + elog " [2] emerge -av media-gfx/sunflow" + elog " [3] emerge -av media-gfx/povray" + elog " [4] emerge -av media-gfx/luxrender" + elog + elog "When setting the Blender paths with the User Preferences" + elog "dialog box, remember to NOT declare your home's paths as:" + elog "~/.blender, but as: /home/user/.blender; in other words," + elog "DO NOT USE the tilde inside the paths, as Blender is not" + elog "able to handle it, ignoring your customizations." +} diff --git a/media-gfx/blender/blender-2.60_rc.ebuild b/media-gfx/blender/blender-2.60_rc.ebuild new file mode 100644 index 0000000..4390515 --- /dev/null +++ b/media-gfx/blender/blender-2.60_rc.ebuild @@ -0,0 +1,412 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# this ebuild is based on the one found in the "alice" overlay (in layman) +# currently the main differences are collada support + +PYTHON_DEPEND="3:3.2" +EAPI=3 + +inherit eutils python versionator flag-o-matic toolchain-funcs subversion + +IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ + +dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ + redcode +zlib iconv contrib collada" + +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 + +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org" +#SRC_URI="http://download.blender.org/source/${P}.tar.gz" +ESVN_REPO_URI="https://svn.blender.org/svnroot/bf-blender/tags/blender-2.60-release" +ESVN_PROJECT="blender-2.60-rc" + +SLOT="2.6" +LICENSE="|| ( GPL-2 BL )" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libXi + x11-libs/libX11 + media-libs/tiff + media-libs/libsamplerate + virtual/opengl + >=media-libs/freetype-2.0 + virtual/libintl + media-libs/glew + dev-cpp/eigen:2 + >=sci-physics/bullet-2.76 + iconv? ( virtual/libiconv ) + zlib? ( sys-libs/zlib ) + sdl? ( media-libs/libsdl[audio,joystick] ) + openexr? ( media-libs/openexr ) + ffmpeg? ( + >=virtual/ffmpeg-0.6.90[x264,mp3,encode,theora] + jpeg2k? ( >=virtual/ffmpeg-0.6.90[x264,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 ) + lcms? ( media-libs/lcms ) + collada? ( media-libs/opencollada dev-libs/libxml2 )" + +DEPEND=">=dev-util/scons-0.98 + apidoc? ( + dev-python/sphinx + >=app-doc/doxygen-1.5.7[-nodot] + ) + x11-base/xorg-server + ${RDEPEND}" + +# configure internationalization only if LINGUAS have more +# languages than 'en', otherwise must be disabled +if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then + DEPEND="${DEPEND} + sys-devel/gettext" +fi + +blend_with() { + local UWORD="$2" + [ -z "${UWORD}" ] && UWORD="$1" + if use $1; then + echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + else + echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ + >> "${S}"/user-config.py + fi +} + +pkg_setup() { + enable_openmp=0 + if use openmp; then + if tc-has-openmp; then + enable_openmp=1 + else + ewarn "You are using gcc built without 'openmp' USE." + ewarn "Switch CXX to an OpenMP capable compiler." + die "Need openmp" + fi + fi + python_set_active_version 3 +} + +src_prepare() { + cd blender + epatch "${FILESDIR}"/${PN}-desktop.patch + epatch "${FILESDIR}"/${PN}-2.5-doxyfile.patch + + # TODO: write a proper Makefile to replace the borked bmake script + epatch "${FILESDIR}"/${PN}-2.5-bmake.patch + + # OpenJPEG + rm -r extern/libopenjpeg + + # Glew + rm -r extern/glew + #epatch "${FILESDIR}"/${PN}-2.5-glew.patch + + # Eigen2 + rm -r extern/Eigen2 + epatch "${FILESDIR}"/${PN}-2.5-eigen.patch + + epatch "${FILESDIR}/blender-2.59-r1-opencollada-fixes.patch" +} + +src_configure() { + S="${WORKDIR}/$PF/blender" + + # add system openjpeg into Scons build options. + cat <<- EOF >> "${S}"/user-config.py + BF_OPENJPEG="/usr" + BF_OPENJPEG_INC="/usr/include" + BF_OPENJPEG_LIB="openjpeg" + EOF + + # FIX: littlecms includes path aren't specified + if use lcms; then + cat <<- EOF >> "${S}"/user-config.py + BF_LCMS_INC="/usr/include/" + BF_LCMS_LIB="lcms" + BF_LCMS_LIBPATH="/usr/lib/" + EOF + fi + + # add system sci-physic/bullet into Scons build options. +# cat <<- EOF >> "${S}"/user-config.py +# WITH_BF_BULLET=1 +# BF_BULLET="/usr/include" +# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" +# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" +# EOF + + #add iconv into Scons build options. + if use !elibc_glibc && use !elibc_uclibc && use iconv; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_ICONV=1 + BF_ICONV="/usr" + EOF + fi + + # configure internationalization only if LINGUAS have more + # languages than 'en', otherwise must be disabled + [[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py + + # configure Elbeem fluid system + use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py + + # configure Tweak Mode + use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py + + # 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]" + echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py + else + blend_with game-engine gameengine + fi + + # set CFLAGS used in /etc/make.conf correctly + echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ + | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # set CXXFLAGS used in /etc/make.conf correctly + local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset general options passed to the C/C++ compilers (useless hardcoded flags) + # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu + # shadows, see bug #276338 for reference + echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py + + # set LDFLAGS used in /etc/make.conf correctly + local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" + echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py + + # reset REL_* variables (useless hardcoded flags) + cat <<- EOF >> "${S}"/user-config.py + REL_CFLAGS=[] + REL_CXXFLAGS=[] + REL_CCFLAGS=[] + EOF + + # reset warning flags (useless for NON blender developers) + cat <<- EOF >> "${S}"/user-config.py + C_WARN =[ '-w', '-g0' ] + CC_WARN =[ '-w', '-g0' ] + CXX_WARN=[ '-w', '-g0' ] + EOF + + # detecting -j value from MAKEOPTS + local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" + [[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS + + # generic settings which differ from the defaults from linux2-config.py + cat <<- EOF >> "${S}"/user-config.py + BF_OPENGL_LIB='GL GLU X11 Xi GLEW' + BF_INSTALLDIR="../install" + WITHOUT_BF_PYTHON_INSTALL=1 + BF_PYTHON="/usr" + BF_PYTHON_VERSION="3.2" + BF_PYTHON_ABI_FLAGS="" + BF_BUILDINFO=0 + BF_QUIET=1 + BF_NUMJOBS=${NUMJOBS} + BF_LINE_OVERWRITE=0 + WITH_BF_FHS=1 + WITH_BF_BINRELOC=0 + WITH_BF_STATICOPENGL=0 + WITH_BF_OPENMP=${enable_openmp} + EOF + + if use collada; then + cat <<- EOF >> "${S}"/user-config.py + WITH_BF_COLLADA = True + BF_OPENCOLLADA = "/usr" + BF_OPENCOLLADA_INC = "/usr/include/opencollada" + BF_OPENCOLLADA_LIBPATH = "/usr/lib/opencollada" + EOF + fi + + # configure WITH_BF* Scons build options + for arg in \ + 'sdl' \ + 'apidoc docs' \ + 'lcms' \ + 'jack' \ + 'sndfile' \ + 'openexr' \ + 'dds' \ + 'fftw fftw3' \ + 'jpeg2k openjpeg' \ + 'openal'\ + 'ffmpeg' \ + 'ffmpeg ogg' \ + 'player' \ + 'collada' \ + 'sse rayoptimization' \ + 'redcode' \ + 'zlib' ; do + blend_with ${arg} + done + + # enable debugging/testing support + use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py + use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py +} + +src_compile() { + S="${WORKDIR}/$PF/blender" + + scons || die \ + '!!! Please add "${S}/scons.config" when filing bugs reports \ + to bugs.gentoo.org' + + einfo "Building plugins ..." + cd "${S}/release/plugins" \ + || die "dir ${S}/release/plugins do not exist" + chmod 755 bmake + + # FIX: plugins are built without respecting user's LDFLAGS + emake \ + CFLAGS="${CFLAGS} -fPIC" \ + LDFLAGS="$(raw-ldflags) -Bshareable" \ + > /dev/null \ + || die "plugins compilation failed" +} + +src_install() { + S="${WORKDIR}/$PF/blender" + + # creating binary wrapper + cat <<- EOF >> "${WORKDIR}/$PF/install/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/${SLOT}/scripts" + export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" + exec /usr/bin/blender-bin-${SLOT} \$* + EOF + + # install binaries + exeinto /usr/bin/ + cp "${WORKDIR}/$PF/install/blender" "${WORKDIR}/$PF/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/$PF/install/blender-bin-${SLOT}" + doexe "${WORKDIR}/$PF/install/blender-${SLOT}" + if use player; then + cp "${WORKDIR}/$PF/install/blenderplayer" \ + "${WORKDIR}/$PF/install/blenderplayer-${SLOT}" + doexe "${WORKDIR}/$PF/install/blenderplayer-${SLOT}" + fi + + # install plugins + exeinto /usr/share/${PN}/${SLOT}/textures + doexe "${S}/release/plugins/texture/*.so" + exeinto /usr/share/${PN}/${SLOT}/sequences + doexe "${S}/release/plugins/sequence/*.so" + insinto /usr/include/${PN}/${SLOT} + doins "${S}/release/plugins/include/*.h" +# rm -r "${S}/release/plugins" || die + + # install desktop file + insinto /usr/share/pixmaps + cp release/freedesktop/icons/scalable/apps/blender.svg \ + release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + doins release/freedesktop/icons/scalable/apps/blender-${SLOT}.svg + insinto /usr/share/applications + cp release/freedesktop/blender.desktop \ + release/freedesktop/blender-${SLOT}.desktop + doins release/freedesktop/blender-${SLOT}.desktop + + # install docs +# use doc && dodoc release/text/BlenderQuickStart.pdf + if use apidoc; then + + einfo "Generating (BGE) Blender Game Engine API docs ..." + docinto "API/BGE_API" + dohtml -r "${S}"/doc/* + +# einfo "Generating (BPY) Blender Python API docs ..." +# epydoc source/blender/python/doc/*.py -v \ +# -o doc/BPY_API \ +# --quiet --quiet --quiet \ +# --simple-term \ +# --inheritance=included \ +# --graph=all \ +# --dotpath /usr/bin/dot \ +# || die "epydoc failed." +# docinto "API/python" +# dohtml -r doc/BPY_API/* + + einfo "Generating Blender C/C++ API docs ..." + pushd "${S}"/doc/doxygen > /dev/null + doxygen -u Doxyfile + doxygen || die "doxygen failed to build API docs." + docinto "API/blender" + dohtml -r html/* + popd > /dev/null + fi + + # final cleanup + rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} + + # installing blender + insinto /usr/share/${PN}/${SLOT} + doins -r "${WORKDIR}/$PF"/install/2.60/* || die + + # FIX: making all python scripts readable only by group 'users', + # so nobody can modify scripts apart root user, but python + # cache (*.pyc) can be written and shared across the users. + chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die + chmod 755 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die +} + +pkg_preinst() { + if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; + then + rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include + fi +} + +pkg_postinst() { + echo + elog "Blender uses python integration. As such, may have some" + elog "inherit risks with running unknown python scripting." + elog + elog "It is recommended to change your blender temp directory" + elog "from /tmp to /home/user/tmp or another tmp file under your" + elog "home directory. This can be done by starting blender, then" + elog "dragging the main menu down do display all paths." + elog + elog "Blender has its own internal rendering engine but you" + elog "can export to external renderers for image computation" + elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" + elog + elog "If you need one of them just emerge it:" + elog " [1] emerge -av media-gfx/yafray" + elog " [2] emerge -av media-gfx/sunflow" + elog " [3] emerge -av media-gfx/povray" + elog " [4] emerge -av media-gfx/luxrender" + elog + elog "When setting the Blender paths with the User Preferences" + elog "dialog box, remember to NOT declare your home's paths as:" + elog "~/.blender, but as: /home/user/.blender; in other words," + elog "DO NOT USE the tilde inside the paths, as Blender is not" + elog "able to handle it, ignoring your customizations." +} diff --git a/media-gfx/blender/files/blender-2.5-bmake.patch b/media-gfx/blender/files/blender-2.5-bmake.patch new file mode 100644 index 0000000..0fff6d8 --- /dev/null +++ b/media-gfx/blender/files/blender-2.5-bmake.patch @@ -0,0 +1,15 @@ +--- release/plugins/bmake 2010-03-21 17:44:20.500741049 +0100 ++++ release/plugins/bmake 2010-03-21 17:44:33.659740173 +0100 +@@ -57,10 +57,10 @@ + LDFLAGS="-Bshareable"; + elif ( test $UNAME = "Linux" ) then + CC="gcc"; +- CFLAGS="-fPIC -funsigned-char -O2"; ++# CFLAGS="-fPIC -funsigned-char -O2"; + + LD="ld"; +- LDFLAGS="-Bshareable"; ++# LDFLAGS="-Bshareable"; + elif ( test $UNAME = "SunOS" ) then + CC="cc"; + CFLAGS="-O"; diff --git a/media-gfx/blender/files/blender-2.5-doxyfile.patch b/media-gfx/blender/files/blender-2.5-doxyfile.patch new file mode 100644 index 0000000..aa61c55 --- /dev/null +++ b/media-gfx/blender/files/blender-2.5-doxyfile.patch @@ -0,0 +1,11 @@ +--- blender-2.58a/doc/doxygen/Doxyfile 2011-07-11 23:27:33.975642545 -0300 ++++ blender-2.58a/doc/doxygen/Doxyfile 2011-07-11 23:28:54.913642574 -0300 +@@ -42,7 +42,7 @@ + # exceed 55 pixels and the maximum width should not exceed 200 pixels. + # Doxygen will copy the logo to the output directory. + +-PROJECT_LOGO = ../../release/freedesktop/icons/48x48/blender.png ++PROJECT_LOGO = ../../release/freedesktop/icons/48x48/apps/blender.png + + # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) + # base path where the generated documentation will be put. diff --git a/media-gfx/blender/files/blender-2.5-eigen.patch b/media-gfx/blender/files/blender-2.5-eigen.patch new file mode 100644 index 0000000..41f55ec --- /dev/null +++ b/media-gfx/blender/files/blender-2.5-eigen.patch @@ -0,0 +1,22 @@ +--- intern/itasc/SConscript 2009-09-26 09:14:02.000000000 +0200 ++++ intern/itasc/SConscript 2009-09-26 09:14:54.000000000 +0200 +@@ -5,7 +5,8 @@ + sources += env.Glob('kdl/*.cpp') + sources += env.Glob('kdl/utilities/*.cpp') + +-incs = '. ../../extern/Eigen2' ++#incs = '. ../../extern/Eigen2' ++incs = '. /usr/include/eigen2' + + env.BlenderLib ('bf_ITASC', sources, Split(incs), [], libtype=['intern','player'], priority=[20,100] ) + +--- source/blender/ikplugin/SConscript ++++ source/blender/ikplugin/SConscript +@@ -4,6 +4,6 @@ + sources = env.Glob('intern/*.c') + env.Glob('intern/*.cpp') + + incs = '#/intern/guardedalloc #/intern/iksolver/extern ../makesdna ../blenlib' +-incs += ' ../blenkernel ../include ../ikplugin #/intern/itasc #/extern/Eigen2' ++incs += ' ../blenkernel ../include ../ikplugin #/intern/itasc /usr/include/eigen2' + + env.BlenderLib ( 'bf_ikplugin', sources, Split(incs), [], libtype=['core','player'], priority=[180, 190] ) diff --git a/media-gfx/blender/files/blender-2.5-ffmpeg.patch b/media-gfx/blender/files/blender-2.5-ffmpeg.patch new file mode 100644 index 0000000..f825bcc --- /dev/null +++ b/media-gfx/blender/files/blender-2.5-ffmpeg.patch @@ -0,0 +1,107 @@ +--- source/blender/blenkernel/intern/writeffmpeg.c 2011-06-22 12:23:10.000000000 -0300 ++++ source/blender/blenkernel/intern/writeffmpeg.c 2011-07-08 12:24:17.000000000 -0300 +@@ -2,7 +2,7 @@ + * \ingroup bke + */ + /* +- * $Id: writeffmpeg.c 36960 2011-05-27 23:33:40Z schlaile $ ++ * $Id: writeffmpeg.c 37755 2011-06-23 16:10:48Z campbellbarton $ + * + * ffmpeg-write support + * +@@ -49,7 +49,9 @@ + + #include "BLI_blenlib.h" + +-#include "AUD_C-API.h" /* must be before BKE_sound.h for define */ ++#ifdef WITH_AUDASPACE ++# include "AUD_C-API.h" ++#endif + + #include "BKE_global.h" + #include "BKE_idprop.h" +@@ -89,7 +91,9 @@ + static int audio_outbuf_size = 0; + static double audio_time = 0.0f; + ++#ifdef WITH_AUDASPACE + static AUD_Device* audio_mixdown_device = 0; ++#endif + + #define FFMPEG_AUTOSPLIT_SIZE 2000000000 + +@@ -103,6 +107,7 @@ + } + } + ++#ifdef WITH_AUDASPACE + static int write_audio_frame(void) + { + AVCodecContext* c = NULL; +@@ -145,6 +150,7 @@ + } + return 0; + } ++#endif // #ifdef WITH_AUDASPACE + + /* Allocate a temporary frame */ + static AVFrame* alloc_picture(int pix_fmt, int width, int height) +@@ -851,7 +857,7 @@ + ffmpeg_autosplit_count = 0; + + success = start_ffmpeg_impl(rd, rectx, recty, reports); +- ++#ifdef WITH_AUDASPACE + if(audio_stream) + { + AVCodecContext* c = audio_stream->codec; +@@ -861,12 +867,13 @@ + specs.rate = rd->ffcodecdata.audio_mixrate; + audio_mixdown_device = sound_mixdown(scene, specs, rd->sfra, rd->ffcodecdata.audio_volume); + } +- ++#endif + return success; + } + + void end_ffmpeg(void); + ++#ifdef WITH_AUDASPACE + static void write_audio_frames(double to_pts) + { + int finished = 0; +@@ -878,6 +885,7 @@ + } + } + } ++#endif + + int append_ffmpeg(RenderData *rd, int frame, int *pixels, int rectx, int recty, ReportList *reports) + { +@@ -905,8 +913,9 @@ + } + } + ++#ifdef WITH_AUDASPACE + write_audio_frames((frame - rd->sfra) / (((double)rd->frs_sec) / rd->frs_sec_base)); +- ++#endif + return success; + } + +@@ -920,12 +929,14 @@ + write_audio_frames(); + }*/ + ++#ifdef WITH_AUDASPACE + if(audio_mixdown_device) + { + AUD_closeReadDevice(audio_mixdown_device); + audio_mixdown_device = 0; + } +- ++#endif ++ + if (video_stream && video_stream->codec) { + fprintf(stderr, "Flushing delayed frames...\n"); + flush_ffmpeg (); diff --git a/media-gfx/blender/files/blender-2.5-glew.patch b/media-gfx/blender/files/blender-2.5-glew.patch new file mode 100644 index 0000000..e70f887 --- /dev/null +++ b/media-gfx/blender/files/blender-2.5-glew.patch @@ -0,0 +1,25 @@ +--- extern/SConscript ++++ extern/SConscript +@@ -2,8 +2,6 @@ + + Import('env') + +-SConscript(['glew/SConscript']) +- + if env['WITH_BF_ELTOPO']: + SConscript(['eltopo/SConscript']) + + if env['WITH_BF_BULLET']: + SConscript(['bullet2/src/SConscript']) + +--- source/blender/editors/include/BIF_gl.h ++++ source/blender/editors/include/BIF_gl.h +@@ -31,7 +31,7 @@ + #ifndef BIF_GL_H + #define BIF_GL_H + +-#include "GL/glew.h" ++#include <GL/glew.h> + + /* + * these should be phased out. cpack should be replaced in diff --git a/media-gfx/blender/files/blender-2.59-r1-opencollada-fixes.patch b/media-gfx/blender/files/blender-2.59-r1-opencollada-fixes.patch new file mode 100644 index 0000000..37680b6 --- /dev/null +++ b/media-gfx/blender/files/blender-2.59-r1-opencollada-fixes.patch @@ -0,0 +1,24 @@ +diff -urN /var/tmp/portage/media-gfx/blender-2.59-r1/work/blender-2.59//build_files/scons/tools/Blender.py /tmp/blender-2.59//build_files/scons/tools/Blender.py +--- /var/tmp/portage/media-gfx/blender-2.59-r1/work/blender-2.59//build_files/scons/tools/Blender.py 2011-08-11 18:47:18.000000000 +0200 ++++ /tmp/blender-2.59//build_files/scons/tools/Blender.py 2011-10-18 10:52:39.340067631 +0200 +@@ -268,7 +268,7 @@ + syslibs += [colladalib+'_d' for colladalib in Split(lenv['BF_OPENCOLLADA_LIB'])] + else: + syslibs += Split(lenv['BF_OPENCOLLADA_LIB']) +- syslibs.append(lenv['BF_EXPAT_LIB']) ++ syslibs.append('xml2') + + if not lenv['WITH_BF_STATICLIBSAMPLERATE']: + syslibs += Split(lenv['BF_LIBSAMPLERATE_LIB']) +diff -urN /var/tmp/portage/media-gfx/blender-2.59-r1/work/blender-2.59//source/blender/collada/SConscript /tmp/blender-2.59//source/blender/collada/SConscript +--- /var/tmp/portage/media-gfx/blender-2.59-r1/work/blender-2.59//source/blender/collada/SConscript 2011-08-11 18:44:01.000000000 +0200 ++++ /tmp/blender-2.59//source/blender/collada/SConscript 2011-10-18 10:53:20.775067619 +0200 +@@ -35,7 +35,7 @@ + if env['OURPLATFORM']=='darwin': + incs = '../blenlib ../blenkernel ../windowmanager ../blenloader ../makesdna ../makesrna ../editors/include ../../../intern/guardedalloc [OPENCOLLADA]/COLLADAStreamWriter [OPENCOLLADA]/COLLADABaseUtils [OPENCOLLADA]/COLLADAFramework [OPENCOLLADA]/COLLADASaxFrameworkLoader [OPENCOLLADA]/GeneratedSaxParser '.replace('[OPENCOLLADA]', env['BF_OPENCOLLADA_INC']) + else: +- incs = '../blenlib ../blenkernel ../windowmanager ../makesdna ../blenloader ../makesrna ../editors/include ../../../intern/guardedalloc [OPENCOLLADA]/COLLADAStreamWriter/include [OPENCOLLADA]/COLLADABaseUtils/include [OPENCOLLADA]/COLLADAFramework/include [OPENCOLLADA]/COLLADASaxFrameworkLoader/include [OPENCOLLADA]/GeneratedSaxParser/include '.replace('[OPENCOLLADA]', env['BF_OPENCOLLADA_INC']) ++ incs = '../blenlib ../blenkernel ../windowmanager ../makesdna ../blenloader ../makesrna ../editors/include ../../../intern/guardedalloc [OPENCOLLADA]/COLLADAStreamWriter [OPENCOLLADA]/COLLADABaseUtils [OPENCOLLADA]/COLLADAFramework [OPENCOLLADA]/COLLADASaxFrameworkLoader [OPENCOLLADA]/GeneratedSaxParser '.replace('[OPENCOLLADA]', env['BF_OPENCOLLADA_INC']) + + if env['BF_BUILDINFO']: + defs.append('NAN_BUILDINFO') diff --git a/media-gfx/blender/files/blender-desktop.patch b/media-gfx/blender/files/blender-desktop.patch new file mode 100644 index 0000000..50ad8c2 --- /dev/null +++ b/media-gfx/blender/files/blender-desktop.patch @@ -0,0 +1,20 @@ +--- release/freedesktop/blender.desktop 2010-09-12 00:05:51.000000000 -0700 ++++ release/freedesktop/blender.desktop 2010-09-12 00:07:32.000000000 -0700 +@@ -1,5 +1,5 @@ + [Desktop Entry] +-Name=Blender ++Name=Blender-2.5 + GenericName=3D modeller + GenericName[es]=modelador 3D + GenericName[de]=3D Modellierer +@@ -7,8 +7,8 @@ + GenericName[ru]=Редактор 3D-моделей + Comment=3D modeling, animation, rendering and post-production + Comment[es]=modelado 3D, animación, renderizado y post-producción +-Exec=blender +-Icon=blender ++Exec=blender-2.5 ++Icon=blender-2.5 + Terminal=false + Type=Application + Categories=Graphics;3DGraphics; diff --git a/media-gfx/luxblend25/Manifest b/media-gfx/luxblend25/Manifest new file mode 100644 index 0000000..400e01e --- /dev/null +++ b/media-gfx/luxblend25/Manifest @@ -0,0 +1,3 @@ +DIST 542b3a7ac219.tar.bz2 120619 RMD160 92a749b87367689c5fa67733a6421f077854106d SHA1 d45db9f15cbb1b0aff8eca4f5638835a49345cf7 SHA256 7795ce76dcf804fd9f9a483fde4895fba3bf73b5c2a7c9b406bc7ae9c6eb3edf +EBUILD luxblend25-101023.ebuild 775 RMD160 620fd3849c108981f7cf74f2f8d67b4709a865d6 SHA1 5aaf1a80aa5361040f574f766388db0234d251bd SHA256 52d183f5de4d4b30e9abe1f7f91fbd3411f2a6f62db8b6011002bc80d8883c05 +EBUILD luxblend25-9999.ebuild 629 RMD160 813c7fc1221f5535911eaf6a2c5414e94e9a8c39 SHA1 744080ac8d28065cc6f802863d7407422412d3bf SHA256 c8bcd606145dc1a0ba29c2a63bd0b764666d6db020bd3ca7e4e269766de6885b diff --git a/media-gfx/luxblend25/luxblend25-101023.ebuild b/media-gfx/luxblend25/luxblend25-101023.ebuild new file mode 100644 index 0000000..691097e --- /dev/null +++ b/media-gfx/luxblend25/luxblend25-101023.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +EHG_REVISION="542b3a7ac219" + +DESCRIPTION="Blender 2.5 exporter for luxrender" +HOMEPAGE="http://www.luxrender.net" +SRC_URI="http://src.luxrender.net/luxblend25/archive/${EHG_REVISION}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=">=media-gfx/blender-2.55" +DEPEND="" + +S="${WORKDIR}/luxblend25-${EHG_REVISION}" + +src_install() { + insinto /usr/share/blender/2.5/scripts/addons/ + doins -r src/luxrender + chown root:users -R "${D}"/usr/share/blender/2.5/scripts/addons/luxrender + diropts -m0770 + dodir /usr/share/blender/2.5/scripts/presets/luxrender + chown root:users "${D}"/usr/share/blender/2.5/scripts/presets/luxrender +} diff --git a/media-gfx/luxblend25/luxblend25-9999.ebuild b/media-gfx/luxblend25/luxblend25-9999.ebuild new file mode 100644 index 0000000..cac789e --- /dev/null +++ b/media-gfx/luxblend25/luxblend25-9999.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit mercurial + +DESCRIPTION="Blender 2.5 exporter for LuxRender" +HOMEPAGE="http://www.luxrender.net" +EHG_REPO_URI="https://bitbucket.org/luxrender/luxblend25" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=media-gfx/blender-2.50 + media-gfx/luxrender" + +src_install() { + insinto /usr/share/blender/2.5/scripts/addons/ + insopts -g users -m0750 + doins -r src/luxrender || die + diropts -g users -m0770 + dodir /usr/share/blender/2.5/scripts/presets/luxrender || die +} diff --git a/media-gfx/luxrender/Manifest b/media-gfx/luxrender/Manifest new file mode 100644 index 0000000..adbf984 --- /dev/null +++ b/media-gfx/luxrender/Manifest @@ -0,0 +1,6 @@ +AUX lux-0.7.0-libpng.patch 1020 RMD160 19393c4be6d410d47bdbaff28044f5c81eaf1946 SHA1 bb6a9116eb32ffdacf5fbcc39aa9f39b06ab80e0 SHA256 7d0b68c15b7d163965b73a5ee22a42d3c72beea079b7e43037ebf6f8bb406b98 +DIST 45d3e13eb94c.tar.bz2 2712283 RMD160 55d3b816df0055f08d99e8c6935b6372ac231e8e SHA1 b2accdfcc5da277a0201a1b4b0b65de7231bfee3 SHA256 9e5434f5addf351ffa7f652a6763648db672144c370993740cc074c64c1f288a +DIST 9206b3ba7011.tar.bz2 1998376 RMD160 72579d731317da86831a678bf7990d0b1dd33dc1 SHA1 0f1a7c25eb9255882a369a3f45b8dfc9ed812006 SHA256 8af12fbebf29e62f3203b02fe28a11304f7d48f23f87e7a053c804149cbfcc56 +EBUILD luxrender-0.7.1.ebuild 1669 RMD160 269e71a953431dc34246fe0ae793f7dede2b4a52 SHA1 48d7eb61bb4d65d1910a1e434a13a9e639d51409 SHA256 f45a0c4e6c7abeb2090c48c9571f10ef59b52b048c70e6e9ec0be21e954c2d06 +EBUILD luxrender-0.8.ebuild 1668 RMD160 cf5ce469cbb5229207b079bfa8fa313dcab8af2c SHA1 1dc00ac9dc7ee1fba3b1c2a2b58bcd92e85158cd SHA256 b4b67c72eda88be0b8a0732324f9e736f8802c979421c43061d7f230ee405bff +EBUILD luxrender-9999.ebuild 1372 RMD160 986c9d114c094eb4f0b1b871e52facef32781072 SHA1 e3e866bbc590c59c92ce4ed444fe8ace834cebbf SHA256 244f0300708a5bbb97abdbbbe2632553300ef9cd35d99ed728176bcd0061b324 diff --git a/media-gfx/luxrender/files/lux-0.7.0-libpng.patch b/media-gfx/luxrender/files/lux-0.7.0-libpng.patch new file mode 100644 index 0000000..b9d3577 --- /dev/null +++ b/media-gfx/luxrender/files/lux-0.7.0-libpng.patch @@ -0,0 +1,21 @@ +diff -rupN lux-orig/core/external/cimg.h lux-fixed/external/core/cimg.h +--- lux-orig/core/external/cimg.h 2010-07-07 14:50:00.000000000 +0100 ++++ lux-fixed/core/external/cimg.h 2010-07-07 14:50:00.000000000 +0100 +@@ -25679,7 +25679,7 @@ namespace cimg_library { + png_read_info(png_ptr,info_ptr); + png_uint_32 W, H; + int bit_depth, color_type, interlace_type; +- png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,int_p_NULL,int_p_NULL); ++ png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,(int *) NULL,(int *) NULL); + int new_bit_depth = bit_depth; + int new_color_type = color_type; + +@@ -25690,7 +25690,7 @@ namespace cimg_library { + new_bit_depth = 8; + } + if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){ +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + new_bit_depth = 8; + } + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) diff --git a/media-gfx/luxrender/luxrender-0.7.1.ebuild b/media-gfx/luxrender/luxrender-0.7.1.ebuild new file mode 100644 index 0000000..9dd3839 --- /dev/null +++ b/media-gfx/luxrender/luxrender-0.7.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +WX_GTK_VER="2.8" +inherit cmake-utils flag-o-matic python wxwidgets + +EHG_REVISION="9206b3ba7011" + +DESCRIPTION="A GPL unbiased renderer" +HOMEPAGE="http://www.luxrender.net" +SRC_URI="http://src.luxrender.net/lux/archive/${EHG_REVISION}.tar.bz2" + + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="sse2 doc debug +blender" + +RDEPEND=">=dev-libs/boost-1.43 + media-libs/openexr + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/ilmbase + media-libs/freeimage + virtual/opengl + x11-libs/wxGTK:2.8[X,opengl]" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + sys-apps/sed + doc? ( >=app-doc/doxygen-1.5.7[-nodot] )" +PDEPEND="blender? ( || ( >=media-gfx/luxblend25-101023 + =media-gfx/luxblend-${PV} ) )" + +S="${WORKDIR}/lux-${EHG_REVISION}" + +src_prepare() { + sed -i \ + -e "s:^ADD_DEFINITIONS(-O3 -msse2 -mfpmath=sse :ADD_DEFINITIONS(:" \ + CMakeLists.txt || die "Removing CFLAGS failed" + + epatch "${FILESDIR}/lux-0.7.0-libpng.patch" +} + +src_configure() { + use sse2 && append-flags "-msse -msse2 -DLUX_USE_SSE" + use debug && append-flags -ggdb + + need-wxwidgets unicode + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS.txt + + # installing API(s) docs + if use doc; then + pushd "${S}"/doxygen > /dev/null + doxygen doxygen.conf + dohtml html/* + popd > /dev/null + fi + + if use blender; then + insinto /usr/share/blender/2.5/scripts/addons/luxrender/ + doins "${WORKDIR}/${P}"_build/pylux.so + fi + +# make_desktop_entry "${PN}" "Lux Render" "/usr/share/pixmaps/luxrender.svg" "Graphics;3DGraphics;" +} diff --git a/media-gfx/luxrender/luxrender-0.8.ebuild b/media-gfx/luxrender/luxrender-0.8.ebuild new file mode 100644 index 0000000..ed7a6b6 --- /dev/null +++ b/media-gfx/luxrender/luxrender-0.8.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +WX_GTK_VER="2.8" +inherit cmake-utils flag-o-matic python wxwidgets + +EHG_REVISION="45d3e13eb94c" + +DESCRIPTION="A GPL unbiased renderer" +HOMEPAGE="http://www.luxrender.net" +SRC_URI="http://src.luxrender.net/lux/archive/${EHG_REVISION}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="sse2 doc debug blender" + +RDEPEND=">=dev-libs/boost-1.43 + media-libs/openexr + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/ilmbase + media-libs/freeimage + virtual/opengl + x11-libs/wxGTK:2.8[X,opengl]" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + sys-apps/sed + doc? ( >=app-doc/doxygen-1.5.7[-nodot] )" +PDEPEND="blender? ( || ( >=media-gfx/luxblend25-101023 + =media-gfx/luxblend-${PV} ) )" + +S="${WORKDIR}/lux-${EHG_REVISION}" + +src_prepare() { + sed -i \ + -e "s:^ADD_DEFINITIONS(-O3 -msse2 -mfpmath=sse :ADD_DEFINITIONS(:" \ + CMakeLists.txt || die "Removing CFLAGS failed" + + #epatch "${FILESDIR}/lux-0.7.0-libpng.patch" +} + +src_configure() { + use sse2 && append-flags "-msse -msse2 -DLUX_USE_SSE" + use debug && append-flags -ggdb + + need-wxwidgets unicode + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS.txt + + # installing API(s) docs + if use doc; then + pushd "${S}"/doxygen > /dev/null + doxygen doxygen.conf + dohtml html/* + popd > /dev/null + fi + + if use blender; then + insinto /usr/share/blender/2.5/scripts/addons/luxrender/ + doins "${WORKDIR}/${P}"_build/pylux.so + fi + +# make_desktop_entry "${PN}" "Lux Render" "/usr/share/pixmaps/luxrender.svg" "Graphics;3DGraphics;" +} diff --git a/media-gfx/luxrender/luxrender-9999.ebuild b/media-gfx/luxrender/luxrender-9999.ebuild new file mode 100644 index 0000000..7a7304c --- /dev/null +++ b/media-gfx/luxrender/luxrender-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit cmake-utils mercurial flag-o-matic python + +DESCRIPTION="A GPL unbiased renderer" +HOMEPAGE="http://www.luxrender.net" +EHG_REPO_URI="https://bitbucket.org/luxrender/lux" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sse2 doc debug +blender" + +RDEPEND=">=dev-libs/boost-1.43[python] + media-libs/openexr + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/ilmbase + >=media-libs/freeimage-3.15.0 + virtual/opengl" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + media-libs/luxrays[debug?] + doc? ( >=app-doc/doxygen-1.5.7[-nodot] )" +PDEPEND="blender? ( =media-gfx/luxblend25-9999 )" + +src_configure() { + append-flags "-DLUXRAYS_DISABLE_OPENCL" + use sse2 && append-flags "-msse -msse2 -DLUX_USE_SSE" + use debug && append-flags -ggdb + + mycmakeargs=( -DLUXRAYS_DISABLE_OPENCL=ON ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS.txt || die + + # installing API(s) docs + if use doc; then + pushd "${S}"/doxygen > /dev/null + doxygen doxygen.template + dohtml html/* || die "Couldn't install API docs" + popd > /dev/null + fi + + if use blender; then + insinto /usr/share/blender/2.5/scripts/addons/luxrender/ + doins "${CMAKE_BUILD_DIR}"/pylux.so || die "Couldn't install Pylux" + fi +} diff --git a/media-gfx/meshlab/ChangeLog b/media-gfx/meshlab/ChangeLog new file mode 100644 index 0000000..4611314 --- /dev/null +++ b/media-gfx/meshlab/ChangeLog @@ -0,0 +1,67 @@ +# ChangeLog for <CATEGORY>/<PACKAGE_NAME> +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*<PACKAGE_NAME>-<PACKAGE_VERSION>-<PACKAGE_RELEASE> (DD MMM YYYY) + + DD MMM YYYY; YOUR_NAME <YOUR_EMAIL> changed_file1, changed_file2 : + Initial import. Ebuild submitted by submitter_name <submitter_email>. + Note that the "changed_file" listing is optional if you are simply bumping + the rev of the ebuild and are only making changes to the .ebuild file + itself. Also note that we now have a single unified paragraph rather than + having the first line separated from the rest by a newline. Everything + should be in one block like this. (note by drobbins, 16 Jul 2002) + + DD MMM YYYY; YOUR_NAME <YOUR_EMAIL> changed_file1, changed_file2: this is + an earlier ChangeLog entry. + +-- Explanation of ChangeLog format: + + *************************************************************************** + THIS IS IMPORTANT: The ChangeLog format is a *chronological* account of all + changes made to a set of ebuilds. That means that the most recent ChangeLog + entry *always* goes at the top of the file. More explanation below. + *************************************************************************** + + *************************************************************************** + ANOTHER IMPORTANT NOTE: There are some ChangeLogs that don't follow this + format and organize all changes under the "correct" "*" entry. This is not + correct. However, rather than making a concerted effort to fix these + ChangeLogs, we should spend our energy defining a comprehensive and strict + XML-based ChangeLog format which we then migrate to. But for any entries to + any ChangeLog that *you* make, please make sure to always add entries to the + top of the file like a good boy/girl. Even do this if it's clear that you're + adding an entry to a b0rked ChangeLog. + *************************************************************************** + + This changelog is targeted to users. This means that the comments should be + well explained and written in clean English. + + Every new version or revision of the package should be marked by a '*' + separator line as above to indicate where in the chronology it was first + added to our CVS tree. Any changes since the last revision, really _any + changes at all_ have to be added to the top of the file, underneath the + initial copyright and cvs header comments, in exactly the same format as this + comment. If you are modifying older ebuilds, simply note them as changed + files and add your entry to the top of the ChangeLog. Resist the temptation + to "organize" your ChangeLog entries by placing them under the "correct" "*" + entries -- this isn't the purpose of the "*" entries. + + This means that you start with header line that has the following format, + indented two spaces: + + DD MMM YYYY; your_name <your_email> changed_file1, changed_file2: Your + explanation should follow. It should be indented and wrapped at a line width + of 80 characters. The changed_files can be omitted if they are obvious; for + example, if you are only modifying the .ebuild file and committing a new rev + of a package. Any details about what exactly changed in the code should be + added as a message when the changes are committed to cvs, not in this file. + +-- A word regarding credit: + + Please add credit information ("ebuild submitted by ...", "patch submitted + by ...") to the ChangeLog. Do not add this information to the ebuilds + themselves. + + And remember: Give credit where credit is due. We're all doing this for + free, so the best we can hope (and expect!) to receive is credit. diff --git a/media-gfx/meshlab/Manifest b/media-gfx/meshlab/Manifest new file mode 100644 index 0000000..9c5243c --- /dev/null +++ b/media-gfx/meshlab/Manifest @@ -0,0 +1,13 @@ +AUX meshlab-1.2.3a-r5-use-system-libs-rpath.patch 14603 RMD160 68c32a0ef39af483d6d4a51617a883655a5ce9b7 SHA1 a95029a530ac1880c41862b36f81dc0d5a9fa1b5 SHA256 99ae7c3d91f45cca5dbfdb81045316efa397b3f3864b9d2b97866a3abaeef5a6 +AUX meshlab-1.3.0a-unbundle-libs-and-fix-rpath.patch 14382 RMD160 805216bf950b6cb29719357bb9e75a815366dac3 SHA1 7a5ee33b5b5559ea91682e9e790012cd6fa72259 SHA256 e2d5915ff511dab717dfec9bf0113d7a75ce3649b878dcf9f994133bb8dbc61a +DIST MeshLabSrc_AllInc_v123a.tgz 11126723 RMD160 6443582eaefb2c98496914fbf1836bbebbb599da SHA1 17c5af3cd07b7c131d9e387e85337d50b7180a20 SHA256 3b515ddde7ff24a14ba32e3cbc755661cd7d58a4a2a467133d59fad001168427 +DIST MeshLabSrc_AllInc_v130a.tgz 12119277 RMD160 1d99dd52ecbfd1d8298182cbe7e799e6d5f91f8b SHA1 cc73758763a07036a768723ce7b95ae0bc5da038 SHA256 42404620bcb4fa8d3dc9576494343369feef4c2cc3d191f0007dbd530395ba5c +EBUILD meshlab-1.2.3a-r1.ebuild 2150 RMD160 5ce5ae8ba2376589d5f62d921d061918d3f6deb7 SHA1 773f1008935e96b25d532c99d413fd60ed4ab707 SHA256 9acf13509e08476320eeeae20c001cd83be0c98918ec3a1734fe8e1029f20d9c +EBUILD meshlab-1.2.3a-r2.ebuild 1753 RMD160 cb8bc2fdf8c4bc61c27931001b7aee28b6545c99 SHA1 91a1832d16cdd2d92190d90c9ce5fd812dcddc92 SHA256 6681563e2dff004a70fec1be1b9efa3a925d318bbb222f0445079702666b3898 +EBUILD meshlab-1.2.3a-r3.ebuild 1438 RMD160 088a7067ab8a94387e939d9278bf85c1e3985c0e SHA1 ee34bf62ef9d52b44604fe9fdaf195437b75f9f2 SHA256 e2fcecdef23fc803f0c07d2e79ffef1d467af48470dffd930aa5e16b2404ea2a +EBUILD meshlab-1.2.3a-r4.ebuild 1435 RMD160 307f6441db280c1c6ba9c8996e99c5d52ead2493 SHA1 235b0225005eda45b82f079174c722c6b01f3f12 SHA256 cba9d2f702d908bf17ae2c2328d4d44c7770ea70676e572d0340dc583c2b4804 +EBUILD meshlab-1.2.3a-r5.ebuild 1452 RMD160 2f7023da74ebdef6472d9358994c43c335c114d8 SHA1 9a6bbe71ec428c3b42e2b05cb5cca7aa1688592e SHA256 f3c37360a5725bee88ff0ef01b85030067ba39150528dbd433d134f56c363de1 +EBUILD meshlab-1.2.3a-r6.ebuild 1444 RMD160 3c942e743b92b1117abfaa6d3b5d1764088e5c3a SHA1 b1f6436404ecb7a8f823132bba6810ed9c5f852b SHA256 1c6ed65b8b7d8086f4674a904bbb729234facbfff9dff93881a45786780be390 +EBUILD meshlab-1.3.0a.ebuild 1511 RMD160 3f04a6aa33894a2ef6b97c131d2965d6a85a2086 SHA1 90eeb8293eecd2037cd79aa4de55c7d004cdafce SHA256 af1d37786cede496bc32eee72fa9fdb14d1f51a8e98fdc634245f22dc671ffbc +MISC ChangeLog 3658 RMD160 b46694ce0f8a7327a112d7d3749e5a5ec3c3e979 SHA1 4a4463924f20d3c15763455a66c9b05ff1c4a292 SHA256 140d10ec72e83274e3a844b6796f4abce81528c0adef66c628deaea8e5587e3c +MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 diff --git a/media-gfx/meshlab/files/meshlab-1.2.3a-r5-use-system-libs-rpath.patch b/media-gfx/meshlab/files/meshlab-1.2.3a-r5-use-system-libs-rpath.patch new file mode 100644 index 0000000..f96fe4b --- /dev/null +++ b/media-gfx/meshlab/files/meshlab-1.2.3a-r5-use-system-libs-rpath.patch @@ -0,0 +1,322 @@ +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/common/common.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/common/common.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/common/common.pro 2010-05-05 14:54:06.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/common/common.pro 2010-05-16 14:39:04.000000000 +0200 +@@ -1,6 +1,5 @@ + VCGDIR = ../../../vcglib +-GLEWDIR = ../external/glew-1.5.1 +-GLEWCODE = $$GLEWDIR/src/glew.c ++GLEWDIR = /usr/include/GL + + + win32-msvc2005:DESTDIR = ../distrib +@@ -19,14 +18,14 @@ + macx:QMAKE_POST_LINK = "cp libcommon.* ../distrib/meshlab.app/Contents/MacOs/" + INCLUDEPATH *= ../.. \ + $$VCGDIR \ +- $$GLEWDIR/include ++ $$GLEWDIR + TEMPLATE = lib + linux-g++:CONFIG += dll + linux-g++:DESTDIR = ../distrib + linux-g++-32:CONFIG += dll + linux-g++-32:DESTDIR = ../distrib + linux-g++-64:CONFIG += dll +-linux-g++-64:DESTDIR = ../distrib ++linux-g++-64:DESTDIR = ../distrib + + win32-msvc2005:CONFIG += staticlib + win32-msvc2008:CONFIG += staticlib +@@ -54,5 +53,4 @@ + filterscript.cpp \ + GLLogStream.cpp \ + meshmodel.cpp \ +- pluginmanager.cpp \ +- $$GLEWCODE ++ pluginmanager.cpp +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_func/filter_func.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_func/filter_func.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_func/filter_func.pro 2010-05-05 14:54:06.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_func/filter_func.pro 2010-05-16 13:29:44.000000000 +0200 +@@ -14,7 +14,7 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/muparser.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/muparser.lib
+ macx:LIBS += ../../external/lib/macx/libmuparser.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/libmuparser.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libmuparser.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libmuparser.a
+-win32-g++:LIBS += ../../external/lib/win32-gcc/libmuparser.a
++linux-g++:LIBS += -lmuparser
++linux-g++-32:LIBS += -lmuparser
++linux-g++-64:LIBS += -lmuparser
++win32-g++:LIBS += -lmuparser
+diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_qhull/filter_qhull.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_qhull/filter_qhull.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_qhull/filter_qhull.pro 2010-04-28 09:30:45.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_qhull/filter_qhull.pro 2010-06-13 23:21:55.000000000 +0200 +@@ -8,28 +8,14 @@ + SOURCES += filter_qhull.cpp \ + qhull_tools.cpp + +-HEADERS += ../../external/qhull-2003.1/src/geom.h \ +- ../../external/qhull-2003.1/src/io.h \ +- ../../external/qhull-2003.1/src/mem.h \ +- ../../external/qhull-2003.1/src/merge.h \ +- ../../external/qhull-2003.1/src/poly.h \ +- ../../external/qhull-2003.1/src/qhull.h \ +- ../../external/qhull-2003.1/src/qset.h \ +- ../../external/qhull-2003.1/src/stat.h \ +- ../../external/qhull-2003.1/src/user.h +- +-SOURCES += ../../external/qhull-2003.1/src/geom.c \ +- ../../external/qhull-2003.1/src/geom2.c \ +- ../../external/qhull-2003.1/src/global.c \ +- ../../external/qhull-2003.1/src/io.c \ +- ../../external/qhull-2003.1/src/mem.c \ +- ../../external/qhull-2003.1/src/merge.c \ +- ../../external/qhull-2003.1/src/poly.c \ +- ../../external/qhull-2003.1/src/poly2.c \ +- ../../external/qhull-2003.1/src/qconvex.c \ +- ../../external/qhull-2003.1/src/qhull.c \ +- ../../external/qhull-2003.1/src/qset.c \ +- ../../external/qhull-2003.1/src/stat.c \ +- ../../external/qhull-2003.1/src/user.c ++HEADERS += /usr/include/qhull/geom.h \ ++ /usr/include/qhull/io.h \ ++ /usr/include/qhull/mem.h \ ++ /usr/include/qhull/merge.h \ ++ /usr/include/qhull/poly.h \ ++ /usr/include/qhull/qhull.h \ ++ /usr/include/qhull/qset.h \ ++ /usr/include/qhull/stat.h \ ++ /usr/include/qhull/user.h + + TARGET = filter_qhull +\ No newline at end of file +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_qhull/qhull_tools.h MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_qhull/qhull_tools.h +--- MeshLabSrc_AllInc_v123a/meshlab/src/fgt/filter_qhull/qhull_tools.h 2010-04-28 09:30:45.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/fgt/filter_qhull/qhull_tools.h 2010-06-13 23:24:24.000000000 +0200 +@@ -55,14 +55,14 @@ + #endif
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include "../../external/qhull-2003.1/src/qhull.h"
+-#include "../../external/qhull-2003.1/src/mem.h"
+-#include "../../external/qhull-2003.1/src/qset.h"
+-#include "../../external/qhull-2003.1/src/geom.h"
+-#include "../../external/qhull-2003.1/src/merge.h"
+-#include "../../external/qhull-2003.1/src/poly.h"
+-#include "../../external/qhull-2003.1/src/io.h"
+-#include "../../external/qhull-2003.1/src/stat.h"
++#include "qhull/qhull.h"
++#include "qhull/mem.h"
++#include "qhull/qset.h"
++#include "qhull/geom.h"
++#include "qhull/merge.h"
++#include "qhull/poly.h"
++#include "qhull/io.h"
++#include "qhull/stat.h"
+ #if defined(__cplusplus)
+ }
+ #endif
+@@ -71,4 +71,4 @@ + facetT *compute_delaunay(int dim, int numpoints, MeshModel &m);
+ bool compute_voronoi(int dim, int numpoints, MeshModel &m, MeshModel &pm,float threshold);
+ bool compute_alpha_shapes(int dim, int numpoints, MeshModel &m, MeshModel &pm,double alpha, bool alphashape);
+-int visible_points(int dim, int numpoints, MeshModel &m, MeshModel &pm,MeshModel &pm2, vcg::Point3f viewpointP,float threshold,bool convex_hullFP,bool triangVP); +\ No newline at end of file ++int visible_points(int dim, int numpoints, MeshModel &m, MeshModel &pm,MeshModel &pm2, vcg::Point3f viewpointP,float threshold,bool convex_hullFP,bool triangVP);
+diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlab/meshlab.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlab/meshlab.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlab/meshlab.pro 2010-05-05 14:54:06.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlab/meshlab.pro 2010-06-19 18:06:04.000000000 +0200 +@@ -1,5 +1,5 @@ + VCGDIR = ../../../vcglib +-GLEWDIR = ../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + #CONFIG += debug_and_release + DESTDIR = ../distrib + # uncomment to try Eigen +@@ -7,7 +7,7 @@ + # CONFIG += warn_off + INCLUDEPATH *= ../.. \ + $$VCGDIR \ +- $$GLEWDIR/include ++ $$GLEWDIR + DEPENDPATH += $$VCGDIR \ + $$VCGDIR/vcg \ + $$VCGDIR/wrap +@@ -88,7 +88,7 @@ + INCLUDEPATH += . \ + .. \ + ../../../vcglib \ +- $$GLEWDIR/include ++ $$GLEWDIR + CONFIG += stl + + macx:LIBS += ../common/libcommon.dylib +@@ -107,12 +107,12 @@ + # win32-g++:release:LIBS += -L../common/release -lcommon + #} + +-linux-g++:LIBS += -L../distrib -lcommon +-linux-g++:QMAKE_RPATHDIR += ../distrib +-linux-g++-32:LIBS += -L../distrib -lcommon +-linux-g++-32:QMAKE_RPATHDIR += ../distrib +-linux-g++-64:LIBS += -L../distrib -lcommon +-linux-g++-64:QMAKE_RPATHDIR += ../distrib ++linux-g++:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-32:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:QMAKE_RPATHDIR += ../usr/lib/meshlab ++linux-g++-64:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:QMAKE_RPATHDIR += /usr/lib/meshlab + + + # uncomment in your local copy only in emergency cases. +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlab/meshlab.qrc MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlab/meshlab.qrc +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlab/meshlab.qrc 2010-04-30 15:10:45.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlab/meshlab.qrc 2010-05-16 12:58:12.000000000 +0200 +@@ -34,6 +34,5 @@ + <file>images/100mesh.html</file> + <file>images/selected_face.png</file> + <file>images/selected_vert.png</file> +- <file>images/facebook.gif</file> + </qresource> + </RCC> +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro 2010-05-05 14:54:07.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro 2010-06-13 23:10:13.000000000 +0200 +@@ -24,7 +24,7 @@ +
+ TARGET = filter_isoparametrization
+ INCLUDEPATH += ./ \
+- ../../external/levmar-2.3/
++ /usr/include/levmar/
+
+ win32-msvc2005:QMAKE_CXXFLAGS += /openmp -D_USE_OMP
+ win32-msvc2008:QMAKE_CXXFLAGS += /openmp -D_USE_OMP
+@@ -40,9 +40,9 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/levmar.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/levmar.lib
+ win32-g++:LIBS += -L../../external/lib/win32-gcc -llevmar
+-linux-g++:LIBS += -L../../external/lib/linux-g++ -llevmar
+-linux-g++-32:LIBS += -L../../external/lib/linux-g++-32 -llevmar
+-linux-g++-64:LIBS += -L../../external/lib/linux-g++-64 -llevmar
++linux-g++:LIBS += -llevmar
++linux-g++-32:LIBS += -llevmar
++linux-g++-64:LIBS += -llevmar
+ macx:LIBS += ../../external/lib/macx/liblevmar.a
+
+ # Please never ever uncomment this...
+diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro 2010-05-05 14:54:07.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro 2010-05-16 13:02:34.000000000 +0200 +@@ -14,7 +14,7 @@ + + TARGET = io_3ds + +-INCLUDEPATH += ../../external/lib3ds-1.3.0/ ++INCLUDEPATH += /usr/include/lib3ds #../../external/lib3ds-1.3.0/ + + # Notes on the paths of lib3ds files. + # Once you have compiled the library put the lib files in a dir named lib/XXX/ +@@ -25,9 +25,9 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/3ds.lib + win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/3ds.lib + win32-g++:LIBS += ../../external/lib/win32-gcc/lib3ds.a +-linux-g++:LIBS += ../../external/lib/linux-g++/lib3ds.a +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/lib3ds.a +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/lib3ds.a ++linux-g++:LIBS += -l3ds ++linux-g++-32:LIBS += -l3ds ++linux-g++-64:LIBS += -l3ds + + # unix:LIBS += -L../../../../code/lib/lib3ds-1.3.0/lib3ds/lib/unix -l3ds + +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro 2010-05-05 14:54:07.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro 2010-05-16 13:09:22.000000000 +0200 +@@ -30,16 +30,16 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/bz2.lib + win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/bz2.lib + win32-g++:LIBS += ../../external/lib/win32-gcc/libbz2.a +-linux-g++:LIBS += ../../external/lib/linux-g++/libbz2.a +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libbz2.a +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libbz2.a ++linux-g++:LIBS += -lbz2 ++linux-g++-32:LIBS += -lbz2 ++linux-g++-64:LIBS += -lbz2 + + win32-msvc2005:INCLUDEPATH += ../../external/bzip2-1.0.5 + win32-msvc2008:INCLUDEPATH += ../../external/bzip2-1.0.5 + win32-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5 + + mac:LIBS += -lbz2 + +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/meshlabserver/meshlabserver.pro MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabserver/meshlabserver.pro +--- MeshLabSrc_AllInc_v123a/meshlab/src/meshlabserver/meshlabserver.pro 2010-05-05 14:54:06.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/meshlabserver/meshlabserver.pro 2010-06-19 18:08:02.000000000 +0200 +@@ -1,4 +1,4 @@ +-GLEWDIR = ../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + + HEADERS = + +@@ -20,13 +20,13 @@ + + win32-msvc2005: LIBS += -L../distrib -lcommon + win32-msvc2008: LIBS += -L../distrib -lcommon +-win32-g++: LIBS += -L../distrib -lcommon +-linux-g++: LIBS += -L../distrib -lcommon +-linux-g++:QMAKE_RPATHDIR += ../distrib +-linux-g++-32: LIBS += -L../distrib -lcommon +-linux-g++-32:QMAKE_RPATHDIR += ../distrib +-linux-g++-64: LIBS += -L../distrib -lcommon +-linux-g++-64:QMAKE_RPATHDIR += ../distrib ++win32-g++: LIBS += -L../distrib -lcommon ++linux-g++: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-32: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-64: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:QMAKE_RPATHDIR += /usr/lib/meshlab + #CONFIG (release,debug | release) { + # win32-msvc2005:release: LIBS += -L../common/release -lcommon + # win32-msvc2008:release: LIBS += -L../common/release -lcommon +@@ -38,7 +38,7 @@ + + #DEFINES += GLEW_STATIC + +-INCLUDEPATH += . .. ../../../vcglib $$GLEWDIR/include ++INCLUDEPATH += . .. ../../../vcglib $$GLEWDIR + CONFIG += stl + CONFIG += console + +diff -urN MeshLabSrc_AllInc_v123a/meshlab/src/shared.pri MeshLabSrc_AllInc_v123a-patched/meshlab/src/shared.pri +--- MeshLabSrc_AllInc_v123a/meshlab/src/shared.pri 2010-05-05 14:54:07.000000000 +0200 ++++ MeshLabSrc_AllInc_v123a-patched/meshlab/src/shared.pri 2010-05-16 14:39:36.000000000 +0200 +@@ -6,7 +6,7 @@ + QT += xml + + VCGDIR = ../../../../vcglib +-GLEWDIR = ../../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + + mac:LIBS += ../../common/libcommon.dylib + +@@ -15,9 +15,9 @@ + win32-msvc2005: LIBS += ../../distrib/common.lib + win32-msvc2008: LIBS += ../../distrib/common.lib + win32-g++:LIBS += -L../../distrib -lcommon +-linux-g++:LIBS += -L../../distrib -lcommon +-linux-g++-32:LIBS += -L../../distrib -lcommon +-linux-g++-64:LIBS += -L../../distrib -lcommon ++linux-g++:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW + + #CONFIG(debug, debug|release) { + # win32-msvc2005: LIBS += ../../common/debug/common.lib diff --git a/media-gfx/meshlab/files/meshlab-1.3.0a-unbundle-libs-and-fix-rpath.patch b/media-gfx/meshlab/files/meshlab-1.3.0a-unbundle-libs-and-fix-rpath.patch new file mode 100644 index 0000000..ee04cb7 --- /dev/null +++ b/media-gfx/meshlab/files/meshlab-1.3.0a-unbundle-libs-and-fix-rpath.patch @@ -0,0 +1,316 @@ +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/common/common.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/common/common.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/common/common.pro 2011-01-25 08:49:48.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/common/common.pro 2011-07-10 19:12:37.000000000 +0200 +@@ -1,6 +1,5 @@ + VCGDIR = ../../../vcglib +-GLEWDIR = ../external/glew-1.5.1 +-GLEWCODE = $$GLEWDIR/src/glew.c ++GLEWDIR = /usr/include/GL + + + win32-msvc2005:DESTDIR = ../distrib +@@ -35,7 +34,7 @@ + cp libcommon.* ../distrib/meshlab.app/Contents/MacOS/" + INCLUDEPATH *= ../.. \ + $$VCGDIR \ +- $$GLEWDIR/include ++ $$GLEWDIR + TEMPLATE = lib + linux-g++:CONFIG += dll + linux-g++:DESTDIR = ../distrib +@@ -83,5 +82,4 @@ + scriptinterface.cpp \ + mlparameter.cpp \ + xmlfilterinfo.cpp \ +- $$GLEWCODE \ + meshlabdocumentxml.cpp +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/external/external.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/external/external.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/external/external.pro 2011-01-25 08:49:46.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/external/external.pro 2011-07-10 19:58:22.000000000 +0200 +@@ -2,9 +2,4 @@ + + TEMPLATE = subdirs + +-SUBDIRS = lib3ds-1.3.0/lib3ds \ +- bzip2-1.0.5/bzip2-1.0.5.pro \ +- muparser_v132/src \ +- levmar-2.3/levmar-2.3.pro \ +- structuresynth/structuresynth.pro +-# openkinect/openkinect.pro ++SUBDIRS = structuresynth/structuresynth.pro +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_func/filter_func.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_func/filter_func.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_func/filter_func.pro 2011-01-25 08:49:30.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_func/filter_func.pro 2011-07-10 19:50:52.000000000 +0200 +@@ -14,7 +14,7 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/muparser.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/muparser.lib
+ macx:LIBS += ../../external/lib/macx/libmuparser.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/libmuparser.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libmuparser.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libmuparser.a
+++linux-g++:LIBS += -lmuparser
+++linux-g++-32:LIBS += -lmuparser
+++linux-g++-64:LIBS += -lmuparser
+ win32-g++:LIBS += ../../external/lib/win32-gcc/libmuparser.a
+diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_qhull/filter_qhull.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_qhull/filter_qhull.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_qhull/filter_qhull.pro 2011-01-25 08:49:27.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_qhull/filter_qhull.pro 2011-07-10 19:34:15.000000000 +0200 +@@ -8,28 +8,14 @@ + SOURCES += filter_qhull.cpp \ + qhull_tools.cpp + +-HEADERS += ../../external/qhull-2003.1/src/geom.h \ +- ../../external/qhull-2003.1/src/io.h \ +- ../../external/qhull-2003.1/src/mem.h \ +- ../../external/qhull-2003.1/src/merge.h \ +- ../../external/qhull-2003.1/src/poly.h \ +- ../../external/qhull-2003.1/src/qhull.h \ +- ../../external/qhull-2003.1/src/qset.h \ +- ../../external/qhull-2003.1/src/stat.h \ +- ../../external/qhull-2003.1/src/user.h ++HEADERS += /usr/include/qhull/geom.h \ ++ /usr/include/qhull/io.h \ ++ /usr/include/qhull/mem.h \ ++ /usr/include/qhull/merge.h \ ++ /usr/include/qhull/poly.h \ ++ /usr/include/qhull/qhull.h \ ++ /usr/include/qhull/qset.h \ ++ /usr/include/qhull/stat.h \ ++ /usr/include/qhull/user.h + +-SOURCES += ../../external/qhull-2003.1/src/geom.c \ +- ../../external/qhull-2003.1/src/geom2.c \ +- ../../external/qhull-2003.1/src/global.c \ +- ../../external/qhull-2003.1/src/io.c \ +- ../../external/qhull-2003.1/src/mem.c \ +- ../../external/qhull-2003.1/src/merge.c \ +- ../../external/qhull-2003.1/src/poly.c \ +- ../../external/qhull-2003.1/src/poly2.c \ +- ../../external/qhull-2003.1/src/qconvex.c \ +- ../../external/qhull-2003.1/src/qhull.c \ +- ../../external/qhull-2003.1/src/qset.c \ +- ../../external/qhull-2003.1/src/stat.c \ +- ../../external/qhull-2003.1/src/user.c +- +-TARGET = filter_qhull +\ No newline at end of file ++TARGET = filter_qhull +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_qhull/qhull_tools.h MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_qhull/qhull_tools.h +--- MeshLabSrc_AllInc_v130a/meshlab/src/fgt/filter_qhull/qhull_tools.h 2011-01-25 08:49:27.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/fgt/filter_qhull/qhull_tools.h 2011-07-10 19:35:37.000000000 +0200 +@@ -55,14 +55,14 @@ + #endif
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include "../../external/qhull-2003.1/src/qhull.h"
+-#include "../../external/qhull-2003.1/src/mem.h"
+-#include "../../external/qhull-2003.1/src/qset.h"
+-#include "../../external/qhull-2003.1/src/geom.h"
+-#include "../../external/qhull-2003.1/src/merge.h"
+-#include "../../external/qhull-2003.1/src/poly.h"
+-#include "../../external/qhull-2003.1/src/io.h"
+-#include "../../external/qhull-2003.1/src/stat.h"
++#include "qhull/qhull.h"
++#include "qhull/mem.h"
++#include "qhull/qset.h"
++#include "qhull/geom.h"
++#include "qhull/merge.h"
++#include "qhull/poly.h"
++#include "qhull/io.h"
++#include "qhull/stat.h"
+ #if defined(__cplusplus)
+ }
+ #endif
+@@ -71,4 +71,4 @@ + facetT *compute_delaunay(int dim, int numpoints, MeshModel &m);
+ bool compute_voronoi(int dim, int numpoints, MeshModel &m, MeshModel &pm,float threshold);
+ bool compute_alpha_shapes(int dim, int numpoints, MeshModel &m, MeshModel &pm,double alpha, bool alphashape);
+-int visible_points(int dim, int numpoints, MeshModel &m, MeshModel &pm,MeshModel &pm2, vcg::Point3f viewpointP,float threshold,bool convex_hullFP,bool triangVP); +\ No newline at end of file ++int visible_points(int dim, int numpoints, MeshModel &m, MeshModel &pm,MeshModel &pm2, vcg::Point3f viewpointP,float threshold,bool convex_hullFP,bool triangVP);
+diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/meshlab/meshlab.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlab/meshlab.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/meshlab/meshlab.pro 2011-02-15 10:39:47.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlab/meshlab.pro 2011-07-10 19:21:33.000000000 +0200 +@@ -1,5 +1,5 @@ + VCGDIR = ../../../vcglib +-GLEWDIR = ../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + #CONFIG += debug_and_release + DESTDIR = ../distrib + +@@ -8,7 +8,7 @@ + # CONFIG += warn_off + INCLUDEPATH *= ../.. \ + $$VCGDIR \ +- $$GLEWDIR/include ++ $$GLEWDIR + DEPENDPATH += $$VCGDIR \ + $$VCGDIR/vcg \ + $$VCGDIR/wrap +@@ -108,7 +108,7 @@ + INCLUDEPATH += . \ + .. \ + ../../../vcglib \ +- $$GLEWDIR/include ++ $$GLEWDIR + CONFIG += stl + + macx:LIBS += ../common/libcommon.dylib +@@ -128,12 +128,12 @@ + # win32-g++:release:LIBS += -L../common/release -lcommon + #} + +-linux-g++:LIBS += -L../distrib -lcommon +-linux-g++:QMAKE_RPATHDIR += ../distrib +-linux-g++-32:LIBS += -L../distrib -lcommon +-linux-g++-32:QMAKE_RPATHDIR += ../distrib +-linux-g++-64:LIBS += -L../distrib -lcommon +-linux-g++-64:QMAKE_RPATHDIR += ../distrib ++linux-g++:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-32:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:QMAKE_RPATHDIR += ../usr/lib/meshlab ++linux-g++-64:LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:QMAKE_RPATHDIR += /usr/lib/meshlab + + + # uncomment in your local copy only in emergency cases. +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro 2011-01-25 08:50:05.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/filter_isoparametrization/filter_isoparametrization.pro 2011-07-10 19:50:20.000000000 +0200 +@@ -24,7 +24,7 @@ +
+ TARGET = filter_isoparametrization
+ INCLUDEPATH += ./ \
+- ../../external/levmar-2.3/
++ /usr/include/levmar/
+
+ win32-msvc2005:QMAKE_CXXFLAGS += /openmp -D_USE_OMP
+ win32-msvc2008:QMAKE_CXXFLAGS += /openmp -D_USE_OMP
+@@ -41,9 +41,10 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/levmar.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/levmar.lib
+ win32-g++:LIBS += -L../../external/lib/win32-gcc -llevmar
+-linux-g++:LIBS += -L../../external/lib/linux-g++ -llevmar
+-linux-g++-32:LIBS += -L../../external/lib/linux-g++-32 -llevmar
+-linux-g++-64:LIBS += -L../../external/lib/linux-g++-64 -llevmar
++linux-g++:LIBS += -llevmar
++linux-g++-32:LIBS += -llevmar
++linux-g++-64:LIBS += -llevmar
++
+ macx:LIBS += ../../../src/external/lib/macx/liblevmar.a
+
+ # Please never ever uncomment this...
+diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro 2011-01-25 08:49:55.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro 2011-07-10 19:28:11.000000000 +0200 +@@ -14,7 +14,7 @@ + + TARGET = io_3ds + +-INCLUDEPATH += ../../external/lib3ds-1.3.0/ ++INCLUDEPATH += /usr/include/lib3ds/ + + # Notes on the paths of lib3ds files. + # Once you have compiled the library put the lib files in a dir named lib/XXX/ +@@ -25,9 +25,9 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/3ds.lib + win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/3ds.lib + win32-g++:LIBS += ../../external/lib/win32-gcc/lib3ds.a +-linux-g++:LIBS += ../../external/lib/linux-g++/lib3ds.a +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/lib3ds.a +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/lib3ds.a ++linux-g++:LIBS += -l3ds ++linux-g++-32:LIBS += -l3ds ++linux-g++-64:LIBS += -l3ds + + # unix:LIBS += -L../../../../code/lib/lib3ds-1.3.0/lib3ds/lib/unix -l3ds + +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro 2011-01-25 08:50:02.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabplugins/io_epoch/io_epoch.pro 2011-07-10 19:29:27.000000000 +0200 +@@ -30,16 +30,16 @@ + win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/bz2.lib + win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/bz2.lib + win32-g++:LIBS += ../../external/lib/win32-gcc/libbz2.a +-linux-g++:LIBS += ../../external/lib/linux-g++/libbz2.a +-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libbz2.a +-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libbz2.a ++linux-g++:LIBS += -lbz2 ++linux-g++-32:LIBS += -lbz2 ++linux-g++-64:LIBS += -lbz2 + + win32-msvc2005:INCLUDEPATH += ../../external/bzip2-1.0.5 + win32-msvc2008:INCLUDEPATH += ../../external/bzip2-1.0.5 + win32-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5 +-linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5 ++#linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5 + + mac:LIBS += -lbz2 + +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/meshlabserver/meshlabserver.pro MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabserver/meshlabserver.pro +--- MeshLabSrc_AllInc_v130a/meshlab/src/meshlabserver/meshlabserver.pro 2011-01-25 08:49:46.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/meshlabserver/meshlabserver.pro 2011-07-10 19:23:02.000000000 +0200 +@@ -1,4 +1,4 @@ +-GLEWDIR = ../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + + HEADERS = + +@@ -25,12 +25,12 @@ + win32-msvc2008: LIBS += -L../distrib -lcommon + win32-msvc2010: LIBS += -L../distrib -lcommon + win32-g++: LIBS += -L../distrib -lcommon +-linux-g++: LIBS += -L../distrib -lcommon +-linux-g++:QMAKE_RPATHDIR += ../distrib +-linux-g++-32: LIBS += -L../distrib -lcommon +-linux-g++-32:QMAKE_RPATHDIR += ../distrib +-linux-g++-64: LIBS += -L../distrib -lcommon +-linux-g++-64:QMAKE_RPATHDIR += ../distrib ++linux-g++: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-32: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:QMAKE_RPATHDIR += /usr/lib/meshlab ++linux-g++-64: LIBS += -L../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:QMAKE_RPATHDIR += /usr/lib/meshlab + #CONFIG (release,debug | release) { + # win32-msvc2005:release: LIBS += -L../common/release -lcommon + # win32-msvc2008:release: LIBS += -L../common/release -lcommon +@@ -43,7 +43,7 @@ + + #DEFINES += GLEW_STATIC + +-INCLUDEPATH += . .. ../../../vcglib $$GLEWDIR/include ++INCLUDEPATH += . .. ../../../vcglib $$GLEWDIR + CONFIG += stl + CONFIG += console + +diff -urN MeshLabSrc_AllInc_v130a/meshlab/src/shared.pri MeshLabSrc_AllInc_v130a_patched/meshlab/src/shared.pri +--- MeshLabSrc_AllInc_v130a/meshlab/src/shared.pri 2011-01-25 08:50:20.000000000 +0100 ++++ MeshLabSrc_AllInc_v130a_patched/meshlab/src/shared.pri 2011-07-10 19:04:25.000000000 +0200 +@@ -8,7 +8,7 @@ + QT += script + + VCGDIR = ../../../../vcglib +-GLEWDIR = ../../external/glew-1.5.1 ++GLEWDIR = /usr/include/GL + + mac:LIBS += ../../common/libcommon.dylib + +@@ -17,9 +17,9 @@ + win32-msvc2005: LIBS += ../../distrib/common.lib + win32-msvc2008: LIBS += ../../distrib/common.lib + win32-g++:LIBS += -L../../distrib -lcommon +-linux-g++:LIBS += -L../../distrib -lcommon +-linux-g++-32:LIBS += -L../../distrib -lcommon +-linux-g++-64:LIBS += -L../../distrib -lcommon ++linux-g++:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-32:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW ++linux-g++-64:LIBS += -L../../distrib -lcommon -L/usr/lib -lGLEW + + #CONFIG(debug, debug|release) { + # win32-msvc2005: LIBS += ../../common/debug/common.lib diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r1.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r1.ebuild new file mode 100644 index 0000000..52a1c53 --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils qt4-r2 + +DESCRIPTION="MeshLab is a mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND=" + >=dev-cpp/muParser-1.32-r1 + >=media-libs/glew-1.5.1 + >=media-libs/lib3ds-1.3.0 + >=media-libs/qhull-2003.1-r1 + >=x11-libs/qt-core-4.4 + x11-libs/qt-opengl" +RDEPEND="${DEPEND}" + +#MY_PV=${PV//./} +#S="${WORKDIR}/MeshLabSrc_AllInc_v${MY_PV}" + +S="${WORKDIR}" + +EPATCH_OPTS="-p1" +PATCHES=( + "${FILESDIR}/${PF}-use-system-libs-rpath.patch" +) + +src_configure() { + cd "${S}"/meshlab/src/external/levmar-2.3 + eqmake4 levmar-2.3.pro + + cd "${S}"/meshlab/src/external/muparser_v130/src + eqmake4 src.pro + + cd "${S}"/meshlab/src + eqmake4 meshlabv12.pro +} + +src_compile() { + cd "${S}"/meshlab/src/external/levmar-2.3 + emake || die "emake in levmar-2.3 failed" + + cd "${S}"/meshlab/src/external/muparser_v130/src + emake || die "emake in muparser_v130 failed" + + cd "${S}"/meshlab/src + emake || die "emake in src failed" +} + +src_install() { + # upstream does not provide any installation tools + # the following is reverse engineered + + dodir /usr/lib/meshlab + + exeinto /usr/lib/meshlab + doexe "meshlab/src/distrib/meshlab" + doexe "meshlab/src/distrib/meshlabserver" + + doexe "meshlab/src/distrib/libcommon.so.1.0.0" + dosym libcommon.so.1.0.0 /usr/lib/meshlab/libcommon.so.1 + dosym libcommon.so.1 /usr/lib/meshlab/libcommon.so + + dodir /usr/lib/meshlab/plugins + exeinto /usr/lib/meshlab/plugins + for f in "meshlab/src/distrib/plugins/*.so" + do + doexe $f + done + + dodir /usr/lib/meshlab/shaders + insinto /usr/lib/meshlab/shaders + for f in "meshlab/src/distrib/shaders/*" + do + doins -r $f + done + + cat > ${T}/meshlab <<-EOF +#!/bin/bash +/usr/lib/meshlab/meshlab +EOF + + cat > ${T}/meshlabserver <<-EOF +#!/bin/bash +/usr/lib/meshlab/meshlabserver +EOF + + exeinto /usr/bin + doexe "${T}/meshlab" + doexe "${T}/meshlabserver" +} diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r2.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r2.ebuild new file mode 100644 index 0000000..40a9e6d --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=media-libs/qhull-2003.1-r1 + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/meshlab/src + +PATCHES=( + "${FILESDIR}/${P}-use-system-libs-rpath.patch" +) + +src_configure() { + # NOTE: we keep the bundled libs for now, they are quite small in space and cpu time + eqmake4 external/levmar-2.3/levmar-2.3.pro -o "${S}"/external/levmar-2.3/Makefile + eqmake4 external/muparser_v130/src/src.pro -o "${S}"/external/muparser_v130/src/Makefile + eqmake4 meshlabv12.pro +} + +src_compile() { + emake -C external/levmar-2.3 || die + emake -C external/muparser_v130/src || die + emake || die +} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r3.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r3.ebuild new file mode 100644 index 0000000..cc12322 --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=dev-cpp/muParser-1.30 + =media-libs/qhull-2003.1 + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/meshlab/src + +PATCHES=( + "${FILESDIR}/${PF}-use-system-libs-rpath.patch" +) + +src_configure() { + eqmake4 meshlabv12.pro +} + +#src_compile() { +# emake || die +#} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r4.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r4.ebuild new file mode 100644 index 0000000..511d185 --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND="media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=dev-cpp/muParser-1.30 + <=media-libs/qhull-2003.1-r1 + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/MeshLabSrc_AllInc_v${PV//./}/meshlab/src + +PATCHES=( + "${FILESDIR}/${PF}-use-system-libs-rpath.patch" +) + +src_configure() { + eqmake4 meshlabv12.pro +} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r5.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r5.ebuild new file mode 100644 index 0000000..4a072a7 --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND=">=sys-devel/gcc-4.4 + media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=dev-cpp/muParser-1.30 + <media-libs/qhull-2010.1 + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/MeshLabSrc_AllInc_v${PV//./}/meshlab/src + +PATCHES=( + "${FILESDIR}/${PF}-use-system-libs-rpath.patch" +) + +src_configure() { + eqmake4 meshlabv12.pro +} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/meshlab-1.2.3a-r6.ebuild b/media-gfx/meshlab/meshlab-1.2.3a-r6.ebuild new file mode 100644 index 0000000..d3e4cb1 --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.2.3a-r6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND=">=sys-devel/gcc-4.4 + media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=dev-cpp/muParser-1.30 + media-libs/qhull + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/MeshLabSrc_AllInc_v${PV//./}/meshlab/src + +PATCHES=( + "${FILESDIR}/${PF}-use-system-libs-rpath.patch" +) + +src_configure() { + eqmake4 meshlabv12.pro +} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/meshlab-1.3.0a.ebuild b/media-gfx/meshlab/meshlab-1.3.0a.ebuild new file mode 100644 index 0000000..23c248b --- /dev/null +++ b/media-gfx/meshlab/meshlab-1.3.0a.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: use versionator; first talk to upstream to cleanup their naming +# TODO: add slot for version 2, append -${SLOT} + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes." +HOMEPAGE="http://meshlab.sourceforge.net/" +SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.3.0/MeshLabSrc_AllInc_v130a.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND=">=sys-devel/gcc-4.3 + media-libs/glew + sci-libs/levmar + media-libs/lib3ds + >=dev-cpp/muParser-1.30 + media-libs/qhull + x11-libs/qt-core:4 + x11-libs/qt-opengl:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/meshlab/src + +PATCHES=( + "${FILESDIR}/${PF}-unbundle-libs-and-fix-rpath.patch" +) + +src_configure() { + eqmake4 external/external.pro + eqmake4 meshlab_full.pro +} + +src_compile() { + cd external && emake + cd .. && emake +} + +src_install() { + local my_libdir=/usr/$(get_libdir)/meshlab + + exeinto ${my_libdir} + doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die + dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die + dosym libcommon.so.1 ${my_libdir}/libcommon.so || die + dosym ${my_libdir}/meshlab /usr/bin/meshlab || die + dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die + + exeinto ${my_libdir}/plugins + doexe distrib/plugins/*.so || die + + insinto ${my_libdir}/shaders + doins -r distrib/shaders/* || die +} diff --git a/media-gfx/meshlab/metadata.xml b/media-gfx/meshlab/metadata.xml new file mode 100644 index 0000000..46a44e5 --- /dev/null +++ b/media-gfx/meshlab/metadata.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!-- +$Header: /var/cvsroot/gentoo-x86/skel.metadata.xml,v 1.18 2008/07/28 19:27:05 cardoe Exp $ + +This is the example metadata file. +The root element of this file is <pkgmetadata>. Within this element a +number of subelements are allowed: herd, maintainer, and +longdescription. herd is a required subelement. + +For a full description look at: +http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4 + + +Before committing, please remove the comments from this file. They are +not relevant for general metadata.xml files. +--> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>@gentoo.org</email> +<!-- <description>Description of the maintainership</description> --> +</maintainer> +<!-- <longdescription>Long description of the package</longdescription> --> +<!-- +<use> + <flag name='flag'>Description of how USE='flag' affects this package</flag> + <flag name='userland_GNU'>Description of how USERLAND='GNU' affects this + package</flag> + <flag name='aspell'>Uses <pkg>app-text/aspell</pkg> for spell checking. + Requires an installed dictionary from <cat>app-dicts</cat></flag> +</use> +--> +</pkgmetadata> diff --git a/media-gfx/mitsuba/Manifest b/media-gfx/mitsuba/Manifest new file mode 100644 index 0000000..9f3b130 --- /dev/null +++ b/media-gfx/mitsuba/Manifest @@ -0,0 +1,3 @@ +DIST cb6e89af8012.tar.bz2 19574819 RMD160 dd34f0717a590d1be7179ec42412369c86353298 SHA1 4e543f8d11bcd5198996a1690df9bea08edea8f8 SHA256 a661b4c554d4afd5a5d851e030eca2994ab0f3556a0d7d39adedd8b10d0ccd07 +EBUILD mitsuba-0.3.0.ebuild 1588 RMD160 4492633ff3873f866cb5f924f4d46983ebc8b440 SHA1 ab90e32de3d274c47d11f259f398669ab0ba0002 SHA256 363097ca5a99a5cb47f5f2e2d2c7e52b1964b6e5aa85664b63eba287cfc820dd +MISC mitsuba-0.3.0.ebuild~ 1533 RMD160 3dbefe7b518530df24056747ca965260ea2948eb SHA1 e76d4395db3c70986a0151acfb704d878e4077c7 SHA256 ea617d22484ba8d828aafb9d4d15aa06c1fe5f64bd4df6e11f263448b08448a5 diff --git a/media-gfx/mitsuba/mitsuba-0.3.0.ebuild b/media-gfx/mitsuba/mitsuba-0.3.0.ebuild new file mode 100644 index 0000000..09f4136 --- /dev/null +++ b/media-gfx/mitsuba/mitsuba-0.3.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_DEPEND="3:3.1" +inherit scons-utils toolchain-funcs multilib + +MY_PV="cb6e89af8012" +MY_P="${PN}-${MY_PV}" + +SRC_URI="https://www.mitsuba-renderer.org/hg/mitsuba/archive/${MY_PV}.tar.bz2" + +DESCRIPTION="Mitsuba physically based renderer" +HOMEPAGE="https://www.mitsuba-renderer.org" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="virtual/jpeg + media-libs/libpng + x11-libs/libX11 + media-libs/glew + x11-libs/qt-core + x11-libs/qt-gui + x11-libs/qt-opengl + media-libs/openexr + dev-libs/xerces-c + dev-libs/boost + media-libs/collada-dom" +DEPEND="dev-util/scons + ${RDEPEND}" +S=${WORKDIR}/${MY_P} + +src_prepare() { + mkdir -p "${S}/dependencies" + echo "${PV}" > "${S}/dependencies/version" +} + +src_configure() { + ln -s "${S}/build/config-linux.py" "${S}/config.py" +} + +src_compile() { + tc-export CC CXX + escons || die "Scons failed" +} + +src_install() { + cd dist + + exeinto /usr/bin + doexe mitsuba mtssrv mtsgui mtsutil mtsimport || die + dolib.so libmitsuba-hw.so libmitsuba-render.so libmitsuba-core.so libmitsuba-bidir.so || die + + insinto "/usr/share/${PN}" + doins -r "${S}/data/ior" + doins -r "${S}/data/schema" + + exeinto "/usr/share/${PN}/plugins" + doexe plugins/*.so + + exeinto "/usr/share/${PN}/python" + doexe python/*.so + +# local my_plugins="/usr/$(get_libdir)/${PN}/plugins" +# into ${my_plugins} +# dolib.so plugins/*.so || die +# +# local my_python="/usr/$(get_libdir)/${PN}/python" +# into ${my_python} +# dolib.so python/*.so || die +} diff --git a/media-gfx/openimageio/Manifest b/media-gfx/openimageio/Manifest new file mode 100644 index 0000000..a79972c --- /dev/null +++ b/media-gfx/openimageio/Manifest @@ -0,0 +1 @@ +EBUILD openimageio-9999.ebuild 919 RMD160 36a4736aa2c4a230a5465fe10e74df5986aed726 SHA1 8abc6ca7f82c25a8c17cae6c5118a32715d83a34 SHA256 2804ae30b58dd6ce23d003f2c3849f05aaf515f7f05a71bdb7f7e13f161bebe3 diff --git a/media-gfx/openimageio/openimageio-9999.ebuild b/media-gfx/openimageio/openimageio-9999.ebuild new file mode 100644 index 0000000..e67065c --- /dev/null +++ b/media-gfx/openimageio/openimageio-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils git-2 + +DESCRIPTION="OpenImageIO is a library for reading and writing images, and a \ +bunch of related classes, utilities, and applications." +HOMEPAGE="https://sites.google.com/site/openimageio/" +EGIT_REPO_URI="git://github.com/OpenImageIO/oiio.git" + +LICENSE="BSD" + +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="+viewer" + +DEPEND="dev-libs/boost + media-libs/ilmbase + virtual/jpeg + media-libs/libpng + media-libs/openexr + media-libs/tiff + sys-libs/zlib + viewer? ( media-libs/glew + x11-libs/qt-opengl + )" + +RDEPEND="${DEPEND}" + +src_compile() { + if use viewer; then + emake || die + else + emake USE_OPENGL=0 || die + fi +} + +src_install() { + dobin dist/linux64/bin/* + dodoc dist/linux64/doc/* + insinto /usr/include/ + doins -r dist/linux64/include/* + dolib dist/linux64/lib/* + + +} diff --git a/media-gfx/openmesh/Manifest b/media-gfx/openmesh/Manifest new file mode 100644 index 0000000..6869ea4 --- /dev/null +++ b/media-gfx/openmesh/Manifest @@ -0,0 +1,2 @@ +DIST OpenMesh-2.0.1.tar.bz2 17586878 RMD160 82fa5904193b1042ad4c7ff1f49d08991c219f05 SHA1 ff2a5841f16a4ae280cef83f6893c27ad405dd69 SHA256 5aa92ad275b67c37480ab21ec1b901e56a9e2f1559b84195a7c5a0c74c294045 +EBUILD openmesh-2.0.1.ebuild 1623 RMD160 3f0f95e0d63065387b21b2fcfbbfa6891d2301af SHA1 d416ae0d637a42a030ca27d09f9b126326de038e SHA256 838541700e1cf8ad870f9c5688ea4d3b9452b8318022ed487bae51316696cab6 diff --git a/media-gfx/openmesh/openmesh-2.0.1.ebuild b/media-gfx/openmesh/openmesh-2.0.1.ebuild new file mode 100644 index 0000000..4aa64ef --- /dev/null +++ b/media-gfx/openmesh/openmesh-2.0.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-2.0_rc5.ebuild,v 1.3 2011/04/05 14:18:20 jsbronder Exp $ + +EAPI="3" +inherit eutils cmake-utils + +MY_PN="OpenMesh" +MY_PV="${PV/_rc/-RC}" +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes" +HOMEPAGE="http://www.openmesh.org/" +SRC_URI="http://openmesh.org/fileadmin/${PN}-files/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2" + +# See COPYING.EXCEPTIONS +LICENSE="LGPL-3 as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4 debug static-libs" + +RDEPEND="qt4? ( x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + media-libs/freeglut )" +DEPEND="${RDEPEND}" + +src_prepare() { + # Fix libdir and remove rpath. + cd "${S}" + sed -i \ + -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \ + -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \ + -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \ + -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \ + -e '/^ *INSTALL_RPATH/d' \ + cmake/ACGCommon.cmake || die +} + +src_configure() { + if use debug; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + append-cppflags -DNDEBUG + fi + mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if ! use static-libs; then + # No way to set this in the build system as of 2.0_rc5 + rm -f "${D}"/usr/$(get_libdir)/*.a \ + || die "Failed to remove static libraries." + fi + cd "${S}" + dodoc LICENSE/* README CHANGELOG || die +} diff --git a/media-gfx/pdiff/Manifest b/media-gfx/pdiff/Manifest new file mode 100644 index 0000000..7b2573b --- /dev/null +++ b/media-gfx/pdiff/Manifest @@ -0,0 +1,3 @@ +AUX pdiff-1.1.1-cstdio.patch 401 RMD160 65f8b6c41aa82df10c0e5939cad11964234a30a0 SHA1 d334c214af62f18087a0bbaa1969562bf0a8930f SHA256 03dd8bedd6afe0bea89053bbf3e75b20c28742295117b6ccf92f88c2a8b5e82a +DIST perceptualdiff-1.1.1-src.tar.gz 17440 RMD160 06a97f30eb2489188750b62e6792c65f61bff4f2 SHA1 45be238e657313aed9977f43e5a7fde6e55dddc7 SHA256 ab349279a63018663930133b04852bde2f6a373cc175184b615944a10c1c7c6a +EBUILD pdiff-1.1.1.ebuild 643 RMD160 eaa111dce091a260648f26361673a27ed75cc4a7 SHA1 21f8405275bd3564d43a9cb045fe20b651507fd0 SHA256 32ceb74b89c4f24c3d3345c01206273d2eafd58e801871a7c5c67fc833f4412e diff --git a/media-gfx/pdiff/files/pdiff-1.1.1-cstdio.patch b/media-gfx/pdiff/files/pdiff-1.1.1-cstdio.patch new file mode 100644 index 0000000..c01f569 --- /dev/null +++ b/media-gfx/pdiff/files/pdiff-1.1.1-cstdio.patch @@ -0,0 +1,11 @@ +diff -urN /var/tmp/portage/media-gfx/pdiff-1.1.1/work//Metric.cpp /tmp/pdiffwork//Metric.cpp +--- /var/tmp/portage/media-gfx/pdiff-1.1.1/work//Metric.cpp 2009-05-22 23:27:14.000000000 +0200 ++++ /tmp/pdiffwork//Metric.cpp 2011-09-13 17:32:38.956622998 +0200 +@@ -19,6 +19,7 @@ + #include "RGBAImage.h" + #include "LPyramid.h" + #include <math.h> ++#include <cstdio> + + #ifndef M_PI + #define M_PI 3.14159265f diff --git a/media-gfx/pdiff/pdiff-1.1.1.ebuild b/media-gfx/pdiff/pdiff-1.1.1.ebuild new file mode 100644 index 0000000..9eeb127 --- /dev/null +++ b/media-gfx/pdiff/pdiff-1.1.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit cmake-utils flag-o-matic + +DESCRIPTION="PerceptualDiff is an image comparison utility that makes use of a computational model of the human visual system to compare two images." +HOMEPAGE="http://http://pdiff.sourceforge.net/" +SRC_URI="mirror://sourceforge/pdiff/pdiff/perceptualdiff-${PV}/perceptualdiff-${PV}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${PF}-cstdio.patch" ) + +S=${WORKDIR} + +#src_install() { +#${CMAKE_BUILD_DIR} +#} diff --git a/media-libs/alembic/Manifest b/media-libs/alembic/Manifest new file mode 100644 index 0000000..b8167a6 --- /dev/null +++ b/media-libs/alembic/Manifest @@ -0,0 +1,5 @@ +DIST Alembic_1.0.1_2011091600.tgz 566444 RMD160 e2de15236d76e91839df29724a12ac6ef109e3c9 SHA1 8d0760c07eb26d70865e10e3470be4f43c0e620e SHA256 dfc499280a59a179e09e159884e0ab60b5f3335566cb4db2c5f94c88a1f50653 +DIST Alembic_1.0.2_2011101200.tgz 574206 RMD160 c4eccd05783fe36ced6324616cd16602a0f3fb58 SHA1 b8230399370a8f54b5a3395f087516bae0a5f3df SHA256 e66fd41dd42d55d91721afec3d019a8bfc657e2642bc1d0ee5c611729e9f2c71 +EBUILD alembic-1.0.1.2011091600.ebuild 2267 RMD160 6525b0a1decd6118c0f21ba2e8af24ea2e57c4d8 SHA1 e3978bb5fa9043deb30114e287075f77c28e7035 SHA256 151f11583c90e1b73976f9ee07bb487c2e93e20f0ba7f4161cf72ec3d40874fe +EBUILD alembic-1.0.2.2011101200.ebuild 2279 RMD160 20afb56273285a0d8c19910a2f5ca3e414a1ceb2 SHA1 77d36ce2857256a49d1af44cb472abc472bb4c8f SHA256 150b2c95979cbc80f6b57a6c248c35cea0cc68721dc7910253724df0bc0a4713 +EBUILD alembic-9999.ebuild 2041 RMD160 de599413bfd7288f9677743dc44287bd18276ee2 SHA1 1f1acbd5537952f324f5dccd11079e401f6574ab SHA256 363446482e107d4ab87c513327e23341fe1524911dcc424f0e556c086fd01198 diff --git a/media-libs/alembic/alembic-1.0.1.2011091600.ebuild b/media-libs/alembic/alembic-1.0.1.2011091600.ebuild new file mode 100644 index 0000000..d68fb0e --- /dev/null +++ b/media-libs/alembic/alembic-1.0.1.2011091600.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: replace the alembic_bootstrap.py with proper gentoo methods (cmake eclass) + +EAPI=2 + +inherit eutils versionator + +DESCRIPTION="Alembic is an open framework for storing and sharing 3D geometry data that includes a C++ library, a file format, and client plugins and applications." +HOMEPAGE="http://code.google.com/p/alembic" + +MY_PN="Alembic" +MY_PV=$(replace_version_separator 3 '_') +MY_P="${MY_PN}_${MY_PV}" +MY_PV_NODATE=$(get_version_component_range 1-3) + +SRC_URI="http://alembic.googlecode.com/files/${MY_P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples doc" +RDEPEND="" +DEPEND=">=dev-util/cmake-2.8 + >=dev-libs/boost-1.44[static-libs] + >=media-libs/ilmbase-1.0.1[static-libs] + >=sci-libs/hdf5-1.8.7[-mpi] + doc? ( >=app-doc/doxygen-1.7.3 )" + +TMPBUILD="${WORKDIR}/alembic-build" +TMPINSTALL="${WORKDIR}/alembic-install" + +src_configure() { + mkdir ${TMPBUILD} && cd ${TMPBUILD} + S=${TMPBUILD} + + python ${WORKDIR}/${MY_P}/build/bootstrap/alembic_bootstrap.py \ + --disable-prman --disable-maya --disable-arnold \ + --hdf5_include_dir=/usr/include \ + --hdf5_hdf5_library=/usr/lib/libhdf5.a \ + --boost_include_dir=${LIBS}/boost_install/include \ + --boost_thread_library=/usr/lib/libboost_thread-mt.a \ + --zlib_include_dir=/usr/include \ + --zlib_library=/usr/lib/libz.a \ + --ilmbase_include_dir=/usr/include/OpenEXR \ + --ilmbase_imath_library=/usr/lib/libImath.a \ + . +} + +src_compile() { + emake + + if use examples; then + cd ${S}/examples + emake all + fi +} + +src_install() { + mkdir ${TMPINSTALL} + + cd ${S} + emake DESTDIR=${TMPINSTALL} install + + dolib.a ${TMPINSTALL}/usr/local/${PN}-${MY_PV_NODATE}/lib/static/*.a + cp -r ${TMPINSTALL}/usr/local/${PN}-${MY_PV_NODATE}/include/Alembic ${D}/usr/include + + if use examples; then + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcecho + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcechobounds + dobin ${TMPBUILD}/examples/bin/AbcStitcher/abcstitcher + dobin ${TMPBUILD}/examples/bin/SimpleAbcViewer/SimpleAbcViewer + fi + + dodoc ${WORKDIR}/${MY_P}/{ACKNOWLEDGEMENTS,FEEDBACK,LICENSE,MANIFEST,NEWS,README}.txt + + if use doc; then + cd ${WORKDIR}/${MY_P} + doxygen + dohtml -r doc/html/* + fi +} diff --git a/media-libs/alembic/alembic-1.0.2.2011101200.ebuild b/media-libs/alembic/alembic-1.0.2.2011101200.ebuild new file mode 100644 index 0000000..6cefad9 --- /dev/null +++ b/media-libs/alembic/alembic-1.0.2.2011101200.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: replace the alembic_bootstrap.py with proper gentoo methods (cmake eclass) + +EAPI=2 + +inherit eutils versionator + +DESCRIPTION="Alembic is an open framework for storing and sharing 3D geometry data that includes a C++ library, a file format, and client plugins and applications." +HOMEPAGE="http://code.google.com/p/alembic" + +MY_PN="Alembic" +MY_PV=$(replace_version_separator 3 '_') +MY_P="${MY_PN}_${MY_PV}" +MY_PV_NODATE=$(get_version_component_range 1-3) + +SRC_URI="http://alembic.googlecode.com/files/${MY_P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples doc" +RDEPEND="" +DEPEND=">=dev-util/cmake-2.8 + >=dev-libs/boost-1.44[static-libs] + >=media-libs/ilmbase-1.0.1[static-libs] + >=sci-libs/hdf5-1.8.7[-mpi,static-libs] + doc? ( >=app-doc/doxygen-1.7.3 )" + +TMPBUILD="${WORKDIR}/alembic-build" +TMPINSTALL="${WORKDIR}/alembic-install" + +src_configure() { + mkdir ${TMPBUILD} && cd ${TMPBUILD} + S=${TMPBUILD} + + python ${WORKDIR}/${MY_P}/build/bootstrap/alembic_bootstrap.py \ + --disable-prman --disable-maya --disable-arnold \ + --hdf5_include_dir=/usr/include \ + --hdf5_hdf5_library=/usr/lib/libhdf5.a \ + --boost_include_dir=${LIBS}/boost_install/include \ + --boost_thread_library=/usr/lib/libboost_thread-mt.a \ + --zlib_include_dir=/usr/include \ + --zlib_library=/usr/lib/libz.a \ + --ilmbase_include_dir=/usr/include/OpenEXR \ + --ilmbase_imath_library=/usr/lib/libImath.a \ + . +} + +src_compile() { + emake + + if use examples; then + cd ${S}/examples + emake all + fi +} + +src_install() { + mkdir ${TMPINSTALL} + + cd ${S} + emake DESTDIR=${TMPINSTALL} install + + dolib.a ${TMPINSTALL}/usr/local/${PN}-${MY_PV_NODATE}/lib/static/*.a + cp -r ${TMPINSTALL}/usr/local/${PN}-${MY_PV_NODATE}/include/Alembic ${D}/usr/include + + if use examples; then + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcecho + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcechobounds + dobin ${TMPBUILD}/examples/bin/AbcStitcher/abcstitcher + dobin ${TMPBUILD}/examples/bin/SimpleAbcViewer/SimpleAbcViewer + fi + + dodoc ${WORKDIR}/${MY_P}/{ACKNOWLEDGEMENTS,FEEDBACK,LICENSE,MANIFEST,NEWS,README}.txt + + if use doc; then + cd ${WORKDIR}/${MY_P} + doxygen + dohtml -r doc/html/* + fi +} diff --git a/media-libs/alembic/alembic-9999.ebuild b/media-libs/alembic/alembic-9999.ebuild new file mode 100644 index 0000000..33ed591 --- /dev/null +++ b/media-libs/alembic/alembic-9999.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: replace the alembic_bootstrap.py with proper gentoo methods (cmake eclass) +# TODO: add tests, add help + +EAPI=2 + +inherit eutils mercurial + +DESCRIPTION="Alembic is an open framework for storing and sharing 3D geometry data." +HOMEPAGE="http://code.google.com/p/alembic" +EHG_REPO_URI="https://code.google.com/p/alembic" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="examples doc" +RDEPEND="" +DEPEND=">=dev-util/cmake-2.8 + >=dev-libs/boost-1.44[static-libs] + >=media-libs/ilmbase-1.0.1[static-libs] + >=sci-libs/hdf5-1.8.7[-mpi] + doc? ( >=app-doc/doxygen-1.7.3 )" + +TMPBUILD="${WORKDIR}/alembic-build" +TMPINSTALL="${WORKDIR}/alembic-install" + +src_configure() { + mkdir ${TMPBUILD} && cd ${TMPBUILD} + S=${TMPBUILD} + + python ${WORKDIR}/${P}/build/bootstrap/alembic_bootstrap.py \ + --disable-prman --disable-maya --disable-arnold \ + --hdf5_include_dir=/usr/include \ + --hdf5_hdf5_library=/usr/lib/libhdf5.a \ + --boost_include_dir=${LIBS}/boost_install/include \ + --boost_thread_library=/usr/lib/libboost_thread-mt.a \ + --zlib_include_dir=/usr/include \ + --zlib_library=/usr/lib/libz.a \ + --ilmbase_include_dir=/usr/include/OpenEXR \ + --ilmbase_imath_library=/usr/lib/libImath.a \ + . +} + +src_compile() { + emake + + if use examples; then + cd ${S}/examples + emake all + fi +} + +src_install() { + mkdir ${TMPINSTALL} + + cd ${S} + emake DESTDIR=${TMPINSTALL} install + + dolib.a ${TMPINSTALL}/usr/local/alembic-1.0.0/lib/static/*.a + cp -r ${TMPINSTALL}/usr/local/alembic-1.0.0/include/Alembic ${D}/usr/include + + if use examples; then + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcecho + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcechobounds + dobin ${TMPBUILD}/examples/bin/AbcStitcher/abcstitcher + dobin ${TMPBUILD}/examples/bin/SimpleAbcViewer/SimpleAbcViewer + fi + + dodoc ${WORKDIR}/${P}/{ACKNOWLEDGEMENTS,FEEDBACK,LICENSE,MANIFEST,NEWS,README}.txt + + if use doc; then + cd ${WORKDIR}/${P} + doxygen + dohtml -r doc/html/* + fi +} diff --git a/media-libs/collada-dom/Manifest b/media-libs/collada-dom/Manifest new file mode 100644 index 0000000..6848c63 --- /dev/null +++ b/media-libs/collada-dom/Manifest @@ -0,0 +1,6 @@ +DIST collada-dom-2.2.zip 29651798 RMD160 b2d4387dfe97d97b30b702f39e4ee312dba6d13a SHA1 e6b72ca4c0327fbc342ab87a1d9d76530a980b5d SHA256 3cba41643815045bc9073d1d0ca0337eeda79ce03a31f249078e04973eeecff5 +DIST collada_dom-2.3.1-src.tgz 12106862 RMD160 e20c00c8964e75429bdd13a05939aeb47b0a79a5 SHA1 055a385bf679db5d9a84f46e9ea439b75bdb8725 SHA256 2f0397a0f6463807ee6d7fcbb5d8f512f635259e7f8dfc87bc5dc2f78b2ef9e0 +EBUILD collada-dom-2.2.ebuild 794 RMD160 ac2f62cde490d9f7650786a65cc9d57ff9e5abb2 SHA1 bf012f342719c84b78e4bcd9f9982f957dc85d98 SHA256 f4f3af8d79064680477835ba2ead8e269fe3762e5228ee5fcca8ddf3eb6f356b +EBUILD collada-dom-2.3.1.ebuild 668 RMD160 4dd023fe9a88413d325165ac16b3184d1a27506f SHA1 1bdf7ccf0344b5ac16c4a78a7d312197e02204dc SHA256 ece5b437a973038b454b3d6878a0c728fcfd912e0cc0f78797b053b03dbff5c9 +MISC collada-dom-2.3.1.ebuild~ 684 RMD160 72f37b69fa536af417dedd2467679d2d4ad5461b SHA1 2fd2f493d951afd4f4a1555a0aeaf715ba788e01 SHA256 5e5d43b939b321ae0e96f91ac508a7c0a429a9f519454b721edb7c6c87f9783c +MISC colladadom-2.3.1.ebuild~ 1222 RMD160 a62205fd194ec66496b0887574a135340222ad83 SHA1 4c218f587552f64b88467bedde7d75bd46482a0d SHA256 68e10280179f7198084848800da32895b8830e9f9c9ed3019d97be91d9f5a562 diff --git a/media-libs/collada-dom/collada-dom-2.3.1.ebuild b/media-libs/collada-dom/collada-dom-2.3.1.ebuild new file mode 100644 index 0000000..aaaf671 --- /dev/null +++ b/media-libs/collada-dom/collada-dom-2.3.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils cmake-utils versionator + +DESCRIPTION="The COLLADA Document Object Model (DOM) is an application programming interface (API) that provides a C++ object representation of a COLLADA XML instance document." +HOMEPAGE="http://sourceforge.net/projects/collada-dom/" + +MY_PN="collada_dom" +MY_P="${MY_PN}-${PV}" + +SRC_URI="mirror://sourceforge/project/collada-dom/Collada%20DOM/Collada%20DOM%202.3/${MY_P}-src.tgz" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~x86 ~amd64" + +IUSE="" +DEPEND="dev-libs/boost + dev-libs/libxml2" +RDEPEND="${DEPEND}" diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest new file mode 100644 index 0000000..49d3550 --- /dev/null +++ b/media-libs/glfw/Manifest @@ -0,0 +1,4 @@ +AUX glfw-2.7.2-compile.patch 1115 RMD160 bc2f9a5aa05017f869d6b1c5deea79c88f3ead4d SHA1 f595dc8f44d3c14e62922967e36fb9d441415977 SHA256 89bd4c770e1187526eb747d0d39e8f024be76f96829e86330366a5260d7fb931 +AUX glfw-2.7.2-dyn.patch 806 RMD160 fa6cfd4f6770acd154e4cb73ccc5656395e5b824 SHA1 a845f0d5e1753e5bd73eb097af109a10f3726eea SHA256 9efb0b7d14c62e636c8896c278773afa1b09aef8ddfa945038407ae2b64e29a6 +DIST glfw-2.7.2.tar.bz2 902680 RMD160 409a0ebb121b8d13f30e0d626ca48ba141f06ff4 SHA1 19033c4d55ec98e85bb96954dddf213006857516 SHA256 c328f43351a1f935661d95970730a551d3207d6067260809155efb1a67eab537 +EBUILD glfw-2.7.2.ebuild 1950 RMD160 d5a7eab221e5ab61e44480420a38182a9f8cbcd7 SHA1 fbbf669aa78d5e03947cb530c8e6e7550c28a1e9 SHA256 97070c1a4816c56ab3ade1f3487946adfd7531872c56f5261911b019fc55a184 diff --git a/media-libs/glfw/files/glfw-2.7.2-compile.patch b/media-libs/glfw/files/glfw-2.7.2-compile.patch new file mode 100644 index 0000000..f212f96 --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.2-compile.patch @@ -0,0 +1,38 @@ +--- compile.sh.old 2011-08-19 11:20:37.927080832 +0200 ++++ compile.sh 2011-08-19 11:21:59.910080833 +0200 +@@ -88,7 +88,7 @@ + case "x`uname 2> /dev/null`" in + xLinux) + GLFW_LIB_CFLAGS="$GLFW_LIB_CFLAGS -D_GLFW_USE_LINUX_JOYSTICKS" +- SOFLAGS="-shared -Wl,-soname,libglfw.so" ++ SOFLAGS="-shared -Wl,-soname,libglfw.so.2.7" + echo "Linux" 1>&6 + ;; + xDarwin) +@@ -96,7 +96,7 @@ + echo "Mac OS X" 1>&6 + ;; + *) +- SOFLAGS="-shared -soname libglfw.so" ++ SOFLAGS="-shared -soname libglfw.so.2.7" + echo "Generic Unix" 1>&6 + ;; + esac +@@ -627,7 +627,7 @@ + CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS + + LIB = ../lib/x11/libglfw.a +-SOLIB = ../lib/x11/libglfw.so ++SOLIB = ../lib/x11/libglfw.so.2.7 + LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS + SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS + +@@ -652,7 +652,7 @@ + CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS + + LIB = ../lib/x11/libglfw.a +-SOLIB = ../lib/x11/libglfw.so ++SOLIB = ../lib/x11/libglfw.so.2.7 + LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS + SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS + diff --git a/media-libs/glfw/files/glfw-2.7.2-dyn.patch b/media-libs/glfw/files/glfw-2.7.2-dyn.patch new file mode 100644 index 0000000..e524e6d --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.2-dyn.patch @@ -0,0 +1,20 @@ +--- lib/x11/Makefile.x11.in.old 2011-08-19 11:14:45.190080831 +0200 ++++ lib/x11/Makefile.x11.in 2011-08-19 11:14:08.950080832 +0200 +@@ -8,7 +8,7 @@ + ########################################################################## + # Default: Build GLFW static library + ########################################################################## +-all: libglfw.a libglfw.so ++all: libglfw.a libglfw.so.2.7 + + + ########################################################################## +@@ -118,7 +118,7 @@ + ########################################################################## + # Rule for building shared library + ########################################################################## +-libglfw.so: $(SHARED_OBJS) ++libglfw.so.2.7: $(SHARED_OBJS) + $(CC) $(SOFLAGS) -o $@ $(SHARED_OBJS) $(LFLAGS) $(LIBS) + + diff --git a/media-libs/glfw/glfw-2.7.2.ebuild b/media-libs/glfw/glfw-2.7.2.ebuild new file mode 100644 index 0000000..3cd434e --- /dev/null +++ b/media-libs/glfw/glfw-2.7.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/glfw/glfw-2.6.ebuild,v 1.6 2010/09/13 12:09:46 tupone Exp $ + +EAPI=2 +inherit eutils multilib + +DESCRIPTION="The Portable OpenGL FrameWork" +HOMEPAGE="http://glfw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples" + +DEPEND="x11-libs/libXrandr + virtual/opengl" + +S=${WORKDIR}/${P} + +src_prepare() { + sed -i -e "s:\"docs/:\"/usr/share/doc/${PF}/pdf/:" readme.html || die "sed failed" + epatch "${FILESDIR}/${PF}-dyn.patch" + epatch "${FILESDIR}/${PF}-compile.patch" +} + +src_configure() { + sh compile.sh +} + +src_compile() { + emake -C lib/x11 PREFIX=/usr -f Makefile.x11 all libglfw.pc || die "emake failed" + if use examples; then + emake -C examples -f Makefile.x11 all || die "emake failed" + fi +} + +src_install() { + dolib.a lib/x11/libglfw.a || die "dolib.a failed" + dolib.so lib/x11/libglfw.so.2.7 || die "dolib.so failed" + dosym libglfw.so.2.7 /usr/$(get_libdir)/libglfw.so + + insinto /usr/$(get_libdir)/pkgconfig + doins lib/x11/libglfw.pc || die "doins failed" + insinto /usr/include/GL + doins include/GL/glfw.h || die "doins failed" + + dohtml -r readme.html + #insinto /usr/share/doc/${PF}/html/images + #doins images/* + insinto /usr/share/doc/${PF}/pdf + doins docs/*.pdf + + if use examples; then + local f + local MY_EXAMPLES="boing gears listmodes mipmaps + mtbench mthello particles pong3d splitview + triangle wave" + local MY_PICS="mipmaps.tga pong3d_field.tga pong3d_instr.tga + pong3d_menu.tga pong3d_title.tga + pong3d_winner1.tga pong3d_winner2.tga" + + insinto /usr/share/doc/${PF}/examples + + doins examples/Makefile.x11 + for f in $MY_EXAMPLES; do + doins examples/${f}.c + done + for f in $MY_PICS; do + doins examples/${f} + done + + insopts -m0755 + for f in $MY_EXAMPLES; do + doins examples/${f} + done + fi +} diff --git a/media-libs/luxrays/Manifest b/media-libs/luxrays/Manifest new file mode 100644 index 0000000..e6809f3 --- /dev/null +++ b/media-libs/luxrays/Manifest @@ -0,0 +1 @@ +EBUILD luxrays-9999.ebuild 1085 RMD160 41b74b3e2f585f0637ae11ecdd89ab922e606f55 SHA1 bd4d5ed68ff3a6cae5174fc74fa7fee5b3207f8f SHA256 6a21c60994d1dc8a1bda0652f0399eb79bee6f12ad4e9c5d33e15dd1aae107e4 diff --git a/media-libs/luxrays/luxrays-9999.ebuild b/media-libs/luxrays/luxrays-9999.ebuild new file mode 100644 index 0000000..23bebad --- /dev/null +++ b/media-libs/luxrays/luxrays-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit cmake-utils mercurial flag-o-matic +#inherit cmake-utils flag-o-matic + +DESCRIPTION="Library to accelerate the ray intersection process by using GPUs \ +(this pkg provides only CPU support atm)" +HOMEPAGE="http://www.luxrender.net" +EHG_REPO_URI="https://bitbucket.org/luxrender/luxrays" +#EHG_REVISION="29e1c03a4ae3" +#SRC_URI="https://bitbucket.org/luxrender/luxrays/get/${EHG_REVISION}.tar.bz2" + +#S="${WORKDIR}/luxrender-luxrays-${EHG_REVISION}/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +DEPEND=">=dev-libs/boost-1.43 + media-libs/freeimage + virtual/opengl" + +CMAKE_IN_SOURCE_BUILD=1 + +src_configure() { + append-flags "-fPIC -DLUXRAYS_DISABLE_OPENCL" + use debug && append-flags -ggdb + + mycmakeargs=( -DLUXRAYS_DISABLE_OPENCL=ON -Wno-dev ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_make luxrays +} + +src_install() { + dodoc AUTHORS.txt + + insinto /usr/include + doins -r include/luxrays + + dolib.a lib/libluxrays.a +} diff --git a/media-libs/opencollada/Manifest b/media-libs/opencollada/Manifest new file mode 100644 index 0000000..b8a5aeb --- /dev/null +++ b/media-libs/opencollada/Manifest @@ -0,0 +1 @@ +EBUILD opencollada-9999.ebuild 583 RMD160 fb356c38e2ab31f53fb93e4fc3128007e4f4afa9 SHA1 e6aefd54134bcfcb1eb32a6e00e4a0978d14ae48 SHA256 b43152cfb051dd86e906a8a30e355e42a0059b9461de920044cc507c29cc8206 diff --git a/media-libs/opencollada/opencollada-9999.ebuild b/media-libs/opencollada/opencollada-9999.ebuild new file mode 100644 index 0000000..cbfcc9b --- /dev/null +++ b/media-libs/opencollada/opencollada-9999.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils cmake-utils subversion + +DESCRIPTION="OpenCOLLADA is a stream based reader and writer library for COLLADA files" +HOMEPAGE="http://www.opencollada.org/" +LICENSE="MIT" + +ESVN_REPO_URI="http://opencollada.googlecode.com/svn/trunk" +ESVN_PROJECT="opencollada-trunk" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +DEPEND=">=dev-libs/libxml2-2.7.8-r1" +RDEPEND="${DEPEND}" + +src_install() { + cmake-utils_src_install + dobin ${CMAKE_BUILD_DIR}/bin/OpenCOLLADAValidator +} diff --git a/media-libs/opensg/Manifest b/media-libs/opensg/Manifest new file mode 100644 index 0000000..eec2fed --- /dev/null +++ b/media-libs/opensg/Manifest @@ -0,0 +1,5 @@ +AUX opensg-2.0_alpha2284-fix-gdal-png.patch 2161 RMD160 9e0369fdca0591f568218607f50204fe822c861e SHA1 7233c5ecfcf1bb673397c3f848fa8006444c5531 SHA256 a0bf320fe191176007c35d1954d8f9a85e98febf0ccb5600c91f9bbde708b57d +DIST opensg-2.0_alpha2284.tar.bz2 9746821 RMD160 a46e7e09c7f60a1ec9e1c8bce877cf81d0e246c8 SHA1 af3beac3cbbdf054233ad7a07a0372f6f2033689 SHA256 a96f45d113aa51ff8209a5aa7a7f5e861e4e2776c606f1b9da4b521414dcbb28 +EBUILD opensg-2.0_alpha2284.ebuild 1540 RMD160 2351f3da59b9608b56db66efe0b74cb6fed8d14a SHA1 79cd58a11cde9decd45f5b874494cd680b03ba50 SHA256 6f36cbb060edfbc2b70946d487c59ddae35e36e84ac0e57f757dac92d3aa3f99 +EBUILD opensg-9999.ebuild 3165 RMD160 c2cd296e3154b61d075d5c8f6205cc9689652b3f SHA1 3752e58ea5981a95e3049601dd2e2f2bc713af50 SHA256 4e3114d5c1be9f86e94c2e422516a447cfc8db45cc268a6e8711fc3d13cc54b3 +MISC opensg-9999.ebuild~ 3164 RMD160 ade26c56cff899224511e07a4873294ce93b7841 SHA1 8800fb589c3c62d91acf121812633a12f39ac077 SHA256 d7e53c37620f2e85c88f3230c46ebf6ad374d96d7bdc3acf544ae5c62a3fc324 diff --git a/media-libs/opensg/files/opensg-2.0_alpha2284-fix-gdal-png.patch b/media-libs/opensg/files/opensg-2.0_alpha2284-fix-gdal-png.patch new file mode 100644 index 0000000..6f9fe7a --- /dev/null +++ b/media-libs/opensg/files/opensg-2.0_alpha2284-fix-gdal-png.patch @@ -0,0 +1,51 @@ +diff -urN opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGGDALImageFileType.cpp opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGGDALImageFileType.cpp +--- opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGGDALImageFileType.cpp 2009-11-30 09:59:08.000000000 +0100 ++++ opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGGDALImageFileType.cpp 2010-07-28 14:09:40.000000000 +0200 +@@ -48,9 +48,9 @@ + #include "OSGGeoReferenceAttachment.h" + + #ifdef OSG_WITH_GDAL +-#include "gdal/gdal_priv.h" +-#include "gdal/ogr_srs_api.h" +-#include "gdal/cpl_multiproc.h" ++#include "gdal_priv.h" ++#include "ogr_srs_api.h" ++#include "cpl_multiproc.h" + #endif + + +diff -urN opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGGDALImageFileType.h opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGGDALImageFileType.h +--- opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGGDALImageFileType.h 2009-11-30 07:49:49.000000000 +0100 ++++ opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGGDALImageFileType.h 2010-07-28 14:09:59.000000000 +0200 +@@ -48,8 +48,8 @@ + #include "boost/shared_ptr.hpp" + + #ifdef OSG_WITH_GDAL +-#include "gdal/gdal_priv.h" +-#include "gdal/ogr_srs_api.h" ++#include "gdal_priv.h" ++#include "ogr_srs_api.h" + #endif + + OSG_BEGIN_NAMESPACE +diff -urN opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGPNGImageFileType.cpp opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGPNGImageFileType.cpp +--- opensg-2.0_alpha2284-original/Source/System/Image/FileIO/OSGPNGImageFileType.cpp 2009-10-05 23:40:17.000000000 +0200 ++++ opensg-2.0_alpha2284/Source/System/Image/FileIO/OSGPNGImageFileType.cpp 2010-07-28 13:56:14.000000000 +0200 +@@ -206,7 +206,7 @@ + // Convert < 8 bit to 8 bit + if(color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + bit_depth = 8; + } + +@@ -683,7 +683,7 @@ + // Convert < 8 bit to 8 bit + if(color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + bit_depth = 8; + } + diff --git a/media-libs/opensg/opensg-2.0_alpha2284.ebuild b/media-libs/opensg/opensg-2.0_alpha2284.ebuild new file mode 100644 index 0000000..aa14f7c --- /dev/null +++ b/media-libs/opensg/opensg-2.0_alpha2284.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit cmake-utils + +DESCRIPTION="OpenSG is a portable scenegraph system to create realtime graphics programs, e.g. for virtual reality applications." +HOMEPAGE="http://www.opensg.org/" + +SRC_URI="http://vision.ee.ethz.ch/sihaegle/gentoo/${P}.tar.bz2" +LICENSE="LGPL-2.1" + +SLOT="2" +KEYWORDS="~x86 ~amd64" + +IUSE="tests doc examples" +DEPEND="virtual/opengl + media-libs/freeglut + media-libs/glew + + sys-devel/flex + sys-devel/bison + + dev-libs/boost + sys-libs/zlib + media-libs/freetype + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/openexr + sci-libs/gdal + + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + + sci-libs/vtk + + doc? ( app-doc/doxygen ) +" +RDEPEND="${DEPEND}" + +EPATCH_OPTS="-p1" +PATCHES=( + "${FILESDIR}/${P}-fix-gdal-png.patch" +) + +src_configure() { + mycmakeargs=( + -DOSG_USE_OSGSUPPORT_LIBS=OFF + -DBOOST_ROOT=/usr + -DOSG_DOXY_DOC_TYPE=User + -DOSGBUILD_EXAMPLES_SIMPLE=ON + -DOSGBUILD_EXAMPLES_ADVANCED=ON + -DCOLLADA_ROOT_DIR=/opt/collada-dom + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd "${CMAKE_BUILD_DIR}" + emake Doc || die "building documentation failed" + fi +} + +src_install() { + cmake-utils_src_install + if use doc; then + cd "${CMAKE_BUILD_DIR}"/Doc + dohtml -r html/* || die "dohtml failed" + fi + if use examples; then + cd "${CMAKE_BUILD_DIR}"/demos + dobin mandelbrot/mandelbrot opengl/quaternion_demo || die "dobin failed" + fi +} diff --git a/media-libs/opensg/opensg-9999.ebuild b/media-libs/opensg/opensg-9999.ebuild new file mode 100644 index 0000000..0a7d89e --- /dev/null +++ b/media-libs/opensg/opensg-9999.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils cmake-utils git-2 + +DESCRIPTION="OpenSG is a portable scenegraph system to create realtime graphics programs, e.g. for virtual reality applications." +HOMEPAGE="http://www.opensg.org/" +LICENSE="LGPL-2.1" + +EGIT_REPO_URI="git://opensg.git.sourceforge.net/gitroot/opensg/opensg" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="tests doc examples" +DEPEND="virtual/opengl + media-libs/freeglut + media-libs/glew + + sys-devel/flex + sys-devel/bison + + dev-libs/boost + sys-libs/zlib + media-libs/freetype + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/openexr + media-libs/collada-dom + + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + + doc? ( app-doc/doxygen )" +# sci-libs/gdal +#sci-libs/vtk + +RDEPEND="${DEPEND}" + +src_configure() { + CMAKE_BUILD_TYPE=Release + mycmakeargs=( + -DOSG_USE_OSGSUPPORT_LIBS=OFF + -DBOOST_ROOT=/usr + -DOSG_DOXY_DOC_TYPE=User + -DOSGBUILD_EXAMPLES_SIMPLE=ON + -DOSGBUILD_EXAMPLES_ADVANCED=ON + -DCOLLADA_INCLUDE_DIR=/usr/include/collada-dom + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd "${CMAKE_BUILD_DIR}" + emake Doc || die "building documentation failed" + fi +} + +src_install() { + cmake-utils_src_install + if use doc; then + dohtml -r ${CMAKE_BUILD_DIR}/Doc/html/* || die "dohtml failed" + fi + if use examples; then + exeinto "/usr/share/OpenSG/examples" + doexe ${CMAKE_BUILD_DIR}/bin/01hello || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/02move || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/03share || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/04hiertransform || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/05geometry || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/06indexgeometry || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/07multiindexgeometry || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/08materials || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/09traverse || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/10loading || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/11picking || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/deepclone || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/deferredshading || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/fbotexture || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/hiresimage || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/fbotexture || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/hiresimage || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/lights || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/locallights || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/materialsort || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/occlusionculling || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/openglcallback || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/openglslave || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/shadows || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/simplePluginApp || die "dobin failed" + doexe ${CMAKE_BUILD_DIR}/bin/sortlastclient || die "dobin failed" + fi +} diff --git a/media-libs/spacenav/Manifest b/media-libs/spacenav/Manifest new file mode 100644 index 0000000..dbf1e4d --- /dev/null +++ b/media-libs/spacenav/Manifest @@ -0,0 +1 @@ +EBUILD spacenav-9999.ebuild 1422 RMD160 c5ed080d00cb03b21f38619db0690d1f9336b5eb SHA1 d78216652e5a85a9fbd04ac096e93a2ff28cc7fe SHA256 18acce3bd2c2cfef6b20df9d82ba611fee6289bdd2de9852599f9dc7a6419559 diff --git a/media-libs/spacenav/spacenav-9999.ebuild b/media-libs/spacenav/spacenav-9999.ebuild new file mode 100644 index 0000000..019e7bf --- /dev/null +++ b/media-libs/spacenav/spacenav-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit subversion +EAPI=3 + +DESCRIPTION="Spacenavd is a free software replacement user-space driver (daemon), for 3Dconnexion's space-something 6dof input devices." +HOMEPAGE="http://spacenav.sourceforge.net/" +ESVN_REPO_URI="https://spacenav.svn.sourceforge.net/svnroot/spacenav/trunk" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_configure() { + pushd spacenavd + sed -i "/CFLAGS =/s/$/ ${CFLAGS}/" Makefile.in + sed -i "/DAEMON=/s/\/local\//\//" init_script + econf --prefix="${D}/usr" || die "configure spacenavd failed" + popd + pushd spnavcfg + sed -i "/CFLAGS =/s/$/ ${CFLAGS}/" Makefile.in + econf --prefix="${D}/usr" || die "configure spnavcfg failed" + popd + pushd libspnav + sed -i "/CFLAGS =/s/$/ ${CFLAGS}/" Makefile.in + econf --prefix="${D}/usr" || die "configure libspnav failed" + popd +} + +src_compile() { + pushd spacenavd + emake || die "compiling spacenavd failed" + popd + pushd spnavcfg + emake || die "compiling spnavcfg failed" + popd + pushd libspnav + emake || die "compilinge libspnav failed" + popd +} + +src_install() { + pushd spacenavd + emake install || die "install failed" + newinitd init_script ${PN} + popd + pushd spnavcfg + emake install || die "installing spnavcfg failed" + popd + pushd libspnav + emake install || die "installing libspnav failed" + popd +} diff --git a/media-sound/dsmidiwifi/Manifest b/media-sound/dsmidiwifi/Manifest new file mode 100644 index 0000000..49c5ce9 --- /dev/null +++ b/media-sound/dsmidiwifi/Manifest @@ -0,0 +1,2 @@ +DIST dsmidiwifi-v1.01.tgz 6828002 RMD160 d7a7b7ed803c5206fe4cbed66f73c4695000e0c4 SHA1 1943adfb0a96bd5460e02d3ebc76b804f4c79d15 SHA256 16aea5ccdf293e114a03b6ef91aa58408851cd94dd57356206d539039e226683 +EBUILD dsmidiwifi-1.0.1.ebuild 589 RMD160 340ca8ae7399fbd07964c13d04c523894f6e6264 SHA1 467affd74c9dcdab36a3701d3194c7e259e3c1c7 SHA256 5324211b6e6d1dd875fe91f58a0761e06ef716810553a25195c6b6b60963ea3d diff --git a/media-sound/dsmidiwifi/dsmidiwifi-1.0.1.ebuild b/media-sound/dsmidiwifi/dsmidiwifi-1.0.1.ebuild new file mode 100644 index 0000000..20da6a9 --- /dev/null +++ b/media-sound/dsmidiwifi/dsmidiwifi-1.0.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="network midi server" +HOMEPAGE="http://code.google.com/p/dsmi" + +MY_PV="v$(replace_version_separator 2 '')" +MY_PF="${PN}-${MY_PV}" + +SRC_URI="http://dsmi.googlecode.com/files/dsmidiwifi-${MY_PV}.tgz" + +LICENSE="LGPL" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( +) + +S=${WORKDIR}/${MY_PF}/source + +src_configure() { + eqmake4 DSMIDIWiFi.pro +} + +src_install() { + dobin DSMIDIWiFi +} diff --git a/media-video/cuda-z/Manifest b/media-video/cuda-z/Manifest new file mode 100644 index 0000000..15540e7 --- /dev/null +++ b/media-video/cuda-z/Manifest @@ -0,0 +1,3 @@ +AUX cuda-z-0.5-fix-cuda-path.patch 817 RMD160 fcd7a0d2f33a6b90cefdf69171100db99214162f SHA1 d98cbf0e9e1bcc3b53c3769f35c79476c26bee32 SHA256 50db13177db9b800f9208bfbdb190f2413757b2131e41082f57bbde9e368f14d +DIST cuda-z-0.5.zip 268697 RMD160 09d247d96e754a6d4df55e13663a7b7cafd00ccc SHA1 785630d0fb36742f64f93bd696862bd95a3ff1c7 SHA256 f3623481bd802e6d31a85729cbda2fded1ceb3fc441bbda4090559490e6d9b40 +EBUILD cuda-z-0.5.ebuild 589 RMD160 173b1fc3e3cd90b2722f678d2c7a255bc35daa5d SHA1 abcba5571980600d6428a27664937216c176410d SHA256 bd1af6f452473fb6e9c74bd0a145af627bd883d6df2dd9f9a80a90e389cf0c6b diff --git a/media-video/cuda-z/cuda-z-0.5.ebuild b/media-video/cuda-z/cuda-z-0.5.ebuild new file mode 100644 index 0000000..28fc09e --- /dev/null +++ b/media-video/cuda-z/cuda-z-0.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils multilib qt4-r2 versionator + +DESCRIPTION="CUDA Information Utility for nVIDIA chipsets." +HOMEPAGE="http://cuda-z.sourceforge.net/" +SRC_URI="mirror://sourceforge/cuda-z/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +DEPEND="x11-drivers/nvidia-drivers + dev-util/nvidia-cuda-toolkit + x11-libs/qt-core:4 + x11-libs/qt-gui:4" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PF}-fix-cuda-path.patch" +) + +src_install() { + dobin bin/${PN} +} diff --git a/media-video/cuda-z/files/cuda-z-0.5-fix-cuda-path.patch b/media-video/cuda-z/files/cuda-z-0.5-fix-cuda-path.patch new file mode 100644 index 0000000..80a0f8d --- /dev/null +++ b/media-video/cuda-z/files/cuda-z-0.5-fix-cuda-path.patch @@ -0,0 +1,23 @@ +diff -urN cuda-z-0.5/cuda-z.pro cuda-z-0.5-fixed/cuda-z.pro +--- cuda-z-0.5/cuda-z.pro 2009-04-12 16:14:10.000000000 +0200 ++++ cuda-z-0.5-fixed/cuda-z.pro 2011-09-15 04:14:20.313570779 +0200 +@@ -28,7 +28,7 @@ + -gencode arch=compute_11,code=compute_11 \
+ -gencode arch=compute_13,code=compute_13
+
+-unix:LIBS += -lcudart
++unix:LIBS += -L/opt/cuda/lib64 -lcudart
+ win32:LIBS += \
+ $(CUDA_LIB_PATH)\cuda.lib \
+ $(CUDA_LIB_PATH)\cudart.lib
+@@ -101,8 +101,8 @@ + isEmpty(QMAKE_EXT_CPP_CU):QMAKE_EXT_CPP_CU = .cu
+
+ win32:INCLUDEPATH += $(CUDA_INC_PATH)
+- unix:INCLUDEPATH += /usr/local/cuda/include
+- unix:LIBPATH += /usr/local/cuda/lib
++ unix:INCLUDEPATH += /opt/cuda/include
++ unix:LIBPATH += /opt/cuda/lib
+
+ QMAKE_CUFLAGS += $$QMAKE_CXXFLAGS
+ DebugBuild:QMAKE_CUFLAGS += $$QMAKE_CXXFLAGS_DEBUG
diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..f7c91be --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +mistafunk diff --git a/sci-libs/levmar/Manifest b/sci-libs/levmar/Manifest new file mode 100644 index 0000000..845f730 --- /dev/null +++ b/sci-libs/levmar/Manifest @@ -0,0 +1,7 @@ +AUX 2.5-cmake-shared.patch 1076 RMD160 5958b6ec63f696616ebf4733d50361fd26d9712d SHA1 d1d00c4a782261ea3edf7aef0f16a8619ad98245 SHA256 5ce12fbffba7a710bcd80c43f6be3dc4bad977973ddc1bb6e960c90c2cb1db32 +AUX 2.5-cmake.patch 563 RMD160 1f5d7dcb5ee52b578903a7367675d53b93aada68 SHA1 02329c868c946f96230a85b3638e3cd81c6f72a1 SHA256 8e9dfde5cf98d384aa31c3951336a19d830a76a025a151ff739666a39240a344 +AUX 2.5-f2c_main.patch 227 RMD160 3f1fd800a50fd6c5e12596f4f26cfab2f1a25a1e SHA1 ff1d03df3f89eab7da4648b690a363620853294c SHA256 21deeb289b245df3981c9264ee54260cc4ac791424e7adf741a6181de28cea11 +AUX 2.5-make-shared.patch 1212 RMD160 19e463acd4afba8dd7c2b235762ab08ddcf47dfc SHA1 48cee951743f1d661dd3df5a13e12356ae2e0de7 SHA256 4c39c51b9a8d7cee73ad9e65b02218cef65d2945f8e63eac7d8e533bdc65d604 +DIST levmar-2.5.tgz 78817 RMD160 fc43206eef2969a143e3a9597b68d06eccbd14dd SHA1 46c11812689baba96f3b53cf89f0f3edb3582e61 SHA256 b70f6ac3eff30ec29150e217b137312cb84e85529815efea2c12e4eab74b9d75 +EBUILD levmar-2.5-r1.ebuild 854 RMD160 c8eaf7ccf23d18daa76e1af8f66b84e37aa52979 SHA1 16e16784c77ede32866dbca66e4adb4211c15af8 SHA256 6c94c91deb1bcc5835dbd9799043104a1f768502d5e16f292f55fb2cd7bf660c +EBUILD levmar-2.5-r2.ebuild 914 RMD160 b76a0bc6dd397332152e258c5d72f6efcdb51c3e SHA1 add8e0af50481f5966b20a46fe91c8fbd9dc81f6 SHA256 1593e336c6d3ce9873140f9fae207645605fbee30220fcf61cffa56be909299c diff --git a/sci-libs/levmar/files/2.5-cmake-shared.patch b/sci-libs/levmar/files/2.5-cmake-shared.patch new file mode 100644 index 0000000..5d57728 --- /dev/null +++ b/sci-libs/levmar/files/2.5-cmake-shared.patch @@ -0,0 +1,29 @@ +--- CMakeLists.txt.orig 2010-05-28 10:55:27.000000000 +0200 ++++ CMakeLists.txt 2010-06-15 17:13:34.000000000 +0200 +@@ -2,11 +2,16 @@ + # http://www.insightsoftwareconsortium.org/wiki/index.php/CMake_Tutorial
+
+ PROJECT(LEVMAR)
+-#CMAKE_MINIMUM_REQUIRED(VERSION 1.4)
++CMAKE_MINIMUM_REQUIRED(VERSION 1.4)
++
++if(COMMAND cmake_policy)
++ cmake_policy(SET CMP0003 NEW)
++endif(COMMAND cmake_policy)
+
+ # compiler flags
+ #ADD_DEFINITIONS(-DLINSOLVERS_RETAIN_MEMORY) # do not free memory between linear solvers calls
+ #REMOVE_DEFINITIONS(-DLINSOLVERS_RETAIN_MEMORY) # free memory between calls
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") # build shared library
+
+ # f2c is sometimes equivalent to libF77 & libI77; in that case, set HAVE_F2C to 0
+ SET(HAVE_F2C 1 CACHE BOOL "Do we have f2c or F77/I77?" )
+@@ -30,7 +35,7 @@ + #INCLUDE_DIRECTORIES(/usr/include)
+
+ # levmar library source files
+-ADD_LIBRARY(levmar STATIC
++ADD_LIBRARY(levmar SHARED
+ lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.c lmbleic.c
+ levmar.h misc.h compiler.h
+ )
diff --git a/sci-libs/levmar/files/2.5-cmake.patch b/sci-libs/levmar/files/2.5-cmake.patch new file mode 100644 index 0000000..f74e21f --- /dev/null +++ b/sci-libs/levmar/files/2.5-cmake.patch @@ -0,0 +1,15 @@ +--- levmar-2.5/CMakeLists.txt.orig 2010-05-28 10:55:27.000000000 +0200 ++++ levmar-2.5/CMakeLists.txt 2010-05-28 10:57:30.000000000 +0200 +@@ -2,7 +2,11 @@ + # http://www.insightsoftwareconsortium.org/wiki/index.php/CMake_Tutorial
+
+ PROJECT(LEVMAR)
+-#CMAKE_MINIMUM_REQUIRED(VERSION 1.4)
++CMAKE_MINIMUM_REQUIRED(VERSION 1.4)
++
++if(COMMAND cmake_policy)
++ cmake_policy(SET CMP0003 NEW)
++endif(COMMAND cmake_policy)
+
+ # compiler flags
+ #ADD_DEFINITIONS(-DLINSOLVERS_RETAIN_MEMORY) # do not free memory between linear solvers calls
diff --git a/sci-libs/levmar/files/2.5-f2c_main.patch b/sci-libs/levmar/files/2.5-f2c_main.patch new file mode 100644 index 0000000..d7933ed --- /dev/null +++ b/sci-libs/levmar/files/2.5-f2c_main.patch @@ -0,0 +1,11 @@ +--- levmar-2.5/lmdemo.c.orig 2010-05-26 11:25:05.000000000 +0200 ++++ levmar-2.5/lmdemo.c 2010-05-26 11:25:45.000000000 +0200 +@@ -781,7 +781,7 @@ + + + +-int main() ++int MAIN__() + { + register int i, j; + int problem, ret; diff --git a/sci-libs/levmar/files/2.5-make-shared.patch b/sci-libs/levmar/files/2.5-make-shared.patch new file mode 100644 index 0000000..9b17fa4 --- /dev/null +++ b/sci-libs/levmar/files/2.5-make-shared.patch @@ -0,0 +1,38 @@ +--- Makefile.orig 2010-06-15 17:44:45.000000000 +0200 ++++ Makefile 2010-06-15 18:10:44.000000000 +0200 +@@ -6,7 +6,7 @@ + CC=gcc + CONFIGFLAGS=#-ULINSOLVERS_RETAIN_MEMORY + #ARCHFLAGS=-march=pentium4 # YOU MIGHT WANT TO UNCOMMENT THIS FOR P4 +-CFLAGS=$(CONFIGFLAGS) $(ARCHFLAGS) -O3 -funroll-loops -Wall #-ffast-math #-pg ++CFLAGS=$(CONFIGFLAGS) $(ARCHFLAGS) -O3 -funroll-loops -Wall -fPIC #-ffast-math #-pg + LAPACKLIBS_PATH=/usr/local/lib # WHEN USING LAPACK, CHANGE THIS TO WHERE YOUR COMPILED LIBS ARE! + LDFLAGS=-L$(LAPACKLIBS_PATH) -L. + LIBOBJS=lm.o Axb.o misc.o lmlec.o lmbc.o lmblec.o lmbleic.o +@@ -30,13 +30,12 @@ + + LIBS=$(LAPACKLIBS) + +-all: liblevmar.a lmdemo ++all: liblevmar.so lmdemo + +-liblevmar.a: $(LIBOBJS) +- $(AR) crv liblevmar.a $(LIBOBJS) +- $(RANLIB) liblevmar.a ++liblevmar.so: $(LIBOBJS) ++ $(CC) -shared -Wl,-soname,liblevmar.so -o liblevmar.so $(LIBOBJS) $(LIBS) + +-lmdemo: $(DEMOBJS) liblevmar.a ++lmdemo: $(DEMOBJS) liblevmar.so + $(CC) $(LDFLAGS) $(DEMOBJS) -o lmdemo -llevmar $(LIBS) -lm + + lm.o: lm.c lm_core.c levmar.h misc.h compiler.h +@@ -54,7 +53,7 @@ + + cleanall: clean + @rm -f lmdemo +- @rm -f liblevmar.a ++ @rm -f liblevmar.so + + depend: + makedepend -f Makefile $(LIBSRCS) $(DEMOSRCS) diff --git a/sci-libs/levmar/levmar-2.5-r1.ebuild b/sci-libs/levmar/levmar-2.5-r1.ebuild new file mode 100644 index 0000000..58f0a3d --- /dev/null +++ b/sci-libs/levmar/levmar-2.5-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +DESCRIPTION="Levenberg-Marquardt nonlinear least squares algorithms ANSI C implementation" +HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/" +SRC_URI="http://www.ics.forth.gr/~lourakis/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=dev-lang/f2c-20060507 + >=virtual/blas-1.0 + >=virtual/lapack-3.1" +RDEPEND="${DEPEND}" + +MIN_CMAKE="dev-util/cmake-1.4" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-f2c_main.patch "${FILESDIR}"/${PV}-cmake.patch +} + +src_compile() { + if has_version ">=${MIN_CMAKE}" + then + cmake . || die "cmake failed" + fi + emake || die "make failed" +} + +src_install() { + local my_include_dir=/usr/include/${PN} + insinto ${my_include_dir} + doins *.h + + dolib liblevmar.a +} diff --git a/sci-libs/levmar/levmar-2.5-r2.ebuild b/sci-libs/levmar/levmar-2.5-r2.ebuild new file mode 100644 index 0000000..d022626 --- /dev/null +++ b/sci-libs/levmar/levmar-2.5-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 +inherit eutils +DESCRIPTION="Levenberg-Marquardt nonlinear least squares algorithms ANSI C implementation" +HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/" +SRC_URI="http://www.ics.forth.gr/~lourakis/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=dev-lang/f2c-20060507 + >=virtual/blas-1.0 + >=virtual/lapack-3.1" +RDEPEND="${DEPEND}" + +MIN_CMAKE="dev-util/cmake-1.4" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-f2c_main.patch "${FILESDIR}"/${PV}-make-shared.patch "${FILESDIR}"/${PV}-cmake-shared.patch +} + +src_compile() { + if has_version ">=${MIN_CMAKE}" + then + cmake . || die "cmake failed" + fi + emake || die "make failed" +} + +src_install() { + local my_include_dir=/usr/include/${PN} + insinto ${my_include_dir} + doins *.h + + dolib liblevmar.so +} diff --git a/sci-mathematics/mcsim/Manifest b/sci-mathematics/mcsim/Manifest new file mode 100644 index 0000000..053b87a --- /dev/null +++ b/sci-mathematics/mcsim/Manifest @@ -0,0 +1,3 @@ +DIST mcsim-5.4.0.tar.gz 1840057 RMD160 7294cdac918fef2e0e52b4e0c226492af7423fd2 SHA1 63a9b9fd22869f49bb92dbbf5e90e8320571b8a1 SHA256 ce4d2be3f4dacd2c2daf1e4c21b3c382e661e79f2bbfb2858e83d037a31646f1 +EBUILD mcsim-5.4.0.ebuild 441 RMD160 d322c4e348a66113ef6c8cb5dc4025fc944d7881 SHA1 65d2700fe64a028681e38536e6f9d0b29a74ac0b SHA256 c034d9539ae5bf5c25222c97dc782e3208293633d5a451018941625c50a3ffbc +MISC mcsim-5.4.0.ebuild~ 405 RMD160 2faf5673bed140d3b63dcc1434f6f6704262aba5 SHA1 d21cadcc81b8c41b8c83413de234a625bca9a027 SHA256 26e099cc41924ef10efd7a550ffaf14d19e5f01c021e1acaa1c8854904a664f6 diff --git a/sci-mathematics/mcsim/mcsim-5.4.0.ebuild b/sci-mathematics/mcsim/mcsim-5.4.0.ebuild new file mode 100644 index 0000000..5962456 --- /dev/null +++ b/sci-mathematics/mcsim/mcsim-5.4.0.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils multilib + +DESCRIPTION="GNU MCSim is a Monte-Carlo simulation package." +HOMEPAGE="http://www.gnu.org/s/mcsim" +SRC_URI="http://www.gnu.org/s/mcsim/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +DEPEND="" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install || die +} |