summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2007-11-25 22:16:50 +0000
committerJory Pratt <anarchy@gentoo.org>2007-11-25 22:16:50 +0000
commita17314cc7b6438d10b6616e106cf21a8aea488ee (patch)
treedc12f1bfd71cca54ee76091a9195bd2a6bc90c5b /x11-drivers/ati-drivers/ati-drivers-8.433.ebuild
parentadd debug use flag for testing (diff)
downloadje_fro-a17314cc7b6438d10b6616e106cf21a8aea488ee.tar.gz
je_fro-a17314cc7b6438d10b6616e106cf21a8aea488ee.tar.bz2
je_fro-a17314cc7b6438d10b6616e106cf21a8aea488ee.zip
fixed misc issues
svn path=/; revision=124
Diffstat (limited to 'x11-drivers/ati-drivers/ati-drivers-8.433.ebuild')
-rw-r--r--x11-drivers/ati-drivers/ati-drivers-8.433.ebuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/x11-drivers/ati-drivers/ati-drivers-8.433.ebuild b/x11-drivers/ati-drivers/ati-drivers-8.433.ebuild
index 9b90e22..8b99e9e 100644
--- a/x11-drivers/ati-drivers/ati-drivers-8.433.ebuild
+++ b/x11-drivers/ati-drivers/ati-drivers-8.433.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-IUSE="acpi multilib debug"
+IUSE="acpi debug"
inherit eutils multilib linux-mod toolchain-funcs versionator
@@ -21,11 +21,11 @@ RDEPEND="x11-base/xorg-server
>=app-admin/eselect-1.0.9
app-admin/eselect-opengl
=virtual/libstdc++-3.3*
- amd64? ( multilib? ( app-emulation/emul-linux-x86-compat ) )
acpi? (
x11-apps/xauth
sys-power/acpid
)
+ x11-libs/libXrandr
>=sys-apps/portage-2.1.1-r1"
DEPEND="${RDEPEND}
@@ -44,12 +44,15 @@ QA_EXECSTACK_amd64="usr/lib64/dri/fglrx_dri.so
opt/bin/amdcccle"
QA_TEXTRELS_x86="usr/lib/dri/fglrx_dri.so
usr/lib/xorg/modules/drivers/fglrx_drv.so
- usr/lib/opengl/ati/lib/libGL.so.1.2"
+ usr/lib/opengl/ati/lib/libGL.so.1.2
+ usr/lib/xorg/modules/glesx.so"
QA_TEXTRELS_amd64="
usr/lib64/opengl/ati/lib/libGL.so.1.2
usr/lib32/opengl/ati/lib/libGL.so.1.2
usr/lib64/dri/fglrx_dri.so
- usr/lib32/dri/fglrx_dri.so"
+ usr/lib32/dri/fglrx_dri.so
+ usr/lib32/xorg/modules/glesx.so
+ usr/lib64/xorg/modules/glesx.so"
S="${WORKDIR}"
@@ -123,9 +126,6 @@ pkg_setup() {
src_unpack() {
local src="${DISTDIR}/${A}"
- # This is apparently a nonstandard makeself archive, so extract
- # the offset by hand.
- local offset=$(grep -am1 SKIP "${src}" | sed -e 's/SKIP="\([0-9]\+\)"/\1/')
#Switching to a standard way to extract the files since otherwise no signature file
#would be created
@@ -154,6 +154,8 @@ src_unpack() {
# Adjust paths in the script from /usr/X11R6/bin/ to /opt/bin/
epatch "${FILESDIR}"/ati-powermode-opt-path.patch
+ sed -i -e 's:finger:who:' "${S}/common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh" \
+ || die "Replacing 'finger' with 'who' failed."
fi
pushd common/lib/modules/fglrx/build_mod >/dev/null
@@ -172,6 +174,13 @@ src_unpack() {
|| die "MODVERSIONS sed failed"
popd >/dev/null
+ # Enable suspend support on smp with 2.6.23
+ if kernel_is ge 2 6 23; then
+ sed -i 's:CONFIG_SUSPEND_SMP:CONFIG_PM_SLEEP_SMP:' \
+ "${S}/common/lib/modules/fglrx/build_mod/firegl_public.h" \
+ || die "Fixing suspend for kernel 2.6.23 failed."
+ fi
+
mkdir extra || die "mkdir failed"
cd extra
unpack ./../common/usr/src/ati/fglrx_sample_source.tgz