Lines 8-18
Link Here
|
8 |
|
8 |
|
9 |
DESCRIPTION="Ati precompiled drivers for recent chipsets" |
9 |
DESCRIPTION="Ati precompiled drivers for recent chipsets" |
10 |
HOMEPAGE="http://www.ati.com" |
10 |
HOMEPAGE="http://www.ati.com" |
11 |
ATI_URL="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/" |
11 |
SRC_URI="http://archive.ubuntu.com/ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_8.543.orig.tar.gz" |
12 |
SRC_URI="${ATI_URL}/ati-driver-installer-8-10-x86.x86_64.run" |
|
|
13 |
|
12 |
|
14 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
13 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
15 |
KEYWORDS="~amd64 ~x86" |
14 |
KEYWORDS="~amd64 ~x86" |
|
|
15 |
RESTRICT="mirror" |
16 |
|
16 |
|
17 |
# The portage dep is for COLON_SEPARATED support in env-update. |
17 |
# The portage dep is for COLON_SEPARATED support in env-update. |
18 |
# The eselect dep (>=1.0.9) is for COLON_SEPARATED in eselect env update. |
18 |
# The eselect dep (>=1.0.9) is for COLON_SEPARATED in eselect env update. |
Lines 61-70
Link Here
|
61 |
pkg_setup() { |
61 |
pkg_setup() { |
62 |
|
62 |
|
63 |
# Define module dir. |
63 |
# Define module dir. |
64 |
MODULE_DIR="${S}/common/lib/modules/fglrx/build_mod" |
64 |
MODULE_DIR="${S}/lib/modules/fglrx/build_mod" |
65 |
|
65 |
|
66 |
#check kernel and sets up KV_OBJ |
66 |
#check kernel and sets up KV_OBJ |
67 |
MODULE_NAMES="fglrx(video:${S}/common/lib/modules/fglrx/build_mod/2.6.x)" |
67 |
MODULE_NAMES="fglrx(video:${S}/lib/modules/fglrx/build_mod/2.6.x)" |
68 |
BUILD_TARGETS="kmod_build" |
68 |
BUILD_TARGETS="kmod_build" |
69 |
linux-mod_pkg_setup |
69 |
linux-mod_pkg_setup |
70 |
BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" |
70 |
BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" |
Lines 114-120
Link Here
|
114 |
fi |
114 |
fi |
115 |
|
115 |
|
116 |
# Only support xorg-server >=1.1 |
116 |
# Only support xorg-server >=1.1 |
117 |
BASE_DIR="${S}/x710" |
117 |
BASE_DIR="${S}/x740" |
118 |
|
118 |
|
119 |
# This is used like $(get_libdir) for paths in ati's package. |
119 |
# This is used like $(get_libdir) for paths in ati's package. |
120 |
if use amd64 ; then |
120 |
if use amd64 ; then |
Lines 128-137
Link Here
|
128 |
} |
128 |
} |
129 |
|
129 |
|
130 |
src_unpack() { |
130 |
src_unpack() { |
131 |
#Switching to a standard way to extract the files since otherwise no signature file |
131 |
unpack ${A} |
132 |
#would be created |
|
|
133 |
local src="${DISTDIR}/${A}" |
134 |
sh "${src}" --extract "${S}" 2&>1 /dev/null |
135 |
|
132 |
|
136 |
# These are the userspace utilities that we also have source for. |
133 |
# These are the userspace utilities that we also have source for. |
137 |
# We rebuild these later. |
134 |
# We rebuild these later. |
Lines 151-162
Link Here
|
151 |
sed -i \ |
148 |
sed -i \ |
152 |
-e "s:/var/lib/xdm/authdir/authfiles/:/var/run/xauth/:" \ |
149 |
-e "s:/var/lib/xdm/authdir/authfiles/:/var/run/xauth/:" \ |
153 |
-e "s:/var/lib/gdm/:/var/gdm/:" \ |
150 |
-e "s:/var/lib/gdm/:/var/gdm/:" \ |
154 |
"${S}/common/etc/ati/authatieventsd.sh" \ |
151 |
"${S}/etc/ati/authatieventsd.sh" \ |
155 |
|| die "sed failed." |
152 |
|| die "sed failed." |
156 |
|
153 |
|
157 |
# Since "who" is in coreutils, we're using that one instead of "finger". |
154 |
# Since "who" is in coreutils, we're using that one instead of "finger". |
158 |
sed -i -e 's:finger:who:' \ |
155 |
sed -i -e 's:finger:who:' \ |
159 |
"${S}/common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh" \ |
156 |
"${S}/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh" \ |
160 |
|| die "Replacing 'finger' with 'who' failed." |
157 |
|| die "Replacing 'finger' with 'who' failed." |
161 |
# Adjust paths in the script from /usr/X11R6/bin/ to /opt/bin/ and |
158 |
# Adjust paths in the script from /usr/X11R6/bin/ to /opt/bin/ and |
162 |
# add funktion to detect default state. |
159 |
# add funktion to detect default state. |
Lines 167-175
Link Here
|
167 |
ln -s "${ARCH_DIR}"/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version) \ |
164 |
ln -s "${ARCH_DIR}"/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version) \ |
168 |
|| die "symlinking precompiled core failed" |
165 |
|| die "symlinking precompiled core failed" |
169 |
|
166 |
|
170 |
if kernel_is 2 6 27; then |
167 |
#if kernel_is 2 6 27; then |
171 |
epatch "${FILESDIR}/${PV}/ati-drivers-2.6.27.patch" |
168 |
#epatch "${FILESDIR}/${PV}/ati-drivers-2.6.27.patch" |
172 |
fi |
169 |
#fi |
173 |
|
170 |
|
174 |
|
171 |
|
175 |
convert_to_m 2.6.x/Makefile || die "convert_to_m failed" |
172 |
convert_to_m 2.6.x/Makefile || die "convert_to_m failed" |
Lines 186-192
Link Here
|
186 |
|
183 |
|
187 |
mkdir extra || die "mkdir failed" |
184 |
mkdir extra || die "mkdir failed" |
188 |
cd extra |
185 |
cd extra |
189 |
unpack ./../common/usr/src/ati/fglrx_sample_source.tgz |
186 |
unpack ./../usr/src/ati/fglrx_sample_source.tgz |
190 |
sed -i -e 's:include/extensions/extutil.h:X11/extensions/extutil.h:' \ |
187 |
sed -i -e 's:include/extensions/extutil.h:X11/extensions/extutil.h:' \ |
191 |
lib/fglrx_gamma/fglrx_gamma.c || die "include fixup failed" |
188 |
lib/fglrx_gamma/fglrx_gamma.c || die "include fixup failed" |
192 |
# Add a category. |
189 |
# Add a category. |
Lines 206-212
Link Here
|
206 |
# The -DUSE_GLU is needed to compile using nvidia headers |
203 |
# The -DUSE_GLU is needed to compile using nvidia headers |
207 |
# according to a comment in ati-drivers-extra-8.33.6.ebuild. |
204 |
# according to a comment in ati-drivers-extra-8.33.6.ebuild. |
208 |
"$(tc-getCC)" -o fgl_glxgears ${CFLAGS} ${LDFLAGS} -DUSE_GLU \ |
205 |
"$(tc-getCC)" -o fgl_glxgears ${CFLAGS} ${LDFLAGS} -DUSE_GLU \ |
209 |
-I"${S}"/common/usr/include fgl_glxgears.c \ |
206 |
-I"${S}"/usr/include fgl_glxgears.c \ |
210 |
-lGL -lGLU -lX11 -lm || die "fgl_glxgears build failed" |
207 |
-lGL -lGLU -lX11 -lm || die "fgl_glxgears build failed" |
211 |
|
208 |
|
212 |
einfo "Building fglrx_gamma lib" |
209 |
einfo "Building fglrx_gamma lib" |
Lines 220-226
Link Here
|
220 |
einfo "Building fglrx_gamma util" |
217 |
einfo "Building fglrx_gamma util" |
221 |
cd "${S}"/extra/programs/fglrx_gamma |
218 |
cd "${S}"/extra/programs/fglrx_gamma |
222 |
"$(tc-getCC)" -o fglrx_xgamma ${CFLAGS} ${LDFLAGS} \ |
219 |
"$(tc-getCC)" -o fglrx_xgamma ${CFLAGS} ${LDFLAGS} \ |
223 |
-I../../../common/usr/X11R6/include -L../../lib/fglrx_gamma \ |
220 |
-I../../../usr/X11R6/include -L../../lib/fglrx_gamma \ |
224 |
fglrx_xgamma.c -lm -lfglrx_gamma -lX11 \ |
221 |
fglrx_xgamma.c -lm -lfglrx_gamma -lX11 \ |
225 |
|| die "fglrx_gamma util build failed" |
222 |
|| die "fglrx_gamma util build failed" |
226 |
|
223 |
|
Lines 308-343
Link Here
|
308 |
# etc. |
305 |
# etc. |
309 |
insinto /etc/ati |
306 |
insinto /etc/ati |
310 |
# Everything except for the authatieventsd.sh script. |
307 |
# Everything except for the authatieventsd.sh script. |
311 |
doins common/etc/ati/{logo*,control,atiogl.xml,signature,amdpcsdb.default} |
308 |
doins etc/ati/{logo*,control,atiogl.xml,signature,amdpcsdb.default} |
312 |
if use acpi; then |
309 |
if use acpi; then |
313 |
doins common/etc/ati/authatieventsd.sh |
310 |
doins etc/ati/authatieventsd.sh |
314 |
fi |
311 |
fi |
315 |
|
312 |
|
316 |
# include. |
313 |
# include. |
317 |
insinto /usr |
314 |
insinto /usr |
318 |
doins -r common/usr/include |
315 |
doins -r usr/include |
319 |
insinto /usr/include/X11/extensions |
316 |
insinto /usr/include/X11/extensions |
320 |
doins common/usr/X11R6/include/X11/extensions/fglrx_gamma.h |
317 |
doins usr/X11R6/include/X11/extensions/fglrx_gamma.h |
321 |
|
318 |
|
322 |
# Just the atigetsysteminfo.sh script. |
319 |
# Just the atigetsysteminfo.sh script. |
323 |
into /usr |
320 |
into /usr |
324 |
dosbin common/usr/sbin/* |
321 |
dosbin usr/sbin/* |
325 |
|
322 |
|
326 |
# data files for the control panel. |
323 |
# data files for the control panel. |
327 |
insinto /usr/share |
324 |
insinto /usr/share |
328 |
doins -r common/usr/share/ati |
325 |
doins -r usr/share/ati |
329 |
insinto /usr/share/pixmaps |
326 |
insinto /usr/share/pixmaps |
330 |
doins common/usr/share/icons/ccc_{large,small}.xpm |
327 |
doins usr/share/icons/ccc_{large,small}.xpm |
331 |
make_desktop_entry amdcccle 'ATI Catalyst Control Center' \ |
328 |
make_desktop_entry amdcccle 'ATI Catalyst Control Center' \ |
332 |
ccc_large System |
329 |
ccc_large System |
333 |
|
330 |
|
334 |
# doc. |
331 |
# doc. |
335 |
dohtml -r common/usr/share/doc/fglrx |
332 |
dohtml -r usr/share/doc/fglrx |
336 |
|
333 |
|
337 |
if use acpi; then |
334 |
if use acpi; then |
338 |
doman common/usr/share/man/man8/atieventsd.8 |
335 |
doman usr/share/man/man8/atieventsd.8 |
339 |
|
336 |
|
340 |
pushd common/usr/share/doc/fglrx/examples/etc/acpi >/dev/null |
337 |
pushd usr/share/doc/fglrx/examples/etc/acpi >/dev/null |
341 |
|
338 |
|
342 |
exeinto /etc/acpi |
339 |
exeinto /etc/acpi |
343 |
doexe ati-powermode.sh |
340 |
doexe ati-powermode.sh |