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-base/x11-drm/x11-drm-20060608.ebuild,v 1.9 2006/09/24 10:14:22 blubb Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/x11-drm-20060608.ebuild,v 1.9 2006/09/24 10:14:22 blubb Exp $ |
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 36-73
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=">=sys-devel/libtool-1.5.14 |
40 |
>=sys-devel/autoconf-2.59 |
|
|
41 |
>=sys-devel/libtool-1.5.14 |
42 |
>=sys-devel/m4-1.4 |
43 |
>=sys-devel/m4-1.4 |
43 |
virtual/linux-sources |
44 |
virtual/linux-sources" |
44 |
>=sys-apps/portage-2.0.49-r13" |
45 |
RDEPEND="" |
45 |
|
46 |
|
46 |
pkg_setup() { |
47 |
pkg_setup() { |
47 |
get_version |
48 |
if kernel_is 2 6 ; then |
48 |
|
49 |
linux_chkconfig_builtin "DRM" && \ |
49 |
if kernel_is 2 6 |
|
|
50 |
then |
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 |
|
|
|
59 |
linux-mod_pkg_setup |
60 |
|
71 |
# Set video cards to build for. |
61 |
# Set video cards to build for. |
72 |
set_vidcards |
62 |
set_vidcards |
73 |
|
63 |
|
Lines 96-102
Link Here
|
96 |
cp ${S}/tests/*.c ${SRC_BUILD} |
86 |
cp ${S}/tests/*.c ${SRC_BUILD} |
97 |
|
87 |
|
98 |
cd ${S} |
88 |
cd ${S} |
99 |
WANT_AUTOCONF="2.5" WANT_AUTOMAKE="1.7" autoreconf -v --install |
89 |
autoreconf -v --install |
100 |
} |
90 |
} |
101 |
|
91 |
|
102 |
src_compile() { |
92 |
src_compile() { |