diff --git a/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224.ebuild b/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild similarity index 54% copy from gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224.ebuild copy to gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild index 5d2764d..dfb2be7 100644 --- a/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224.ebuild +++ b/gx86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.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] ) ) 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} @@ -139,11 +141,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}" @@ -187,15 +189,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 @@ -261,7 +261,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 @@ -276,6 +276,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 \ @@ -297,18 +302,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. @@ -385,6 +380,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 diff --git a/gx86/virtual/glu/glu-9.0-r1.ebuild b/gx86/virtual/glu/glu-9.0-r1.ebuild new file mode 100644 index 0000000..ad4c2a8 --- /dev/null +++ b/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}] +