summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2003-11-10 22:58:47 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2003-11-10 22:58:47 +0000
commit3f85c684bc6556165208ed5db066164c7d0e5c4c (patch)
tree297d03988a03d9757a4fc98085950c25a7792f5d /x11-base
parentRemoved IPV6 patch, caused wget to break ipv4 support. (diff)
downloadgentoo-2-3f85c684bc6556165208ed5db066164c7d0e5c4c.tar.gz
gentoo-2-3f85c684bc6556165208ed5db066164c7d0e5c4c.tar.bz2
gentoo-2-3f85c684bc6556165208ed5db066164c7d0e5c4c.zip
Add missing include patch to close bug #32368 and allow kdrive to compile without xfree installed. Remove LBX support, add support for speedo, type1, truetype, cid fonts, font server and xv. Clean up code -- Change M to MANDIR, move it to a global var, move vesa() to the bottom, re-tab things properly. Change epatch to bulk patching. Allow -Os and -fomit-frame-pointer CFLAGS. Fix issue if /usr/src/linux doesn't exist. Always install all KDrive man pages, since documentation on it is so slim.
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/kdrive/ChangeLog13
-rw-r--r--x11-base/kdrive/Manifest4
-rw-r--r--x11-base/kdrive/files/digest-kdrive-4.3.0-r24
-rw-r--r--x11-base/kdrive/kdrive-4.3.0-r2.ebuild248
4 files changed, 267 insertions, 2 deletions
diff --git a/x11-base/kdrive/ChangeLog b/x11-base/kdrive/ChangeLog
index 30afc1f48a96..3a6205af7820 100644
--- a/x11-base/kdrive/ChangeLog
+++ b/x11-base/kdrive/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for x11-base/kdrive
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/ChangeLog,v 1.7 2003/10/13 03:43:36 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/ChangeLog,v 1.8 2003/11/10 22:58:42 spyderous Exp $
+
+*kdrive-4.3.0-r2 (10 Nov 2003)
+
+ 10 Nov 2003; Donnie Berkholz <spyderous@gentoo.org>; kdrive-4.3.0-r2.ebuild:
+ Add missing include patch to close bug #32368 and allow kdrive to compile
+ without xfree installed. Remove LBX support, add support for speedo, type1,
+ truetype, cid fonts, font server and xv. Clean up code -- Change M to MANDIR,
+ move it to a global var, move vesa() to the bottom, re-tab things properly.
+ Change epatch to bulk patching. Allow -Os and -fomit-frame-pointer CFLAGS. Fix
+ issue if /usr/src/linux doesn't exist. Always install all KDrive man pages,
+ since documentation on it is so slim.
12 Oct 2003; Donnie Berkholz <spyderous@gentoo.org>; kdrive-4.3.0-r1.ebuild:
Major reworking of ebuild, centered around removing repetitive statements.
diff --git a/x11-base/kdrive/Manifest b/x11-base/kdrive/Manifest
index e38dfc451038..3af13efeb60a 100644
--- a/x11-base/kdrive/Manifest
+++ b/x11-base/kdrive/Manifest
@@ -1,6 +1,8 @@
-MD5 cb342b9051788f10d11838c075a61b62 ChangeLog 1207
+MD5 111b728d4cec2f937680ff2844543c32 ChangeLog 1830
+MD5 d32cc4849cb99c6b54fe7bea3d9d969a kdrive-4.3.0-r2.ebuild 8048
MD5 dfb36dc591c29412ab1e1c8716c8d837 kdrive-4.3.0.ebuild 10183
MD5 a1c3090581323032b75d0416d74ced9e metadata.xml 251
MD5 359f158122c1fd4017869a2aede6f75d kdrive-4.3.0-r1.ebuild 7770
MD5 c1fefd05eb62aac375b37a764c0be440 files/digest-kdrive-4.3.0 253
MD5 4722092beea0eb065c87c753070bc74b files/digest-kdrive-4.3.0-r1 254
+MD5 6fffa8281d417db7da4ab97ad0e51add files/digest-kdrive-4.3.0-r2 254
diff --git a/x11-base/kdrive/files/digest-kdrive-4.3.0-r2 b/x11-base/kdrive/files/digest-kdrive-4.3.0-r2
new file mode 100644
index 000000000000..ef7d1e5e9b20
--- /dev/null
+++ b/x11-base/kdrive/files/digest-kdrive-4.3.0-r2
@@ -0,0 +1,4 @@
+MD5 4f241a4f867363f40efa2b00dca292af X430src-1.tgz 10993622
+MD5 844c2ee908d21dbf8911fd13115bf8b4 X430src-2.tgz 7962239
+MD5 b82a0443e1b7bf860e4343e6b6766cb6 X430src-3.tgz 12366363
+MD5 cd097e7c173e785ad05dc1010609a0b4 kdrive-4.3.0-gentoo-0.3.tar.bz2 10911
diff --git a/x11-base/kdrive/kdrive-4.3.0-r2.ebuild b/x11-base/kdrive/kdrive-4.3.0-r2.ebuild
new file mode 100644
index 000000000000..095c00df9fc7
--- /dev/null
+++ b/x11-base/kdrive/kdrive-4.3.0-r2.ebuild
@@ -0,0 +1,248 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/kdrive-4.3.0-r2.ebuild,v 1.1 2003/11/10 22:58:42 spyderous Exp $
+
+# If you don't want to build the Xvesa server, do this.
+# VESA="no" emerge kdrive
+
+# By default, this will build a server with no support for scalable
+# fonts (but support for built-in ``fixed'' and ``cursor'' fonts, and
+# normal support for bitmap fonts and font-server provided fonts).
+
+IUSE="ipv6 xinerama fbdev speedo type1 cjk truetype freetype fs xv"
+
+# VIDEO_CARDS="savage trident sis530 trio ts300 mach64 i810 igs"
+
+filter-flags "-funroll-loops"
+
+ALLOWED_FLAGS="-fstack-protector -march -mcpu -O -O1 -Os -O2 -O3 -pipe -fomit-frame-pointer"
+
+# Recently there has been a lot of stability problem in Gentoo-land. Many
+# things can be the cause to this, but I believe that it is due to gcc3
+# still having issues with optimizations, or with it not filtering bad
+# combinations (protecting the user maybe from themselves) yet.
+#
+# This can clearly be seen in large builds like glibc, where too aggressive
+# CFLAGS cause the tests to fail miserbly.
+#
+# Quote from Nick Jones <carpaski@gentoo.org>, who in my opinion
+# knows what he is talking about:
+#
+# People really shouldn't force code-specific options on... It's a
+# bad idea. The -march options aren't just to look pretty. They enable
+# options that are sensible (and include sse,mmx,3dnow when apropriate).
+#
+# The next command strips CFLAGS and CXXFLAGS from nearly all flags. If
+# you do not like it, comment it, but do not bugreport if you run into
+# problems.
+#
+# <azarah@gentoo.org> (13 Oct 2002)
+strip-flags
+
+# Are we using a snapshot ?
+USE_SNAPSHOT="no"
+PATCHVER="0.3"
+MANDIR=${WORKDIR}/man
+PATCHDIR="${WORKDIR}/patch"
+BASE_PV="${PV}"
+MY_SV="${BASE_PV//\.}"
+S="${WORKDIR}/xc"
+SRC_PATH="mirror://xfree/${BASE_PV}/source"
+DESCRIPTION="Xfree86: famous and free X server. Tiny version (KDrive)"
+HOMEPAGE="http://www.xfree.org"
+SRC_URI="${SRC_PATH}/X${MY_SV}src-1.tgz
+ ${SRC_PATH}/X${MY_SV}src-2.tgz
+ ${SRC_PATH}/X${MY_SV}src-3.tgz
+ mirror://gentoo/${P}-gentoo-${PATCHVER}.tar.bz2"
+LICENSE="X11"
+SLOT="0"
+KEYWORDS="~x86"
+# Need portage for USE_EXPAND
+DEPEND=">=sys-apps/baselayout-1.8.3
+ >=sys-libs/ncurses-5.1
+ >=sys-libs/zlib-1.1.3-r2
+ >=sys-devel/flex-2.5.4a-r5
+ >=dev-libs/expat-1.95.3
+ >=sys-apps/sed-4
+ dev-lang/perl
+ media-libs/libpng
+ >=sys-apps/portage-2.0.49-r13"
+PROVIDE="virtual/x11"
+
+#inherit needs to happen *after* DEPEND has been defined to have "newdepend"
+#do the right thing. Otherwise RDEPEND doesn't get set properly.
+inherit eutils flag-o-matic gcc xfree
+
+src_unpack() {
+ unpack ${A}
+
+ # Various Patches from all over
+ EPATCH_SUFFIX="patch" epatch ${PATCH_DIR}
+
+ ebegin "Setting up config/cf/host.def"
+
+ # See linux.cf for MMX, 3DNOW and SSE autodetection. (spyderous)
+
+ cd ${S}
+ touch config/cf/host.def
+ echo "#define XVendorString \"Gentoo Linux (KDrive ${PV}, revision ${PR})\"
+#define KDriveXServer YES
+#define TinyXServer YES
+#define ProjectRoot /usr/X11R6
+#define BuildLBX NO
+#define BuildDBE YES
+#define KdriveServerExtraDefines -DPIXPRIV
+#define BuildRandR YES
+#define BuildXInputLib YES
+#define BuildXTrueType NO
+#define BuildScreenSaverExt YES
+#define BuildScreenSaverLibrary YES
+#define SharedLibXss YES
+#define ServerXdmcpDefines -DXDMCP
+#define BuildFonts NO" >>config/cf/host.def
+
+ # As far as I know, you can't use Xwrapper for multiple X servers,
+ # so we have to suid Xfbdev and Xvesa. mharris (redhat) also does
+ # this.
+ echo "#define InstallXserverSetUID YES" >> config/cf/host.def
+ echo "#define BuildServersOnly YES" >> config/cf/host.def
+
+ if [ "`gcc-version`" != "2.95" ] ; then
+ # Should fix bug #4189. gcc-3.x have problems with -march=pentium4
+ # and -march=athlon-tbird
+ replace-flags "-march=pentium4" "-march=pentium3"
+ replace-flags "-march=athlon-tbird" "-march=athlon"
+
+ # Without this, modules breaks with gcc3
+ if [ "`gcc-version`" = "3.1" ] ; then
+ append-flags "-fno-merge-constants"
+ append-flags "-fno-merge-constants"
+ fi
+ fi
+
+ # Safe if /usr/src/linux doesn't exist
+ if ( [ -e "/usr/src/linux" ] && \
+ [ ! `is_kernel "2" "2"` ] ) || \
+ [ "`uname -r | cut -d. -f1,2`" != "2.2" ]
+ then
+ echo "#define HasLinuxInput YES" >> config/cf/host.def
+ fi
+
+ echo "#define OptimizedCDebugFlags ${CFLAGS}" >> config/cf/host.def
+ echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS}" >> config/cf/host.def
+
+ if use debug ; then
+ echo "#define XFree86Devel YES" >> config/cf/host.def
+ echo "#define DoLoadableServer NO" >>config/cf/host.def
+ else
+ # use less ram .. got this from Spider's makeedit.eclass :)
+ echo "#define GccWarningOptions -Wno-return-type -w" \
+ >> config/cf/host.def
+ fi
+
+ # Xvesa isn't available on non-x86, non-gcc platforms.
+ # See http://lists.debian.org/debian-x/2000/debian-x-200012/msg00029.html
+ if vesa no || [ "${ARCH}" != "x86" ] ; then
+ echo "#define XvesaServer NO" >> config/cf/host.def
+ else
+ echo "#define XvesaServer YES" >> config/cf/host.def
+ fi
+
+ use fbdev && \
+ echo "#define XfbdevServer YES" >> config/cf/host.def || \
+ echo "#define XfbdevServer NO" >> config/cf/host.def
+
+ use ipv6 && \
+ echo "#define HasIPv6 YES" >> config/cf/host.def
+
+ use xinerama && \
+ echo "#define BuildXinerama YES" >> config/cf/host.def
+
+ local KDRIVE_XF_SERVERS="Savage Trident Sis530 Trio TS300 Igs i810 mach64"
+ for i in ${KDRIVE_XF_SERVERS} ; do
+ # I wish it worked like this. (spyderous)
+ # if use video_cards_${i/[A-Z]/[a-z]} ; then
+ if use `echo video_cards_${i} | tr [:upper:] [:lower:]` ; then
+ echo "#define X${i}Server YES" >> config/cf/host.def
+ fi
+ done
+
+ # Set up font support
+ use speedo && echo "#define BuildSpeedo YES" >> config/cf/host.def
+ use type1 && echo "#define BuildType1 YES" >> config/cf/host.def
+ use cjk && echo "#define BuildCID YES" >> config/cf/host.def
+ use truetype && echo "#define BuildXTrueType YES" >> config/cf/host.def
+ use freetype && echo "#define BuildFreeType YES" >> config/cf/host.def
+ use fs && echo "#define FontServerAccess YES" >> config/cf/host.def
+
+ # Video
+ use xv && echo "#define BuildXvExt YES" >> config/cf/host.def
+
+ eend 0
+}
+
+src_compile() {
+
+ # Set MAKEOPTS to have proper -j? option ..
+ get_number_of_jobs
+
+ # If a user defines the MAKE_OPTS variable in /etc/make.conf instead of
+ # MAKEOPTS, they'll redefine an internal XFree86 Makefile variable and the
+ # xfree build will silently die. This is tricky to track down, so I'm
+ # adding a preemptive fix for this issue by making sure that MAKE_OPTS is
+ # unset. (drobbins, 08 Mar 2003)
+ unset MAKE_OPTS
+
+ einfo "Building KDrive..."
+ emake World WORLDOPTS="" || die
+
+# Build all man pages because I can't just build one. (spyderous)
+ einfo "Making and installing man pages..."
+ mkdir ${MANDIR}
+ make DESTDIR=${MANDIR} install.man || die
+}
+
+src_install() {
+
+ exeinto /usr/X11R6/bin
+
+ # Install Xvesa
+ if [ -z "`vesa no`" ] ; then
+ doexe programs/Xserver/Xvesa
+ fperms 4711 /usr/X11R6/bin/Xvesa
+ fi
+
+ # Install Xfbdev
+ if use fbdev ; then
+ doexe programs/Xserver/Xfbdev
+ fperms 4711 /usr/X11R6/bin/Xfbdev
+ fi
+
+ # Install the other servers
+ local KDRIVE_SERVERS="savage trident sis530 trio ts300 igs i810 mach64"
+ for i in ${KDRIVE_SERVERS} ; do
+ if use video_cards_${i} ; then
+ doexe programs/Xserver/X${i}
+ fperms 4711 /usr/X11R6/bin/X${i}
+ fi
+ done
+
+ # Install our startx script
+ doexe ${PATCHDIR}/startxkd
+
+ # Install man pages
+ doman -x11 ${MANDIR}/usr/X11R6/man/man1/X{kdrive,vesa,fbdev}.1x
+}
+
+pkg_postinst() {
+ einfo "You may edit /usr/X11R6/bin/startxkd to your preferences."
+ einfo "Xvesa is the default."
+ einfo "Or you can use something like:"
+ einfo "\"xinit -- /usr/X11R6/bin/Xvesa :0 -screen 1280x1024x16 -nolisten tcp\"."
+ einfo "Your ~/.xinitrc will be used if you use xinit."
+}
+
+# For allowing Xvesa build to be disabled
+vesa() {
+ has "$1" "${VESA}"
+}