summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-05-30 06:11:41 +0000
committerMike Frysinger <vapier@gentoo.org>2004-05-30 06:11:41 +0000
commit2925de73ef307c737222e578c90022bc60633e33 (patch)
tree6cf391a6e42bf727a7adfe33bfc11db53887e00c /media-libs
parentVersion bumped. Marked 0.2.2 stable. (Manifest recommit) (diff)
downloadgentoo-2-2925de73ef307c737222e578c90022bc60633e33.tar.gz
gentoo-2-2925de73ef307c737222e578c90022bc60633e33.tar.bz2
gentoo-2-2925de73ef307c737222e578c90022bc60633e33.zip
Added support for new kbuild module building #50914 by J van der Wulp.
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/svgalib/ChangeLog5
-rw-r--r--media-libs/svgalib/svgalib-1.9.18-r1.ebuild25
2 files changed, 21 insertions, 9 deletions
diff --git a/media-libs/svgalib/ChangeLog b/media-libs/svgalib/ChangeLog
index 0d67bdce154e..8461026ddb03 100644
--- a/media-libs/svgalib/ChangeLog
+++ b/media-libs/svgalib/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/svgalib
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/ChangeLog,v 1.36 2004/05/12 12:30:06 pappy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/ChangeLog,v 1.37 2004/05/30 06:11:41 vapier Exp $
+
+ 30 May 2004; Mike Frysinger <vapier@gentoo.org> svgalib-1.9.18-r1.ebuild:
+ Added support for new kbuild module building #50914 by J van der Wulp.
12 May 2004; Alexander Gabert <pappy@gentoo.org> svgalib-1.4.3-r4.ebuild,
svgalib-1.9.17-r3.ebuild, svgalib-1.9.18-r1.ebuild, svgalib-1.9.18.ebuild:
diff --git a/media-libs/svgalib/svgalib-1.9.18-r1.ebuild b/media-libs/svgalib/svgalib-1.9.18-r1.ebuild
index ff3dd81ce1d4..1582db1ee0d2 100644
--- a/media-libs/svgalib/svgalib-1.9.18-r1.ebuild
+++ b/media-libs/svgalib/svgalib-1.9.18-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.18-r1.ebuild,v 1.4 2004/05/30 05:21:00 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.18-r1.ebuild,v 1.5 2004/05/30 06:11:41 vapier Exp $
inherit eutils flag-o-matic
@@ -81,9 +81,13 @@ src_compile() {
if use !build && kernel_supports_modules
then
cd ${S}/kernel/svgalib_helper
- env -u ARCH \
- make -f Makefile.alt INCLUDEDIR="/usr/src/linux/include" \
- clean modules || die "Failed to build kernel module!"
+ if [[ `KV_to_int ${KV}` -lt `KV_to_int 2.6.6` ]] ; then
+ env -u ARCH \
+ make -f Makefile.alt INCLUDEDIR="/usr/src/linux/include" \
+ clean modules || die "Failed to build kernel module!"
+ else
+ env -u ARCH make || die "Failed to build kernel module!"
+ fi
cd ${S}
fi
@@ -102,10 +106,15 @@ src_install() {
if use !build && kernel_supports_modules
then
cd ${S}/kernel/svgalib_helper
- env -u ARCH \
- make -f Makefile.alt TOPDIR=${D} \
- INCLUDEDIR="/usr/src/linux/include" \
- modules_install || die "Failed to install svgalib module!"
+ if [[ `KV_to_int ${KV}` -lt `KV_to_int 2.6.6` ]] ; then
+ env -u ARCH \
+ make -f Makefile.alt TOPDIR=${D} \
+ INCLUDEDIR="/usr/src/linux/include" \
+ modules_install || die "Failed to install svgalib module!"
+ else
+ insinto /lib/modules/${KV}/kernel/misc
+ doins svgalib_helper.ko
+ fi
cd ${S}
fi