Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 139458 | Differences between
and this patch

Collapse All | Expand All

(-)ati-drivers-8.27.10.ebuild (-14 / +21 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-8.27.10.ebuild,v 1.1 2006/08/01 22:44:42 lu_zero Exp $
3
# $Header: $
4
4
5
IUSE="acpi doc opengl"
5
IUSE="acpi doc opengl"
6
6
Lines 16-25 Link Here
16
KEYWORDS="-* ~amd64 ~x86"
16
KEYWORDS="-* ~amd64 ~x86"
17
17
18
RDEPEND="|| ( x11-base/xorg-server virtual/x11 )
18
RDEPEND="|| ( x11-base/xorg-server virtual/x11 )
19
	 || ( x11-apps/xauth virtual/x11 )
20
	 app-admin/eselect-opengl
19
	 app-admin/eselect-opengl
21
	 || ( sys-libs/libstdc++-v3 =sys-devel/gcc-3.3* )
20
	 || ( sys-libs/libstdc++-v3 =sys-devel/gcc-3.3* )
22
	 acpi? ( sys-power/acpid )"
21
	 acpi? (
22
	 	|| ( x11-apps/xauth virtual/x11 )
23
	 	sys-power/acpid 
24
	 )"
23
25
24
DEPEND=">=virtual/linux-sources-2.4
26
DEPEND=">=virtual/linux-sources-2.4
25
	${RDEPEND}"
27
	${RDEPEND}"
Lines 45-51 Link Here
45
		if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 1 ] &&
47
		if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 1 ] &&
46
		   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 0 ] &&
48
		   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 0 ] &&
47
		   [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ] ||
49
		   [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ] ||
48
		   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" -gt 0 ]
50
		   [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" != 0 ]
49
		then
51
		then
50
			BASE_DIR="${WORKDIR}/x710"
52
			BASE_DIR="${WORKDIR}/x710"
51
		else
53
		else
Lines 114-119 Link Here
114
	# Set up X11 implementation
116
	# Set up X11 implementation
115
	if has_version "x11-base/xorg-server"; then
117
	if has_version "x11-base/xorg-server"; then
116
		X11_IMPLEM=xorg-x11
118
		X11_IMPLEM=xorg-x11
119
		X11_IMPLEM_V="$(best_version x11-base/xorg-server)"
120
		X11_IMPLEM_V="${X11_IMPLEM_V/x11-base\/xorg-server-/}"
117
	elif has_version "<x11-base/xorg-x11-6.8.99"; then
121
	elif has_version "<x11-base/xorg-x11-6.8.99"; then
118
		X11_IMPLEM=xorg-x11
122
		X11_IMPLEM=xorg-x11
119
		X11_IMPLEM_V="$(best_version x11-base/xorg-x11)"
123
		X11_IMPLEM_V="$(best_version x11-base/xorg-x11)"
Lines 139-151 Link Here
139
143
140
	rm -rf ${ARCH_DIR}/usr/X11R6/bin/{fgl_glxgears,fireglcontrolpanel}
144
	rm -rf ${ARCH_DIR}/usr/X11R6/bin/{fgl_glxgears,fireglcontrolpanel}
141
145
142
	cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
143
144
	#if kernel_is ge 2 6 16; then
145
	#	epatch ${FILESDIR}/${PN}-8.22.5-intermodule.patch
146
	#	epatch ${FILESDIR}/${PN}-8.23.7-noiommu.patch
147
	#	epatch ${FILESDIR}/${PN}-8.23.7-gcc41.patch
148
	#fi
149
	if use acpi
146
	if use acpi
150
	then
147
	then
151
		sed -i \
148
		sed -i \
Lines 154-159 Link Here
154
		-e "s/#ffff#/#ffff##:.*MIT-MAGIC-COOKIE/" \
151
		-e "s/#ffff#/#ffff##:.*MIT-MAGIC-COOKIE/" \
155
		"${WORKDIR}/common/etc/ati/authatieventsd.sh" \
152
		"${WORKDIR}/common/etc/ati/authatieventsd.sh" \
156
			|| die "sed failed."
153
			|| die "sed failed."
154
155
		cd ${WORKDIR}
156
		epatch ${FILESDIR}/ati-powermode.sh.patch
157
	fi
157
	fi
158
}
158
}
159
159
Lines 238-245 Link Here
238
		doexe ${ARCH_DIR}/usr/sbin/*
238
		doexe ${ARCH_DIR}/usr/sbin/*
239
		insinto /opt/ati/man/man8
239
		insinto /opt/ati/man/man8
240
		doins common/usr/share/man/man8/*
240
		doins common/usr/share/man/man8/*
241
		cp ${FILESDIR}/atieventsd.rc6 ${T}/atieventsd
241
		newinitd ${FILESDIR}/atieventsd.rc6 atieventsd
242
		doinitd ${T}/atieventsd
243
		dodir /etc/conf.d
242
		dodir /etc/conf.d
244
		echo 'ATIEVENTSDOPTS=""' > ${D}/etc/conf.d/atieventsd
243
		echo 'ATIEVENTSDOPTS=""' > ${D}/etc/conf.d/atieventsd
245
	fi
244
	fi
Lines 354-361 Link Here
354
	insinto ${X11_DIR}/include/X11/extensions
353
	insinto ${X11_DIR}/include/X11/extensions
355
	doins ${COMMON_DIR}/usr/X11R6/include/X11/extensions/fglrx_gamma.h
354
	doins ${COMMON_DIR}/usr/X11R6/include/X11/extensions/fglrx_gamma.h
356
355
356
	# misc ati configuration files for /etc
357
	dodir /etc
357
	dodir /etc
358
	cp -pPR ${COMMON_DIR}/etc/* ${D}/etc/
358
	cp -pP ${COMMON_DIR}/etc/fglrxprofiles.csv ${D}/etc/
359
	cp -pP ${COMMON_DIR}/etc/fglrxrc ${D}/etc/
360
	dodir /etc/ati
361
	cp -pP ${COMMON_DIR}/etc/ati/logo* ${D}/etc/ati/
362
	if use acpi
363
	then
364
		cp -pP ${COMMON_DIR}/etc/ati/authatieventsd.sh ${D}/etc/ati/
365
	fi
359
}
366
}
360
367
361
368

Return to bug 139458