@@ -, +, @@ --- ...ld => emul-linux-x86-opengl-20130224-r1.ebuild} | 28 ++++++-- ...4.ebuild => libclc-0.0.1_pre20130524-r1.ebuild} | 3 +- ...ayland-1.2.0.ebuild => wayland-1.2.0-r1.ebuild} | 22 +++--- ...eglut-2.8.1.ebuild => freeglut-2.8.1-r2.ebuild} | 45 ++++-------- ...glew-1.10.0-r1.ebuild => glew-1.10.0-r2.ebuild} | 47 ++++++------ gx86/media-libs/glu/glu-9.0.0-r1.ebuild | 4 +- .../{mesa-9.1.6.ebuild => mesa-9.1.6-r1.ebuild} | 75 ++++++++++--------- ...30725.ebuild => mesa-9.2_pre20130725-r1.ebuild} | 83 ++++++++++++---------- gx86/virtual/glu/glu-9.0-r1.ebuild | 24 +++++++ .../{opencl-0-r3.ebuild => opencl-0-r4.ebuild} | 12 ++-- gx86/virtual/opengl/opengl-7.0-r1.ebuild | 23 ++++++ ...ibdrm-2.4.46.ebuild => libdrm-2.4.46-r1.ebuild} | 7 +- ...ri2proto-2.8.ebuild => dri2proto-2.8-r1.ebuild} | 6 +- ...o-1.4.15-r1.ebuild => glproto-1.4.16-r1.ebuild} | 11 +-- ...o-2.1.1.ebuild => xf86driproto-2.1.1-r1.ebuild} | 5 +- 15 files changed, 239 insertions(+), 156 deletions(-) copy gx86/app-emulation/emul-linux-x86-opengl/{emul-linux-x86-opengl-20130224.ebuild => emul-linux-x86-opengl-20130224-r1.ebuild} (54%) copy gx86/dev-libs/libclc/{libclc-0.0.1_pre20130524.ebuild => libclc-0.0.1_pre20130524-r1.ebuild} (92%) copy gx86/dev-libs/wayland/{wayland-1.2.0.ebuild => wayland-1.2.0-r1.ebuild} (78%) copy gx86/media-libs/freeglut/{freeglut-2.8.1.ebuild => freeglut-2.8.1-r2.ebuild} (55%) copy gx86/media-libs/glew/{glew-1.10.0-r1.ebuild => glew-1.10.0-r2.ebuild} (78%) copy gx86/media-libs/mesa/{mesa-9.1.6.ebuild => mesa-9.1.6-r1.ebuild} (88%) copy gx86/media-libs/mesa/{mesa-9.2_pre20130725.ebuild => mesa-9.2_pre20130725-r1.ebuild} (88%) create mode 100644 gx86/virtual/glu/glu-9.0-r1.ebuild copy gx86/virtual/opencl/{opencl-0-r3.ebuild => opencl-0-r4.ebuild} (61%) create mode 100644 gx86/virtual/opengl/opengl-7.0-r1.ebuild copy gx86/x11-libs/libdrm/{libdrm-2.4.46.ebuild => libdrm-2.4.46-r1.ebuild} (88%) copy gx86/x11-proto/dri2proto/{dri2proto-2.8.ebuild => dri2proto-2.8-r1.ebuild} (57%) copy gx86/x11-proto/glproto/{glproto-1.4.15-r1.ebuild => glproto-1.4.16-r1.ebuild} (81%) copy gx86/x11-proto/xf86driproto/{xf86driproto-2.1.1.ebuild => xf86driproto-2.1.1-r1.ebuild} (58%) --- a/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224.ebuild +++ a/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224.ebuild @@ -5,23 +5,43 @@ EAPI=5 inherit emul-linux-x86 -LICENSE="BSD MIT LGPL-3 SGI-B-2.0" - -KEYWORDS="-* amd64 ~amd64-linux" +SRC_URI="!abi_x86_32? ( ${SRC_URI} )" +LICENSE="!abi_x86_32? ( BSD MIT LGPL-3 SGI-B-2.0 ) abi_x86_32? ( metapackage )" +KEYWORDS="-* ~amd64 ~amd64-linux" +IUSE="abi_x86_32" DEPEND="app-admin/eselect-opengl >=app-admin/eselect-mesa-0.0.9" RDEPEND=">=app-emulation/emul-linux-x86-xlibs-20100611 !=sys-devel/llvm-2.9 + ~sys-devel/llvm-3.3[${MULTILIB_USEDEP}] r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) ) @@ -123,11 +125,11 @@ DEPEND="${RDEPEND} sys-devel/bison sys-devel/flex virtual/pkgconfig - >=x11-proto/dri2proto-2.6 - >=x11-proto/glproto-1.4.15-r1 - >=x11-proto/xextproto-7.0.99.1 - x11-proto/xf86driproto - x11-proto/xf86vidmodeproto + >=x11-proto/dri2proto-2.6[${MULTILIB_USEDEP}] + >=x11-proto/glproto-1.4.15-r1[${MULTILIB_USEDEP}] + >=x11-proto/xextproto-7.0.99.1[${MULTILIB_USEDEP}] + x11-proto/xf86driproto[${MULTILIB_USEDEP}] + x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] " S="${WORKDIR}/${MY_P}" @@ -171,15 +173,13 @@ src_prepare() { sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die fi - # Tests fail against python-3, bug #407887 - sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die - base_src_prepare eautoreconf + multilib_copy_sources } -src_configure() { +multilib_src_configure() { local myconf if use classic; then @@ -248,6 +248,11 @@ src_configure() { # build fails with BSD indent, bug #428112 use userland_GNU || export INDENT=cat + if ! multilib_is_native_abi; then + myconf+="--disable-xorg + LLVM_CONFIG=${EPREFIX}/usr/bin/llvm-config.${ABI}" + fi + econf \ --enable-dri \ --enable-glx \ @@ -269,18 +274,8 @@ src_configure() { ${myconf} } -src_install() { - base_src_install - - find "${ED}" -name '*.la' -exec rm -f {} + || die - - if use !bindist; then - dodoc docs/patents.txt - fi - - # Install config file for eselect mesa - insinto /usr/share/mesa - newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf +multilib_src_install() { + emake install DESTDIR="${D}" # Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib # because user can eselect desired GL provider. @@ -343,6 +338,18 @@ src_install() { fi } +multilib_src_install_all() { + find "${ED}" -name '*.la' -exec rm -f {} + || die + + if use !bindist; then + dodoc docs/patents.txt + fi + + # Install config file for eselect mesa + insinto /usr/share/mesa + newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf +} + pkg_postinst() { # Switch to the xorg implementation. echo --- a/gx86/media-libs/mesa/mesa-9.2_pre20130725.ebuild +++ a/gx86/media-libs/mesa/mesa-9.2_pre20130725.ebuild @@ -13,7 +13,8 @@ fi PYTHON_COMPAT=( python{2_6,2_7} ) -inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS} +inherit base autotools multilib multilib-minimal flag-o-matic \ + python-single-r1 toolchain-funcs ${GIT_ECLASS} OPENGL_DIR="xorg-x11" @@ -83,28 +84,29 @@ LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.46" RDEPEND=" !=app-admin/eselect-opengl-1.2.7 - dev-libs/expat - gbm? ( virtual/udev ) - >=x11-libs/libX11-1.3.99.901 - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXxf86vm - >=x11-libs/libxcb-1.8.1 + dev-libs/expat[${MULTILIB_USEDEP}] + gbm? ( virtual/udev[${MULTILIB_USEDEP}] ) + >=x11-libs/libX11-1.3.99.901[${MULTILIB_USEDEP}] + x11-libs/libXdamage[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + x11-libs/libXxf86vm[${MULTILIB_USEDEP}] + >=x11-libs/libxcb-1.8.1[${MULTILIB_USEDEP}] opencl? ( app-admin/eselect-opencl - dev-libs/libclc + >=dev-libs/libclc-0.0.1_pre20130524-r1 ) - vdpau? ( >=x11-libs/libvdpau-0.4.1 ) - wayland? ( >=dev-libs/wayland-1.0.3 ) + vdpau? ( >=x11-libs/libvdpau-0.4.1[${MULTILIB_USEDEP}] ) + wayland? ( >=dev-libs/wayland-1.0.3[${MULTILIB_USEDEP}] ) xorg? ( x11-base/xorg-server:= x11-libs/libdrm[libkms] ) - xvmc? ( >=x11-libs/libXvMC-1.0.6 ) - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?] + xvmc? ( >=x11-libs/libXvMC-1.0.6[${MULTILIB_USEDEP}] ) + ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] " for card in ${INTEL_CARDS}; do RDEPEND="${RDEPEND} @@ -120,13 +122,13 @@ done DEPEND="${RDEPEND} llvm? ( - >=sys-devel/llvm-2.9 + ~sys-devel/llvm-3.3[${MULTILIB_USEDEP}] r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) ) opencl? ( - >=sys-devel/llvm-3.3-r1[video_cards_radeon] - >=sys-devel/clang-3.3 + ~sys-devel/llvm-3.3[video_cards_radeon,${MULTILIB_USEDEP}] + ~sys-devel/clang-3.3[${MULTILIB_USEDEP}] >=sys-devel/gcc-4.6 ) ${PYTHON_DEPS} @@ -134,11 +136,11 @@ DEPEND="${RDEPEND} sys-devel/bison sys-devel/flex virtual/pkgconfig - >=x11-proto/dri2proto-2.6 - >=x11-proto/glproto-1.4.15-r1 - >=x11-proto/xextproto-7.0.99.1 - x11-proto/xf86driproto - x11-proto/xf86vidmodeproto + >=x11-proto/dri2proto-2.6[${MULTILIB_USEDEP}] + >=x11-proto/glproto-1.4.15-r1[${MULTILIB_USEDEP}] + >=x11-proto/xextproto-7.0.99.1[${MULTILIB_USEDEP}] + x11-proto/xf86driproto[${MULTILIB_USEDEP}] + x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] " S="${WORKDIR}/${MY_P}" @@ -183,15 +185,13 @@ src_prepare() { sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die fi - # Tests fail against python-3, bug #407887 - sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die - base_src_prepare eautoreconf + multilib_copy_sources } -src_configure() { +multilib_src_configure() { local myconf if use classic; then @@ -257,7 +257,7 @@ src_configure() { myconf+=" $(use_enable opencl) --with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" - --with-clang-libdir="${EPREFIX}/usr/$(get_libdir)" + --with-clang-libdir="${EPREFIX}/usr/lib" " fi fi @@ -272,6 +272,11 @@ src_configure() { # build fails with BSD indent, bug #428112 use userland_GNU || export INDENT=cat + if ! multilib_is_native_abi; then + myconf+="--disable-xorg + LLVM_CONFIG=${EPREFIX}/usr/bin/llvm-config.${ABI}" + fi + econf \ --enable-dri \ --enable-glx \ @@ -293,18 +298,8 @@ src_configure() { ${myconf} } -src_install() { - base_src_install - - find "${ED}" -name '*.la' -exec rm -f {} + || die - - if use !bindist; then - dodoc docs/patents.txt - fi - - # Install config file for eselect mesa - insinto /usr/share/mesa - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf +multilib_src_install() { + emake DESTDIR="${D}" install # Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib # because user can eselect desired GL provider. @@ -381,6 +376,18 @@ src_install() { fi } +multilib_src_install_all() { + find "${ED}" -name '*.la' -exec rm -f {} + || die + + if use !bindist; then + dodoc docs/patents.txt + fi + + # Install config file for eselect mesa + insinto /usr/share/mesa + newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf +} + pkg_postinst() { # Switch to the xorg implementation. echo --- a/gx86/virtual/glu/glu-9.0-r1.ebuild +++ a/gx86/virtual/glu/glu-9.0-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/virtual/glu/glu-9.0.ebuild,v 1.12 2013/03/03 11:51:43 vapier Exp $ + +EAPI=5 + +inherit multilib-build + +DESCRIPTION="Virtual for OpenGL utility library" +HOMEPAGE="" +SRC_URI="" + +LICENSE="" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND=" + || ( + media-libs/glu[${MULTILIB_USEDEP}] +