Lines 1-8
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-base/x11-drm/x11-drm-20060608.ebuild,v 1.10 2006/11/25 18:06:47 kloeri Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils x11 linux-mod |
5 |
WANT_AUTOCONF="latest" |
|
|
6 |
WANT_AUTOMAKE="1.7" |
7 |
|
8 |
inherit eutils x11 linux-mod autotools |
6 |
|
9 |
|
7 |
IUSE_VIDEO_CARDS=" |
10 |
IUSE_VIDEO_CARDS=" |
8 |
video_cards_i810 |
11 |
video_cards_i810 |
Lines 20-26
Link Here
|
20 |
|
23 |
|
21 |
# Make sure Portage does _NOT_ strip symbols. We will do it later and make sure |
24 |
# Make sure Portage does _NOT_ strip symbols. We will do it later and make sure |
22 |
# that only we only strip stuff that are safe to strip ... |
25 |
# that only we only strip stuff that are safe to strip ... |
23 |
RESTRICT="nostrip" |
26 |
RESTRICT="strip" |
24 |
|
27 |
|
25 |
S="${WORKDIR}/drm" |
28 |
S="${WORKDIR}/drm" |
26 |
PATCHVER="0.2" |
29 |
PATCHVER="0.2" |
Lines 36-71
Link Here
|
36 |
LICENSE="X11" |
39 |
LICENSE="X11" |
37 |
KEYWORDS="alpha amd64 ia64 ppc x86" |
40 |
KEYWORDS="alpha amd64 ia64 ppc x86" |
38 |
|
41 |
|
39 |
DEPEND=">=sys-devel/automake-1.7 |
42 |
DEPEND="virtual/linux-sources" |
40 |
>=sys-devel/autoconf-2.59 |
43 |
RDEPEND="" |
41 |
>=sys-devel/libtool-1.5.14 |
|
|
42 |
>=sys-devel/m4-1.4 |
43 |
virtual/linux-sources |
44 |
>=sys-apps/portage-2.0.49-r13" |
45 |
|
44 |
|
46 |
pkg_setup() { |
45 |
pkg_setup() { |
47 |
get_version |
46 |
linux-mod_pkg_setup |
48 |
|
47 |
|
49 |
if kernel_is 2 6 |
48 |
if kernel_is 2 6 ; then |
50 |
then |
49 |
linux_chkconfig_builtin "DRM" && \ |
51 |
if linux_chkconfig_builtin "DRM" |
|
|
52 |
then |
53 |
die "Please disable or modularize DRM in the kernel config. (CONFIG_DRM = n or m)" |
50 |
die "Please disable or modularize DRM in the kernel config. (CONFIG_DRM = n or m)" |
54 |
fi |
51 |
CONFIG_CHECK="AGP" |
|
|
52 |
ERROR_AGP="AGP support is not enabled in your kernel config (CONFIG_AGP)" |
55 |
|
53 |
|
56 |
if ! linux_chkconfig_present "AGP" |
54 |
elif kernel_is 2 4 ; then |
57 |
then |
55 |
CONFIG_CHECK="DRM" |
58 |
einfo "AGP support is not enabled in your kernel config. This may be needed for DRM to" |
56 |
ERROR_DRM="Please enable DRM support in your kernel configuration. (CONFIG_DRM = y or m)." |
59 |
einfo "work, so you might want to double-check that setting. (CONFIG_AGP)" |
|
|
60 |
echo |
61 |
fi |
62 |
elif kernel_is 2 4 |
63 |
then |
64 |
if ! linux_chkconfig_present "DRM" |
65 |
then |
66 |
die "Please enable DRM support in your kernel configuration. (CONFIG_DRM = y or m)." |
67 |
echo |
68 |
fi |
69 |
fi |
57 |
fi |
70 |
|
58 |
|
71 |
# Set video cards to build for. |
59 |
# Set video cards to build for. |
Lines 96-102
Link Here
|
96 |
cp ${S}/tests/*.c ${SRC_BUILD} |
84 |
cp ${S}/tests/*.c ${SRC_BUILD} |
97 |
|
85 |
|
98 |
cd ${S} |
86 |
cd ${S} |
99 |
WANT_AUTOCONF="2.5" WANT_AUTOMAKE="1.7" autoreconf -v --install |
87 |
eautoreconf -v --install |
100 |
} |
88 |
} |
101 |
|
89 |
|
102 |
src_compile() { |
90 |
src_compile() { |