Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 119462
Collapse All | Expand All

(-)/usr/portage/x11-drivers/ati-drivers/ati-drivers-8.20.8.ebuild (-26 / +35 lines)
Lines 8-15 Link Here
8
8
9
DESCRIPTION="Ati precompiled drivers for r350, r300, r250 and r200 chipsets"
9
DESCRIPTION="Ati precompiled drivers for r350, r300, r250 and r200 chipsets"
10
HOMEPAGE="http://www.ati.com"
10
HOMEPAGE="http://www.ati.com"
11
SRC_URI="x86? ( mirror://gentoo/ati-driver-installer-${PV}-i386.run )
11
SRC_URI="x86? ( https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-${PV}-i386.run )
12
	 amd64? ( mirror://gentoo/ati-driver-installer-${PV}-x86_64.run )"
12
	 amd64? ( https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/64bit/ati-driver-installer-${PV}-x86_64.run )"
13
13
14
LICENSE="ATI"
14
LICENSE="ATI"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
Lines 30-58 Link Here
30
30
31
31
32
choose_driver_folder() {
32
choose_driver_folder() {
33
	#new modular X paths, 0 is a workaround.
33
        echo "X-Version: "
34
	if has_version "x11-base/xorg-server"; then
34
        echo $(get_version_component_range 1 ${X11_IMPLEM_V})
35
		BASE_NAME="${WORKDIR}/x690"
35
        #new modular X paths
36
		xlibdir="xorg"
36
        if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 8 ]
37
	else
37
        then
38
		BASE_NAME="${WORKDIR}/x$(get_version_component_range 1 ${X11_IMPLEM_V})"
38
                BASE_NAME="${WORKDIR}/x690"
39
		xlibdir=""
39
                xlibdir="xorg"
40
40
        else
41
		# Determine if we are facing X.org 6.8.99 aka 6.9
41
                BASE_NAME="${WORKDIR}/x$(get_version_component_range 1 ${X11_IMPLEM_V})"
42
		if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 6 ] &&
42
                xlibdir=""
43
		   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 8 ] &&
43
44
		   [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ]
44
                # Determine if we are facing X.org 6.8.99 aka 6.9
45
		then
45
                if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 6 ] &&
46
			BASE_NAME="${BASE_NAME}90"
46
                   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 8 ] &&
47
		else
47
                   [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ]
48
			BASE_NAME="${BASE_NAME}$(get_version_component_range 2 ${X11_IMPLEM_V})0"
48
                then
49
		fi
49
                        BASE_NAME="${BASE_NAME}90"
50
	fi
50
                else
51
51
                        BASE_NAME="${BASE_NAME}$(get_version_component_range 2 ${X11_IMPLEM_V})0"
52
	if use amd64 ; then
52
                fi
53
		BASE_NAME="${BASE_NAME}_64a"
53
        fi
54
	fi
54
        #checking for xorg-server 0.xx and 1.xx
55
}
55
        if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 0 ] ||
56
           [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 1 ]
57
        then
58
                BASE_NAME="${WORKDIR}/x690"
59
                xlibdir="xorg"
60
        fi
61
        if use amd64 ; then
62
                BASE_NAME="${BASE_NAME}_64a"
63
        fi
64
} 
56
65
57
pkg_setup(){
66
pkg_setup(){
58
	#check kernel and sets up KV_OBJ
67
	#check kernel and sets up KV_OBJ
Lines 125-131 Link Here
125
src_compile() {
134
src_compile() {
126
	einfo "Building the DRM module..."
135
	einfo "Building the DRM module..."
127
	cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
136
	cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
128
	ln -s ${BASE_NAME}/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version)
137
	ln -s ${BASE_NAME}/../arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version)
129
138
130
	if kernel_is 2 6
139
	if kernel_is 2 6
131
	then
140
	then

Return to bug 119462