summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-02-03 00:37:19 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-02-03 00:37:19 +0000
commit3a14afe94af079fc88b7d54fcacfbb0277ea5d2d (patch)
treee701534997c2fe9e6a7729d29bd796fc706ec244 /x11-base
parentVersion bump. (diff)
downloadgentoo-2-3a14afe94af079fc88b7d54fcacfbb0277ea5d2d.tar.gz
gentoo-2-3a14afe94af079fc88b7d54fcacfbb0277ea5d2d.tar.bz2
gentoo-2-3a14afe94af079fc88b7d54fcacfbb0277ea5d2d.zip
initial version
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/xfree-drm/ChangeLog10
-rw-r--r--x11-base/xfree-drm/files/digest-xfree-drm-4.2.99.34
-rw-r--r--x11-base/xfree-drm/files/xfree-drm-4.2.99.3-gentoo-Makefile-fixup.patch27
-rw-r--r--x11-base/xfree-drm/xfree-drm-4.2.99.3.ebuild98
4 files changed, 139 insertions, 0 deletions
diff --git a/x11-base/xfree-drm/ChangeLog b/x11-base/xfree-drm/ChangeLog
new file mode 100644
index 000000000000..20b03c8e62cc
--- /dev/null
+++ b/x11-base/xfree-drm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for x11-base/xfree-drm
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/ChangeLog,v 1.1 2003/02/03 00:37:19 azarah Exp $
+
+*xfree-drm-4.2.99.3 (03 Feb 2003)
+
+ 03 Feb 2003; Martin Schlemmer <azarah@gentoo.org> xfree-drm-4.2.99.3.ebuild :
+
+ Initial version submitted by myself.
+
diff --git a/x11-base/xfree-drm/files/digest-xfree-drm-4.2.99.3 b/x11-base/xfree-drm/files/digest-xfree-drm-4.2.99.3
new file mode 100644
index 000000000000..af4510b8b5fa
--- /dev/null
+++ b/x11-base/xfree-drm/files/digest-xfree-drm-4.2.99.3
@@ -0,0 +1,4 @@
+MD5 967bf4e2454188f72902b7625ae83c47 X4.2.99.3-1.tar.bz2 16712994
+MD5 4ad8d83f5b04be1a0a01031719e98abc X4.2.99.3-2.tar.bz2 9771956
+MD5 9c3c99e847cb0d57360ea9014b02c700 X4.2.99.3-3.tar.bz2 12810751
+MD5 a4d5d346a3ffc6eb5303124c1a867820 X4.2.99.3-4.tar.bz2 16700780
diff --git a/x11-base/xfree-drm/files/xfree-drm-4.2.99.3-gentoo-Makefile-fixup.patch b/x11-base/xfree-drm/files/xfree-drm-4.2.99.3-gentoo-Makefile-fixup.patch
new file mode 100644
index 000000000000..76bc77eb1922
--- /dev/null
+++ b/x11-base/xfree-drm/files/xfree-drm-4.2.99.3-gentoo-Makefile-fixup.patch
@@ -0,0 +1,27 @@
+--- xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux.orig 2003-02-03 00:29:25.000000000 +0200
++++ xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.linux 2003-02-03 01:12:05.000000000 +0200
+@@ -166,9 +166,9 @@
+ endif
+
+ MGAOBJS = mga_drv.o mga_dma.o mga_state.o mga_warp.o mga_irq.o
+-MGAHEADERS = mga.h mga_drv.h mga_drm.h $(DRMHEADERS) $(DRMTEMPLATES)
++MGAHEADERS = mga.h mga_drv.h mga_drm.h mga_ucode.h $(DRMHEADERS) $(DRMTEMPLATES)
+ MGASHARED = mga.h mga_dma.c mga_drm.h mga_drv.h mga_state.c \
+- mga_ucode.h mga_warp.c
++ mga_ucode.h mga_warp.c mga_irq.c
+
+ I810OBJS = i810_drv.o i810_dma.o
+ I810HEADERS = i810.h i810_drv.h i810_drm.h $(DRMHEADERS) $(DRMTEMPLATES)
+@@ -296,6 +296,12 @@
+ $(I830OBJS): $(I830HEADERS)
+ endif
+
++install: $(MODS)
++ install -d -m 0755 $(DESTDIR)/lib/modules/$(KV)/kernel/drivers/char/drm
++ @for i in $(MODS); do \
++ install -m 0755 $$i $(DESTDIR)/lib/modules/$(KV)/kernel/drivers/char/drm; \
++ done
++
+ clean cleandir::
+ rm -f *.o *.a *~ core
+ @for i in $(SHAREDSRC); do \
diff --git a/x11-base/xfree-drm/xfree-drm-4.2.99.3.ebuild b/x11-base/xfree-drm/xfree-drm-4.2.99.3.ebuild
new file mode 100644
index 000000000000..3c7360010a2d
--- /dev/null
+++ b/x11-base/xfree-drm/xfree-drm-4.2.99.3.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/xfree-drm-4.2.99.3.ebuild,v 1.1 2003/02/03 00:37:19 azarah Exp $
+
+# Small note: we should prob consider using a DRM only tarball, as it will ease
+# some of the overhead on older systems, and will enable us to
+# update DRM if there are fixes not already in XFree86 tarballs ...
+
+IUSE=""
+
+inherit eutils
+
+# Make sure Portage does _NOT_ strip symbols. We will do it later and make sure
+# that only we only strip stuff that are safe to strip ...
+DEBUG="yes"
+RESTRICT="nostrip"
+
+# Are we using a snapshot ?
+USE_SNAPSHOT="yes"
+
+BASE_PV="${PV}"
+S="${WORKDIR}/xc"
+DESCRIPTION="Xfree86 Kernel DRM modules"
+SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/${BASE_PV}/source"
+SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/${BASE_PV}/source"
+# If we are using CVS snapshots made by Seemant ...
+SRC_PATH_SS="http://www.ibiblio.org/gentoo/gentoo-sources"
+HOMEPAGE="http://www.xfree.org"
+
+if [ "${USE_SNAPSHOT}" = "yes" ]
+then
+ SRC_URI="${SRC_PATH_SS}/X${BASE_PV}-1.tar.bz2
+ ${SRC_PATH_SS}/X${BASE_PV}-2.tar.bz2
+ ${SRC_PATH_SS}/X${BASE_PV}-3.tar.bz2
+ ${SRC_PATH_SS}/X${BASE_PV}-4.tar.bz2"
+else
+ SRC_URI="${SRC_PATH0}/X${MY_SV}src-1.tgz
+ ${SRC_PATH0}/X${MY_SV}src-2.tgz
+ ${SRC_PATH0}/X${MY_SV}src-3.tgz
+ ${SRC_PATH1}/X${MY_SV}src-1.tgz
+ ${SRC_PATH1}/X${MY_SV}src-2.tgz
+ ${SRC_PATH1}/X${MY_SV}src-3.tgz"
+fi
+
+LICENSE="X11"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips"
+
+DEPEND=">=x11-base/xfree-${PV}"
+
+PROVIDE="virtual/drm"
+
+pkg_setup() {
+
+ check_KV
+}
+
+src_unpack() {
+
+ if [ "${USE_SNAPSHOT}" = "yes" ]
+ then
+ unpack X${BASE_PV}-{1,2,3,4}.tar.bz2
+ else
+ unpack X${MY_SV}src-{1,2,3}.tgz
+ fi
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo-Makefile-fixup.patch
+}
+
+src_compile() {
+
+ check_KV
+
+ einfo "Building DRM..."
+ cd ${S}/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
+ make -f Makefile.linux \
+ TREE="/usr/src/linux/include" KV="${KV}"
+}
+
+src_install() {
+
+ einfo "installing DRM..."
+ cd ${S}/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
+ make -f Makefile.linux \
+ TREE="/usr/src/linux/include" \
+ KV="${KV}" DESTDIR="${D}" \
+ install || die
+}
+
+pkg_postinst() {
+
+ if [ "${ROOT}" = "/" ]
+ then
+ /sbin/modules-update
+ fi
+}
+