|
Lines 2-8
Link Here
|
| 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.37.6-r1.ebuild,v 1.2 2007/06/17 14:02:12 marienz Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-8.37.6-r1.ebuild,v 1.2 2007/06/17 14:02:12 marienz Exp $ |
| 4 |
|
4 |
|
| 5 |
IUSE="acpi qt3 multilib" |
5 |
IUSE="acpi multilib" |
| 6 |
|
6 |
|
| 7 |
inherit eutils multilib linux-mod toolchain-funcs versionator |
7 |
inherit eutils multilib linux-mod toolchain-funcs versionator |
| 8 |
|
8 |
|
|
Lines 11-17
Link Here
|
| 11 |
ATI_URL="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/" |
11 |
ATI_URL="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/" |
| 12 |
SRC_URI="${ATI_URL}/ati-driver-installer-${PV}-x86.x86_64.run" |
12 |
SRC_URI="${ATI_URL}/ati-driver-installer-${PV}-x86.x86_64.run" |
| 13 |
|
13 |
|
| 14 |
LICENSE="ATI GPL-2 QPL-1.0" |
14 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
| 15 |
KEYWORDS="~amd64 ~x86" |
15 |
KEYWORDS="~amd64 ~x86" |
| 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. |
|
Lines 26-32
Link Here
|
| 26 |
x11-apps/xauth |
26 |
x11-apps/xauth |
| 27 |
sys-power/acpid |
27 |
sys-power/acpid |
| 28 |
) |
28 |
) |
| 29 |
qt3? ( =x11-libs/qt-3* ) |
|
|
| 30 |
>=sys-apps/portage-2.1.1-r1" |
29 |
>=sys-apps/portage-2.1.1-r1" |
| 31 |
|
30 |
|
| 32 |
DEPEND="${RDEPEND} |
31 |
DEPEND="${RDEPEND} |
|
Lines 95-106
Link Here
|
| 95 |
die "CONFIG_PARAVIRT enabled" |
94 |
die "CONFIG_PARAVIRT enabled" |
| 96 |
fi |
95 |
fi |
| 97 |
|
96 |
|
| 98 |
# xorg-server 1.1 and its prereleases correspond to xorg 7.1. |
97 |
BASE_DIR="${S}/x710" |
| 99 |
if has_version ">=x11-base/xorg-server-1.0.99"; then |
|
|
| 100 |
BASE_DIR="${S}/x710" |
| 101 |
else |
| 102 |
BASE_DIR="${S}/x690" |
| 103 |
fi |
| 104 |
|
98 |
|
| 105 |
if use amd64 ; then |
99 |
if use amd64 ; then |
| 106 |
BASE_DIR="${BASE_DIR}_64a" |
100 |
BASE_DIR="${BASE_DIR}_64a" |
|
Lines 123-129
Link Here
|
| 123 |
|
117 |
|
| 124 |
gunzip common/usr/share/man/man8/atieventsd.8 || die "manpage unzip failed" |
118 |
gunzip common/usr/share/man/man8/atieventsd.8 || die "manpage unzip failed" |
| 125 |
# These are the userspace utilities that we also have source for. |
119 |
# These are the userspace utilities that we also have source for. |
| 126 |
# We rebuild those in ati-drivers-extra. |
120 |
# We rebuild those later. |
| 127 |
rm \ |
121 |
rm \ |
| 128 |
"${ARCH_DIR}"/usr/X11R6/bin/{fgl_glxgears,fglrx_xgamma} \ |
122 |
"${ARCH_DIR}"/usr/X11R6/bin/{fgl_glxgears,fglrx_xgamma} \ |
| 129 |
"${ARCH_DIR}"/usr/X11R6/${PKG_LIBDIR}/libfglrx_gamma* \ |
123 |
"${ARCH_DIR}"/usr/X11R6/${PKG_LIBDIR}/libfglrx_gamma* \ |
|
Lines 157-169
Link Here
|
| 157 |
|| die "MODVERSIONS sed failed" |
151 |
|| die "MODVERSIONS sed failed" |
| 158 |
popd >/dev/null |
152 |
popd >/dev/null |
| 159 |
|
153 |
|
| 160 |
mkdir panel extra || die "mkdirs failed" |
154 |
mkdir extra || die "mkdirs failed" |
| 161 |
# The ./ in these unpacks is required (or unpack looks in ${DISTDIR}) |
155 |
# The ./ in this unpack is required (or unpack looks in ${DISTDIR}) |
| 162 |
if use qt3; then |
|
|
| 163 |
cd panel |
| 164 |
unpack ./../common/usr/src/ati/fglrx_panel_sources.tgz |
| 165 |
cd .. |
| 166 |
fi |
| 167 |
cd extra |
156 |
cd extra |
| 168 |
unpack ./../common/usr/src/ati/fglrx_sample_source.tgz |
157 |
unpack ./../common/usr/src/ati/fglrx_sample_source.tgz |
| 169 |
sed -i -e 's:include/extensions/extutil.h:X11/extensions/extutil.h:' \ |
158 |
sed -i -e 's:include/extensions/extutil.h:X11/extensions/extutil.h:' \ |
|
Lines 202-214
Link Here
|
| 202 |
-I../../../common/usr/X11R6/include -L../../lib/fglrx_gamma \ |
191 |
-I../../../common/usr/X11R6/include -L../../lib/fglrx_gamma \ |
| 203 |
fglrx_xgamma.c -lm -lfglrx_gamma -lX11 \ |
192 |
fglrx_xgamma.c -lm -lfglrx_gamma -lX11 \ |
| 204 |
|| die "fglrx_gamma util build failed" |
193 |
|| die "fglrx_gamma util build failed" |
| 205 |
|
|
|
| 206 |
if use qt3; then |
| 207 |
einfo "Building the QT panel" |
| 208 |
cd "${S}"/panel |
| 209 |
emake CDEBFLAGS="${CFLAGS}" CCDEBFLAGS="${CXXFLAGS}" STRIP=true \ |
| 210 |
|| die "panel build failed" |
| 211 |
fi |
| 212 |
} |
194 |
} |
| 213 |
|
195 |
|
| 214 |
src_install() { |
196 |
src_install() { |
|
Lines 293-299
Link Here
|
| 293 |
# etc. |
275 |
# etc. |
| 294 |
insinto /etc/ati |
276 |
insinto /etc/ati |
| 295 |
# Everything except for the authatieventsd.sh script. |
277 |
# Everything except for the authatieventsd.sh script. |
| 296 |
doins common/etc/ati/{fglrxprofiles.csv,fglrxrc,logo*} |
278 |
doins common/etc/ati/{fglrxprofiles.csv,fglrxrc,logo*,control} |
| 297 |
if use acpi; then |
279 |
if use acpi; then |
| 298 |
doins common/etc/ati/authatieventsd.sh |
280 |
doins common/etc/ati/authatieventsd.sh |
| 299 |
fi |
281 |
fi |
|
Lines 343-355
Link Here
|
| 343 |
doman extra/programs/fglrx_gamma/fglrx_xgamma.1 |
325 |
doman extra/programs/fglrx_gamma/fglrx_xgamma.1 |
| 344 |
newdoc extra/programs/fglrx_gamma/README README.fglrx_gamma |
326 |
newdoc extra/programs/fglrx_gamma/README README.fglrx_gamma |
| 345 |
|
327 |
|
| 346 |
if use qt3; then |
|
|
| 347 |
dobin panel/fireglcontrol |
| 348 |
make_desktop_entry fireglcontrol 'ATI Control' ati.xpm System |
| 349 |
insinto /usr/share/pixmaps |
| 350 |
doins common/usr/share/icons/ati.xpm |
| 351 |
fi |
| 352 |
|
| 353 |
# Gentoo-specific stuff: |
328 |
# Gentoo-specific stuff: |
| 354 |
|
329 |
|
| 355 |
if use acpi; then |
330 |
if use acpi; then |