| # Copyright 1999-2013 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.4.50.ebuild,v 1.1 2013/12/04 12:08:51 chithanh Exp $ |
| |
| EAPI=4 |
| inherit xorg-2 |
| |
| EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm" |
| |
| DESCRIPTION="X.Org libdrm library" |
| HOMEPAGE="http://dri.freedesktop.org/" |
| if [[ ${PV} = 9999* ]]; then |
| SRC_URI="" |
| else |
| SRC_URI="http://dri.freedesktop.org/${PN}/${P}.tar.bz2" |
| fi |
| |
| # This package uses the MIT license inherited from Xorg but fails to provide |
| # any license file in its source, so we add X as a license, which lists all |
| # the Xorg copyright holders and allows license generation to pick them up. |
| LICENSE="|| ( MIT X )" |
| KEYWORDS="*" |
| VIDEO_CARDS="amdgpu exynos freedreno intel mediatek nouveau omap radeon vmware rockchip" |
| for card in ${VIDEO_CARDS}; do |
| IUSE_VIDEO_CARDS+=" video_cards_${card}" |
| done |
| |
| IUSE="${IUSE_VIDEO_CARDS} libkms manpages +udev" |
| REQUIRED_USE="video_cards_exynos? ( libkms ) |
| video_cards_mediatek? ( libkms ) |
| video_cards_rockchip? ( libkms )" |
| RESTRICT="test" # see bug #236845 |
| RESTRICT="${RESTRICT} nomirror" #libdrm-2.4.61 not yet available on the Google mirror |
| |
| RDEPEND="dev-libs/libpthread-stubs |
| udev? ( virtual/udev ) |
| video_cards_intel? ( >=x11-libs/libpciaccess-0.10 ) |
| !<x11-libs/libdrm-tests-2.4.58-r3 |
| " |
| |
| DEPEND="${RDEPEND}" |
| |
| XORG_EAUTORECONF=yes |
| PATCHES=( |
| "${FILESDIR}"/0001-tests-install-test-programs.patch |
| "${FILESDIR}"/drm_rockchip-0001-add-support-for-rockchip.patch |
| "${FILESDIR}"/drm_mediatek-0001-add-support-for-mediatek.patch |
| "${FILESDIR}"/drm_mediatek-0002-tests-add-mediatek-to-modetest-kmstest-vbltest-and-p.patch |
| "${FILESDIR}"/drm_mediatek-0003-Add-Mediatek-proprietary-formats.patch |
| "${FILESDIR}"/drm_vgem-0001-add-vgem-ioctl-macro-definitions.patch |
| ) |
| |
| src_prepare() { |
| xorg-2_src_prepare |
| } |
| |
| src_configure() { |
| XORG_CONFIGURE_OPTIONS=( |
| --enable-install-test-programs |
| $(use_enable video_cards_amdgpu amdgpu) |
| $(use_enable video_cards_exynos exynos-experimental-api) |
| $(use_enable video_cards_freedreno freedreno) |
| $(use_enable video_cards_intel intel) |
| $(use_enable video_cards_mediatek mediatek-experimental-api) |
| $(use_enable video_cards_nouveau nouveau) |
| $(use_enable video_cards_omap omap-experimental-api) |
| $(use_enable video_cards_radeon radeon) |
| $(use_enable video_cards_vmware vmwgfx) |
| $(use_enable video_cards_rockchip rockchip-experimental-api) |
| $(use_enable libkms) |
| $(use_enable manpages) |
| $(use_enable udev) |
| --disable-cairo-tests |
| ) |
| xorg-2_src_configure |
| } |