diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-01-19 12:38:36 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-01-19 12:38:36 +0200 |
commit | 48811d3c9bb1d1ca34bf7903703ab11d6c28b5fd (patch) | |
tree | 34a8984f73e2820a4ce48d9fc51f313c9d5ffe79 /media-video/amdcccle/amdcccle-14.12.ebuild | |
parent | 23eb9e15e1e7cb6abf7937799e31cd951bce04bf (diff) |
Added amdcccle 14.12, for ati drivers
Diffstat (limited to 'media-video/amdcccle/amdcccle-14.12.ebuild')
-rw-r--r-- | media-video/amdcccle/amdcccle-14.12.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/media-video/amdcccle/amdcccle-14.12.ebuild b/media-video/amdcccle/amdcccle-14.12.ebuild new file mode 100644 index 00000000..ed38bae3 --- /dev/null +++ b/media-video/amdcccle/amdcccle-14.12.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils versionator + +DESCRIPTION="AMD Catalyst Control Center Linux Edition" +HOMEPAGE="http://www.amd.com" +RUN="${WORKDIR}/fglrx-14.501.1003/amd-driver-installer-14.501.1003-x86.x86_64.run" +SLOT="1" +# Uses javascript for download YESSSS +#DRIVERS_URI="http://www2.ati.com/drivers/linux/amd-catalyst-13.12-linux-x86.x86_64.zip" +DRIVERS_URI="mirror://gentoo/amd-catalyst-omega-14.12-linux-run-installers.zip" +XVBA_SDK_URI="http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz" +SRC_URI="${DRIVERS_URI} ${XVBA_SDK_URI}" +FOLDER_PREFIX="common/" +IUSE="" + +LICENSE="QPL-1.0 as-is" +KEYWORDS="~amd64 ~x86" + +RDEPEND="~x11-drivers/ati-drivers-${PV}[-qt4(-)] + ~x11-drivers/ati-userspace-${PV} + dev-qt/qtcore + dev-qt/qtgui" + +DEPEND="" +S="${WORKDIR}" + +QA_EXECSTACK="opt/bin/amdcccle" + +src_unpack() { + local DRIVERS_DISTFILE XVBA_SDK_DISTFILE + DRIVERS_DISTFILE=${DRIVERS_URI##*/} + XVBA_SDK_DISTFILE=${XVBA_SDK_URI##*/} + + if [[ ${DRIVERS_DISTFILE} =~ .*\.tar\.gz ]]; then + unpack ${DRIVERS_DISTFILE} + else + #please note, RUN may be insanely assigned at top near SRC_URI + if [[ ${DRIVERS_DISTFILE} =~ .*\.zip ]]; then + unpack ${DRIVERS_DISTFILE} + [[ -z "$RUN" ]] && RUN="${S}/${DRIVERS_DISTFILE/%.zip/.run}" + else + RUN="${DISTDIR}/${DRIVERS_DISTFILE}" + fi + sh ${RUN} --extract "${S}" 2>&1 > /dev/null || die + fi + + mkdir xvba_sdk + cd xvba_sdk + unpack ${XVBA_SDK_DISTFILE} +} + +src_compile() { + echo +} + +src_install() { + insinto /usr/share + doins -r ${FOLDER_PREFIX}usr/share/ati + insinto /usr/share/pixmaps + doins ${FOLDER_PREFIX}usr/share/icons/ccc_large.xpm + make_desktop_entry amdcccle 'ATI Catalyst Control Center' \ + ccc_large System + + use x86 && ARCH_BASE="x86" + use amd64 && ARCH_BASE="x86_64" + into /opt + dobin arch/${ARCH_BASE}/usr/X11R6/bin/amdcccle + dosbin arch/${ARCH_BASE}/usr/sbin/amdnotifyui +} |