diff options
-rw-r--r-- | media-libs/mesa/Manifest | 8 | ||||
-rw-r--r-- | media-libs/mesa/files/0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch | 49 | ||||
-rw-r--r-- | media-libs/mesa/files/0002-gallivm-Workaround-LLVM-PR23628.patch | 48 | ||||
-rw-r--r-- | media-libs/mesa/files/eselect-mesa.conf.9.2 | 39 | ||||
-rw-r--r-- | media-libs/mesa/files/glx_ro_text_segm.patch | 28 | ||||
-rw-r--r-- | media-libs/mesa/files/mesa-9.2-dont-require-llvm-for-r300.patch | 12 | ||||
-rw-r--r-- | media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch | 11 | ||||
-rw-r--r-- | media-libs/mesa/mesa-9999.ebuild | 463 | ||||
-rw-r--r-- | media-libs/mesa/metadata.xml | 27 | ||||
-rw-r--r-- | x11-libs/libdrm/Manifest | 3 | ||||
-rw-r--r-- | x11-libs/libdrm/libdrm-9999.ebuild | 59 | ||||
-rw-r--r-- | x11-libs/libdrm/metadata.xml | 8 |
12 files changed, 0 insertions, 755 deletions
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest deleted file mode 100644 index 16dd4ae..0000000 --- a/media-libs/mesa/Manifest +++ /dev/null @@ -1,8 +0,0 @@ -AUX 0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch 1859 SHA256 162aa15ab8a89ae81349196c5a35b41029d6a933e060da90ffd97532ce3737b1 SHA512 e734985c022b0e7e6511a05b7c37b56291c2699b3b122c3c7352f6c861f4adfffe2033aa5734c7ea481d2c57cdbc99989ab06d782bee690725d9543ec7da516c WHIRLPOOL 16943dabdd39093e0909d440250ad59905ca9dbd90f55b58a2d16bc5f815ff633b21ae330da7258dc6d10ff0981c23b65148eaedf107fb6423a6429af7df7fad -AUX 0002-gallivm-Workaround-LLVM-PR23628.patch 1324 SHA256 03f77da54b11288afb75ee05b237f2af243acfbec5952ea92ff360471dcd1d06 SHA512 d894f073b5de5be9c69082138ecd9da8bd840335e40b3c51040918380d92d0dd2faa2e9e7ab0bac076fb68a979225c50f02d94a7f146561df5efc6a61cea4b07 WHIRLPOOL ae9c6b282d05e301044b54922373ab40afd53d2c78ad14bdab8578eda152d28e640e20e8145a49ee88d2ba5b06743a228988630f217ff5d0d2929be14d8d1241 -AUX eselect-mesa.conf.9.2 1676 SHA256 bcf5f77140b4695f147d4cd3c2db4b954fb57eccfd4475c7f7c4866edda8436e SHA512 d0061359638c0d9729ba1035fd7740c84d59f538adc11af2ee671b5ddbc83c420159efbefcc39ea680f06d20507f1e1d76b528712a07baeca901a413ba7b55df WHIRLPOOL 0fc650223a1910305bb2c4b7b946ac8b83b5b1ba0b79b586a96303a369b30c9c03dc658a6e8e9a29c5c4605f3865e245be0a0e6a27c40ac37402e8a2616b3ace -AUX glx_ro_text_segm.patch 731 SHA256 e36af5b530fdbe2b0e62a035bf4bf4baef267c3dc56133d1a58e56899ebffc5c SHA512 90d04d1268cc90e1c5596b49b143895eba99d4e7f7d9bb5f699725c1308e3995edac44e3f61536c7ce70ebf5df84a5a22c18fa84fb54fbddb339f908975bb43c WHIRLPOOL 42171ef67930bebdcfdfcb0c9370234791c6125be760b6419abfff44bd65899982167d6da4d6eb4198383438e6376b4b695109af158083b903071c545160d883 -AUX mesa-9.2-dont-require-llvm-for-r300.patch 524 SHA256 7e57cb037a57c8c4ef49be93d6f53bd9f002d918bf91c77158da4a4980fbbd66 SHA512 c5b4b40636a4bab64338a0be730f10ec546ff1da31fdde83c628485a5569cc021042fdb17e2ddbc39b86ab6e72e805ed28af9a98ebed320d23084e2575d6437b WHIRLPOOL 7c896f1be7353c964247fd60f517bb100779a02f08166ca509d4b2924c3cd45aba4cc5d45f0eeb171c4ef5d105e5a93316bd24af1342510ba8bde385ea709854 -AUX mesa-9999-dont-require-llvm-for-r300.patch 547 SHA256 83cfeae33b1e8c84b37ed59c353000eb775978ae3d9035ba8ce4f63a167756fc SHA512 d1cb5a989aa001c99f353d27ab5b28ac05d60050614bbfd76ca5d312e00efcc2b1a2459d30d697b68119310c69512b4195afce6c0ed7f31fb9cf14689a740e27 WHIRLPOOL c06669942d275a9d9f132ec8f51d3ecf23d33cb89cb607ba3a7861f209f283b39a9568513b07e22f0dfcc99339a307d7b2a6b03f261ed583fd4518d3b4d0b464 -EBUILD mesa-9999.ebuild 12776 SHA256 4f476951b8a65947d76ed498ff3b7ca31be0da4067c017bcdfbede8795f8d9c9 SHA512 9709589767daa38a70ae6b217b8dc4d189178eec74602e0f219fbedab5ed5b2aefc5a5df664cfaa79521114a00125910653e57bab5537933ef4a8273742b31f0 WHIRLPOOL 3893df035aed7712d0124b6d635bc5e6bf0318837121e3193072851fec1a35757012407358b7f68e2f61a88ba4782e884457a7e43e3201c2fe15d1542f00d2c2 -MISC metadata.xml 1807 SHA256 96dab3e1a08b703b74fc7c1e80ee530970bbdbbab882cc3033e7c1cc0a1ae6e4 SHA512 893e2598b756fa4c175db3eddafa251bcebbd524b83c1b949006f2f97f653438b18677a67200d25885a4cd07f03af9edf0eb4460479f1d1a013b7d3a7bff3d01 WHIRLPOOL eb3749398a084521630b623c9f3831faa601db9f49110ebe210ad57f431be8d42033c9ff74b9f2c154de79ef074cfe424c8ae19bbf4d5140137b3374a0c61785 diff --git a/media-libs/mesa/files/0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch b/media-libs/mesa/files/0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch deleted file mode 100644 index 90717f4..0000000 --- a/media-libs/mesa/files/0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch +++ /dev/null @@ -1,49 +0,0 @@ -From b897aca66ad669fda0f6c4e7617ec51ca42823d8 Mon Sep 17 00:00:00 2001 -From: Vinson Lee <vlee@freedesktop.org> -Date: Tue, 26 May 2015 22:18:28 -0700 -Subject: [PATCH 1/2] gallivm: Do not use NoFramePointerElim with LLVM 3.7. - -TargetOptions::NoFramePointerElim was removed in llvm-3.7.0svn r238244 -"Remove NoFramePointerElim and NoFramePointerElimOverride from -TargetOptions and remove ExecutionEngine's dependence on CodeGen. NFC." - -Signed-off-by: Vinson Lee <vlee@freedesktop.org> -Reviewed-by: Tom Stellard <thomas.stellard@amd.com> ---- - src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 ++ - src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++ - 2 files changed, 4 insertions(+) - -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -index be3e834..76c302f 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -@@ -277,8 +277,10 @@ disassemble(const void* func, llvm::raw_ostream & Out) - options.StackAlignmentOverride = 4; - #endif - #if defined(DEBUG) || defined(PROFILE) -+#if HAVE_LLVM < 0x0307 - options.NoFramePointerElim = true; - #endif -+#endif - OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options)); - - /* -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -index 5e8a634..ffed9e6 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -@@ -439,8 +439,10 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, - #if HAVE_LLVM < 0x0304 - options.NoFramePointerElimNonLeaf = true; - #endif -+#if HAVE_LLVM < 0x0307 - options.NoFramePointerElim = true; - #endif -+#endif - - builder.setEngineKind(EngineKind::JIT) - .setErrorStr(&Error) --- -2.4.0 - diff --git a/media-libs/mesa/files/0002-gallivm-Workaround-LLVM-PR23628.patch b/media-libs/mesa/files/0002-gallivm-Workaround-LLVM-PR23628.patch deleted file mode 100644 index 3dc2c81..0000000 --- a/media-libs/mesa/files/0002-gallivm-Workaround-LLVM-PR23628.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 025db80a8deb2358638a18d6c777721e288fdca8 Mon Sep 17 00:00:00 2001 -From: Jose Fonseca <jfonseca@vmware.com> -Date: Thu, 28 May 2015 10:11:36 +0100 -Subject: [PATCH 2/2] gallivm: Workaround LLVM PR23628. - -Temporarily undefine DEBUG macro while including LLVM C++ headers, -leveraging the push/pop_macro pragmas, which are supported both by GCC -and MSVC. - -https://bugs.freedesktop.org/show_bug.cgi?id=90621 - -Trivial. ---- - src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -index ffed9e6..5e25819 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -@@ -50,6 +50,12 @@ - - #include <stddef.h> - -+// Workaround http://llvm.org/PR23628 -+#if HAVE_LLVM >= 0x0307 -+# pragma push_macro("DEBUG") -+# undef DEBUG -+#endif -+ - #include <llvm-c/Core.h> - #include <llvm-c/ExecutionEngine.h> - #include <llvm/Target/TargetOptions.h> -@@ -70,6 +76,11 @@ - #include <llvm/IR/Module.h> - #include <llvm/Support/CBindingWrapping.h> - -+// Workaround http://llvm.org/PR23628 -+#if HAVE_LLVM >= 0x0307 -+# pragma pop_macro("DEBUG") -+#endif -+ - #include "pipe/p_config.h" - #include "util/u_debug.h" - #include "util/u_cpu_detect.h" --- -2.4.0 - diff --git a/media-libs/mesa/files/eselect-mesa.conf.9.2 b/media-libs/mesa/files/eselect-mesa.conf.9.2 deleted file mode 100644 index ff590f5..0000000 --- a/media-libs/mesa/files/eselect-mesa.conf.9.2 +++ /dev/null @@ -1,39 +0,0 @@ -# mesa classic/gallium implementations in this release - -# Syntax description: -# * MESA_IMPLEMENTATIONS contains a space-delimited list of switchable -# classic/gallium implementations. -# * MESA_DRIVERS is an associative array, for each member "foo" of -# MESA_IMPLEMENTATIONS it contains the following elements: -# foo,description - Human-readable description of the driver -# foo,classicdriver - Filename of the classic driver -# foo,galliumdriver - Filename of the gallium driver -# foo,default - which of classic or gallium is chosen by default - -MESA_IMPLEMENTATIONS="i915 i965 r300 r600 sw" -declare -A MESA_DRIVERS || die "MESA_DRIVERS already in environment and not associative." - -MESA_DRIVERS[i915,description]="i915 (Intel 915, 945)" -MESA_DRIVERS[i915,classicdriver]="i915_dri.so" -MESA_DRIVERS[i915,galliumdriver]="i915g_dri.so" -MESA_DRIVERS[i915,default]="gallium" - -MESA_DRIVERS[i965,description]="i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)" -MESA_DRIVERS[i965,classicdriver]="i965_dri.so" -MESA_DRIVERS[i965,galliumdriver]="ilo_dri.so" -MESA_DRIVERS[i965,default]="classic" - -MESA_DRIVERS[r300,description]="r300 (Radeon R300-R500)" -MESA_DRIVERS[r300,classicdriver]="r300_dri.so" -MESA_DRIVERS[r300,galliumdriver]="r300g_dri.so" -MESA_DRIVERS[r300,default]="gallium" - -MESA_DRIVERS[r600,description]="r600 (Radeon R600-R700, Evergreen, Northern Islands)" -MESA_DRIVERS[r600,classicdriver]="r600_dri.so" -MESA_DRIVERS[r600,galliumdriver]="r600g_dri.so" -MESA_DRIVERS[r600,default]="gallium" - -MESA_DRIVERS[sw,description]="sw (Software renderer)" -MESA_DRIVERS[sw,classicdriver]="swrast_dri.so" -MESA_DRIVERS[sw,galliumdriver]="swrastg_dri.so" -MESA_DRIVERS[sw,default]="gallium" diff --git a/media-libs/mesa/files/glx_ro_text_segm.patch b/media-libs/mesa/files/glx_ro_text_segm.patch deleted file mode 100644 index 495b7dc..0000000 --- a/media-libs/mesa/files/glx_ro_text_segm.patch +++ /dev/null @@ -1,28 +0,0 @@ -2011-02-09 Jeremy Huddleston <jeremyhu@freedesktop.org - - #240956 - * configure.ac add support to enable readonly test segment on x86 - ---- configure.ac.orig 2008-11-17 23:19:38.000000000 +0100 -+++ configure.ac 2008-11-17 23:20:17.000000000 +0100 -@@ -499,6 +499,20 @@ - enable_xcb=no - fi - -+ -+dnl readonly text segment on x86 hardened platforms -+AC_ARG_ENABLE([glx_rts], -+ [AS_HELP_STRING([--enable-glx-rts], -+ [on x86, use a readonly text segment for libGL @<:@default=disabled@:>@])], -+ [enable_glx_rts="$enableval"], -+ [enable_glx_rts=no]) -+if test "x$enable_glx_rts" = xyes; then -+ DEFINES="$DEFINES -DGLX_X86_READONLY_TEXT" -+else -+ enable_glx_rts=no -+fi -+ -+ - dnl - dnl libGL configuration per driver - dnl diff --git a/media-libs/mesa/files/mesa-9.2-dont-require-llvm-for-r300.patch b/media-libs/mesa/files/mesa-9.2-dont-require-llvm-for-r300.patch deleted file mode 100644 index bd24787..0000000 --- a/media-libs/mesa/files/mesa-9.2-dont-require-llvm-for-r300.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index 21a1986..94b2247 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1777,7 +1777,6 @@ if test "x$with_gallium_drivers" != x; then - xr300) - HAVE_GALLIUM_R300=yes - PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED]) -- gallium_require_llvm "Gallium R300" - GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300" - gallium_check_st "radeon/drm" "dri-r300" "" "" "xvmc-r300" "vdpau-r300" - ;; diff --git a/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch b/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch deleted file mode 100644 index a85a3c1..0000000 --- a/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Naur a/configure.ac b/configure.ac ---- a/configure.ac 2014-03-03 04:05:33.110522943 +0100 -+++ b/configure.ac 2014-03-03 04:06:44.165518094 +0100 -@@ -1774,7 +1774,6 @@ - HAVE_GALLIUM_R300=yes - PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED]) - gallium_require_drm_loader -- gallium_require_llvm "Gallium R300" - GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300" - gallium_check_st "radeon/drm" "r300/dri" "" "" "" - DRICOMMON_NEED_LIBDRM=yes diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild deleted file mode 100644 index a3be1aa..0000000 --- a/media-libs/mesa/mesa-9999.ebuild +++ /dev/null @@ -1,463 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -#EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" -EGIT_REPO_URI="git://people.freedesktop.org/~agd5f/mesa" -EGIT_BRANCH="amdgpu" - -if [[ ${PV} = 9999* ]]; then - GIT_ECLASS="git-r3" - EXPERIMENTAL="true" -fi - -PYTHON_COMPAT=( python{2_6,2_7} ) - -inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS} - -OPENGL_DIR="xorg-x11" - -MY_P="${P/_/-}" -FOLDER="${PV/_rc*/}" - -DESCRIPTION="OpenGL-like graphic library for Linux" -HOMEPAGE="http://mesa3d.sourceforge.net/" - -if [[ $PV == 9999* ]]; then - SRC_URI="" -else - SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_P}.tar.xz" -fi - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" -RESTRICT="!bindist? ( bindist )" - -INTEL_CARDS="i915 i965 ilo intel" -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vmware" -for card in ${VIDEO_CARDS}; do - IUSE_VIDEO_CARDS+=" video_cards_${card}" -done - -IUSE="${IUSE_VIDEO_CARDS} - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm - +nptl opencl osmesa pax_kernel openmax pic selinux +udev vaapi vdpau - wayland xvmc xa kernel_FreeBSD" - -REQUIRED_USE=" - d3d9? ( dri3 gallium ) - llvm? ( gallium ) - opencl? ( gallium llvm ) - openmax? ( gallium ) - gles1? ( egl ) - gles2? ( egl ) - vaapi? ( gallium ) - vdpau? ( gallium ) - wayland? ( egl gbm ) - xa? ( gallium ) - video_cards_freedreno? ( gallium ) - video_cards_intel? ( classic ) - video_cards_i915? ( || ( classic gallium ) ) - video_cards_i965? ( classic ) - video_cards_ilo? ( gallium ) - video_cards_nouveau? ( || ( classic gallium ) ) - video_cards_radeon? ( || ( classic gallium ) ) - video_cards_r100? ( classic ) - video_cards_r200? ( classic ) - video_cards_r300? ( gallium ) - video_cards_r600? ( gallium ) - video_cards_radeonsi? ( gallium llvm ) - video_cards_vmware? ( gallium ) - ${PYTHON_REQUIRED_USE} -" - -# video_cards_amdgpu? ( gallium llvm ) - -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.60" -# keep correct libdrm and dri2proto dep -# keep blocks in rdepend for binpkg -RDEPEND=" - !<x11-base/xorg-server-1.7 - !<=x11-proto/xf86driproto-2.0.3 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] ) - classic? ( app-eselect/eselect-mesa ) - gallium? ( app-eselect/eselect-mesa ) - >=app-eselect/eselect-opengl-1.3.0 - udev? ( kernel_linux? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) ) - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] - gbm? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) - dri3? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}] - x11-libs/libXfixes:=[${MULTILIB_USEDEP}] - llvm? ( - video_cards_radeonsi? ( || ( - >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] - >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] - ) ) - !video_cards_r600? ( - video_cards_radeon? ( || ( - >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] - >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] - ) ) - ) - >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] - ) - opencl? ( - app-eselect/eselect-opencl - dev-libs/libclc - || ( - >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] - >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] - ) - ) - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] ) - vaapi? ( >=x11-libs/libva-0.35.0:=[${MULTILIB_USEDEP}] ) - vdpau? ( >=x11-libs/libvdpau-0.7:=[${MULTILIB_USEDEP}] ) - wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] ) - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] -" -for card in ${INTEL_CARDS}; do - RDEPEND="${RDEPEND} - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) - " -done - -for card in ${RADEON_CARDS}; do - RDEPEND="${RDEPEND} - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) - " -done - -DEPEND="${RDEPEND} - llvm? ( - video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) - ) - opencl? ( - >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] - >=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}] - >=sys-devel/gcc-4.6 - ) - sys-devel/gettext - virtual/pkgconfig - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}] - dri3? ( - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}] - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}] - ) - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}] - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}] - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}] - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}] -" -[[ ${PV} == "9999" ]] && DEPEND+=" - sys-devel/bison - sys-devel/flex - ${PYTHON_DEPS} - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]") -" - -S="${WORKDIR}/${MY_P}" -EGIT_CHECKOUT_DIR=${S} - -# It is slow without texrels, if someone wants slow -# mesa without texrels +pic use is worth the shot -QA_EXECSTACK="usr/lib*/libGL.so*" -QA_WX_LOAD="usr/lib*/libGL.so*" - -pkg_setup() { - # warning message for bug 459306 - if use llvm && has_version sys-devel/llvm[!debug=]; then - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" - ewarn "detected! This can cause problems. For details, see bug 459306." - fi - - python-any-r1_pkg_setup -} - -src_prepare() { - # fix for hardened pax_kernel, bug 240956 - [[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch -# epatch "${FILESDIR}"/0001-gallivm-Do-not-use-NoFramePointerElim-with-LLVM-3.7.patch -# epatch "${FILESDIR}"/0002-gallivm-Workaround-LLVM-PR23628.patch - - eautoreconf -} - -multilib_src_configure() { - local myconf - - if use classic; then - # Configurable DRI drivers - driver_enable swrast - - # Intel code - driver_enable video_cards_i915 i915 - driver_enable video_cards_i965 i965 - if ! use video_cards_i915 && \ - ! use video_cards_i965; then - driver_enable video_cards_intel i915 i965 - fi - - # Nouveau code - driver_enable video_cards_nouveau nouveau - - # ATI code - driver_enable video_cards_r100 radeon - driver_enable video_cards_r200 r200 - if ! use video_cards_r100 && \ - ! use video_cards_r200; then - driver_enable video_cards_radeon radeon r200 - fi - fi - - if use egl; then - myconf+="--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") " - fi - - if use gallium; then - myconf+=" - $(use_enable d3d9 nine) - $(use_enable llvm gallium-llvm) - $(use_enable openmax omx) - $(use_enable vaapi va) - $(use_enable vdpau) - $(use_enable xa) - $(use_enable xvmc) - " - gallium_enable swrast - gallium_enable video_cards_vmware svga - gallium_enable video_cards_nouveau nouveau - gallium_enable video_cards_i915 i915 - gallium_enable video_cards_ilo ilo - if ! use video_cards_i915 && \ - ! use video_cards_i965; then - gallium_enable video_cards_intel i915 - fi - - gallium_enable video_cards_r300 r300 - gallium_enable video_cards_r600 r600 - gallium_enable video_cards_radeonsi radeonsi -# gallium_enable video_cards_amdgpu amdgpu - if ! use video_cards_r300 && \ - ! use video_cards_r600; then - gallium_enable video_cards_radeon r300 r600 - fi - - gallium_enable video_cards_freedreno freedreno - # opencl stuff - if use opencl; then - myconf+=" - $(use_enable opencl) - --with-clang-libdir="${EPREFIX}/usr/lib" - " - fi - fi - - # x86 hardened pax_kernel needs glx-rts, bug 240956 - if use pax_kernel; then - myconf+=" - $(use_enable x86 glx-rts) - " - fi - - # on abi_x86_32 hardened we need to have asm disable - if [[ ${ABI} == x86* ]] && use pic; then - myconf+=" --disable-asm" - fi - - # build fails with BSD indent, bug #428112 - use userland_GNU || export INDENT=cat - - ECONF_SOURCE="${S}" \ - econf \ - --enable-dri \ - --enable-glx \ - --enable-shared-glapi \ - --disable-shader-cache \ - $(use_enable !bindist texture-float) \ - $(use_enable d3d9 nine) \ - $(use_enable debug) \ - $(use_enable dri3) \ - $(use_enable egl) \ - $(use_enable gbm) \ - $(use_enable gles1) \ - $(use_enable gles2) \ - $(use_enable nptl glx-tls) \ - $(use_enable osmesa) \ - $(use_enable !udev sysfs) \ - --enable-llvm-shared-libs \ - --with-dri-drivers=${DRI_DRIVERS} \ - --with-gallium-drivers=${GALLIUM_DRIVERS} \ - PYTHON2="${PYTHON}" \ - ${myconf} -} - -multilib_src_install() { - emake install DESTDIR="${D}" - - if use classic || use gallium; then - ebegin "Moving DRI/Gallium drivers for dynamic switching" - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so ) - keepdir /usr/$(get_libdir)/dri - dodir /usr/$(get_libdir)/mesa - for x in ${gallium_drivers[@]}; do - if [ -f "$(get_libdir)/gallium/${x}" ]; then - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \ - || die "Failed to move ${x}" - fi - done - if use classic; then - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install - fi - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do - if [ -f ${x} -o -L ${x} ]; then - mv -f "${x}" "${x/dri/mesa}" \ - || die "Failed to move ${x}" - fi - done - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed" - ln -s ../mesa/*.so . || die "Creating symlink failed" - # remove symlinks to drivers known to eselect - for x in ${gallium_drivers[@]}; do - if [ -f ${x} -o -L ${x} ]; then - rm "${x}" || die "Failed to remove ${x}" - fi - done - popd - eend $? - fi - if use opencl; then - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching" - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa" - dodir ${cl_dir}/{lib,include} - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \ - "${ED}"${cl_dir} - fi - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then - mv -f "${ED}"/usr/include/CL \ - "${ED}"${cl_dir}/include - fi - eend $? - fi - - if use openmax; then - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx" - doenvd "${T}"/99mesaxdgomx - keepdir /usr/share/mesa/xdg - fi -} - -multilib_src_install_all() { - prune_libtool_files --all - einstalldocs - - 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_test() { - if use llvm; then - local llvm_tests='lp_test_arit lp_test_arit lp_test_blend lp_test_blend lp_test_conv lp_test_conv lp_test_format lp_test_format lp_test_printf lp_test_printf' - pushd src/gallium/drivers/llvmpipe >/dev/null || die - emake ${llvm_tests} - pax-mark m ${llvm_tests} - popd >/dev/null || die - fi - emake check -} - -pkg_postinst() { - # Switch to the xorg implementation. - echo - eselect opengl set --use-old ${OPENGL_DIR} - - # Select classic/gallium drivers - if use classic || use gallium; then - eselect mesa set --auto - fi - - # Switch to mesa opencl - if use opencl; then - eselect opencl set --use-old ${PN} - fi - - # run omxregister-bellagio to make the OpenMAX drivers known system-wide - if use openmax; then - ebegin "Registering OpenMAX drivers" - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \ - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \ - omxregister-bellagio - eend $? - fi - - # warn about patent encumbered texture-float - if use !bindist; then - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" - elog "enabled. Please see patents.txt for an explanation." - fi - - if ! has_version media-libs/libtxc_dxtn; then - elog "Note that in order to have full S3TC support, it is necessary to install" - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice" - elog "textures in some apps, and some others even require this to run." - fi -} - -pkg_prerm() { - if use openmax; then - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister - fi -} - -# $1 - VIDEO_CARDS flag -# other args - names of DRI drivers to enable -# TODO: avoid code duplication for a more elegant implementation -driver_enable() { - case $# in - # for enabling unconditionally - 1) - DRI_DRIVERS+=",$1" - ;; - *) - if use $1; then - shift - for i in $@; do - DRI_DRIVERS+=",${i}" - done - fi - ;; - esac -} - -gallium_enable() { - case $# in - # for enabling unconditionally - 1) - GALLIUM_DRIVERS+=",$1" - ;; - *) - if use $1; then - shift - for i in $@; do - GALLIUM_DRIVERS+=",${i}" - done - fi - ;; - esac -} diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml deleted file mode 100644 index ec5c3b6..0000000 --- a/media-libs/mesa/metadata.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>x11</herd> -<use> - <flag name='bindist'>Disable patent-encumbered ARB_texture_float, EXT_texture_shared_exponent, and EXT_packed_float extensions.</flag> - <flag name='classic'>Build drivers based on the classic architecture.</flag> - <flag name='d3d9'>Enable Direct 3D9 API through Nine state tracker. Can be used together with patched wine.</flag> - <flag name='dri3'>Enable DRI3 support.</flag> - <flag name='egl'>Enable EGL support.</flag> - <flag name='gallium'>Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.</flag> - <flag name='gbm'>Enable the Graphics Buffer Manager for EGL on KMS.</flag> - <flag name='gles1'>Enable GLESv1 support.</flag> - <flag name='gles2'>Enable GLESv2 support.</flag> - <flag name='llvm'>Enable LLVM backend for Gallium3D.</flag> - <flag name='opencl'>Enable the Clover Gallium OpenCL state tracker.</flag> - <flag name='openmax'>Enable OpenMAX video decode/encode acceleration for Gallium3D.</flag> - <flag name='osmesa'>Build the Mesa library for off-screen rendering.</flag> - <flag name='pax_kernel'>Enable if the user plans to run the package under a pax enabled hardened kernel</flag> - <flag name='pic'>disable optimized assembly code that is not PIC friendly</flag> - <flag name='vaapi'>Enable the VAAPI acceleration interface for the Gallium3D Video Layer.</flag> - <flag name='vdpau'>Enable the VDPAU acceleration interface for the Gallium3D Video Layer.</flag> - <flag name='wayland'>Enable support for dev-libs/wayland</flag> - <flag name='xa'>Enable the XA (X Acceleration) API for Gallium3D.</flag> - <flag name='xvmc'>Enable the XvMC acceleration interface for the Gallium3D Video Layer.</flag> -</use> -</pkgmetadata> diff --git a/x11-libs/libdrm/Manifest b/x11-libs/libdrm/Manifest deleted file mode 100644 index 3d7e55a..0000000 --- a/x11-libs/libdrm/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -EBUILD libdrm-9999-r1.ebuild 1668 SHA256 a5405c0050d4b7c6e8f886d4e4b7aa8eaa27e62497e4cb64c6217fe5b8a4d79e SHA512 7bd5fc0ae41c25d9b54a993e7f5660fded4eb6d518be55971f90bcf547af496a7bc43a0fa6ff46c9c3f6842ee86d53a19e8200ad51aab526cbd4be4bb6de35d8 WHIRLPOOL 25a50ba4f2630b8dcde8faf310ab79a743ab37103608ac3458c537f5277484d77127ab65f5afd92624e8d993cd1bea086a464eb5add2865256f06dddfad97f28 -EBUILD libdrm-9999.ebuild 1811 SHA256 2d592dd3467cdc21979b014652d25c19a3095a109a6a3a722da34b3b2b2ed68f SHA512 6f55f2a709d95d6e0a7a9ccf59ec0fd4aa0a8ae64ab5cb87b4953b7651242e9706f6903aeeda2b7873d756ab4026fadb8d6b8c95b14b6608ad20f27bb1a76287 WHIRLPOOL 7237c9f7ce8d642158baf5f72a121ad10b40ecf5a90f1173449d979711b1b37901aeaa30062ee2d88f199fc65933e76f0b250df82d0c158184061cb8ce735041 -MISC metadata.xml 272 SHA256 4c3835edbf1b73ec8a30de26d7db38631dd1ef7782ca160ff8dfe64a767bb771 SHA512 c08dfcd90f1451c0cd9251b91833e8742e723043c2e6632eaab523d61745d0173502ae792225522053671df98aeaf2229783bfd5fe202bf29a166857fe0d8fd1 WHIRLPOOL f3d828a14266066ab3dd5c2970165bf9d1cf3d1c9fffd8d691344c7cc1b8ef011957d66f64b0c328afa64b92d1e154dec619f8f3bd0789edc36be07d33c74900 diff --git a/x11-libs/libdrm/libdrm-9999.ebuild b/x11-libs/libdrm/libdrm-9999.ebuild deleted file mode 100644 index f4efabf..0000000 --- a/x11-libs/libdrm/libdrm-9999.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -XORG_MULTILIB=yes -inherit xorg-2 - -DESCRIPTION="X.Org libdrm library" -HOMEPAGE="http://dri.freedesktop.org/" -if [[ ${PV} = 9999* ]]; then - #EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm" - EGIT_REPO_URI="git://people.freedesktop.org/~agd5f/drm" - EGIT_BRANCH="amdgpu" -else - SRC_URI="http://dri.freedesktop.org/${PN}/${P}.tar.bz2" -fi - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" -VIDEO_CARDS="exynos freedreno intel nouveau omap radeon tegra vmware" -for card in ${VIDEO_CARDS}; do - IUSE_VIDEO_CARDS+=" video_cards_${card}" -done - -IUSE="${IUSE_VIDEO_CARDS} libkms" -RESTRICT="test" # see bug #236845 - -RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}] - video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] ) - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )" -DEPEND="${RDEPEND}" - -PATCHES=( -) - -src_prepare() { - if [[ ${PV} = 9999* ]]; then - # tests are restricted, no point in building them - sed -ie 's/tests //' "${S}"/Makefile.am - fi - xorg-2_src_prepare -} - -src_configure() { - XORG_CONFIGURE_OPTIONS=( - --enable-udev - $(use_enable video_cards_exynos exynos-experimental-api) - $(use_enable video_cards_freedreno freedreno) - $(use_enable video_cards_intel intel) - $(use_enable video_cards_nouveau nouveau) - $(use_enable video_cards_omap omap-experimental-api) - $(use_enable video_cards_radeon radeon) - $(use_enable video_cards_tegra tegra-experimental-api) - $(use_enable video_cards_vmware vmwgfx) - $(use_enable libkms) - ) - xorg-2_src_configure -} diff --git a/x11-libs/libdrm/metadata.xml b/x11-libs/libdrm/metadata.xml deleted file mode 100644 index c64af1c..0000000 --- a/x11-libs/libdrm/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>x11</herd> -<use> -<flag name='libkms'>Enable building of libkms, a library for applications to interface with KMS</flag> -</use> -</pkgmetadata> |