diff options
author | Michael Nazaroff <naz@gentoo.org> | 2002-06-17 08:28:54 +0000 |
---|---|---|
committer | Michael Nazaroff <naz@gentoo.org> | 2002-06-17 08:28:54 +0000 |
commit | 6999cb03e70374d3bdb13412e41713f00d9f04a4 (patch) | |
tree | 22c4cf4e844b2e8995f99b281af6fd96a361d827 /x11-base/xdirectfb | |
parent | Updated package revision (diff) | |
download | gentoo-2-6999cb03e70374d3bdb13412e41713f00d9f04a4.tar.gz gentoo-2-6999cb03e70374d3bdb13412e41713f00d9f04a4.tar.bz2 gentoo-2-6999cb03e70374d3bdb13412e41713f00d9f04a4.zip |
initial release of XdirectFB
Diffstat (limited to 'x11-base/xdirectfb')
-rw-r--r-- | x11-base/xdirectfb/ChangeLog | 11 | ||||
-rw-r--r-- | x11-base/xdirectfb/files/host.def | 5 | ||||
-rw-r--r-- | x11-base/xdirectfb/files/startxdfb | 127 | ||||
-rw-r--r-- | x11-base/xdirectfb/xdirectfb-1.0_rc2.ebuild | 95 |
4 files changed, 238 insertions, 0 deletions
diff --git a/x11-base/xdirectfb/ChangeLog b/x11-base/xdirectfb/ChangeLog new file mode 100644 index 000000000000..49d9cda4e19b --- /dev/null +++ b/x11-base/xdirectfb/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-base/xdirectfb +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xdirectfb/ChangeLog,v 1.1 2002/06/17 08:28:54 naz Exp $ + +*xdirectfb-1.0_rc2.ebuild (16 Jun 2002) + + 01 Feb 2002; M.Nazaroff <naz@gentoo.org> xdirectfb-1.0_rc2.ebuild: + Initial ChangeLog for XDirectFB which is a Xfree86 replacement but runs on + framebuffer device. + + diff --git a/x11-base/xdirectfb/files/host.def b/x11-base/xdirectfb/files/host.def new file mode 100644 index 000000000000..0a6a373af32d --- /dev/null +++ b/x11-base/xdirectfb/files/host.def @@ -0,0 +1,5 @@ +#define XDirectFBServer YES +#define ProjectRoot /usr/X11R6 +#define NothingOutsideProjectRoot No +#define EtcX11Directory /etc/X11 +#define FontconfigDir /usr/X11R6/lib/fonts diff --git a/x11-base/xdirectfb/files/startxdfb b/x11-base/xdirectfb/files/startxdfb new file mode 100644 index 000000000000..ce94f5a0fa44 --- /dev/null +++ b/x11-base/xdirectfb/files/startxdfb @@ -0,0 +1,127 @@ +#!/bin/sh + +userclientrc=$HOME/.xinitrc +sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc +defaultclient=/usr/X11R6/bin/xterm +defaultserver=/usr/X11R6/bin/XDirectFB +defaultclientargs="" +defaultserverargs="" +clientargs="" +serverargs="" + + +if [ -f $userclientrc ]; then + defaultclientargs=$userclientrc +elif [ -f $sysclientrc ]; then + defaultclientargs=$sysclientrc +fi + + +whoseargs="client" +while [ x"$1" != x ]; do + case "$1" in + # '' required to prevent cpp from treating "/*" as a C comment. + /''*|\./''*) + if [ "$whoseargs" = "client" ]; then + if [ x"$clientargs" = x ]; then + client="$1" + else + clientargs="$clientargs $1" + fi + else + if [ x"$serverargs" = x ]; then + server="$1" + else + serverargs="$serverargs $1" + fi + fi + ;; + --) + whoseargs="server" + ;; + *) + if [ "$whoseargs" = "client" ]; then + clientargs="$clientargs $1" + else + # display must be the FIRST server argument + if [ x"$serverargs" = x ] && expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then + + display="$1" + else + serverargs="$serverargs $1" + fi + fi + ;; + esac + shift +done + +# process client arguments +if [ x"$client" = x ]; then + # if no client arguments either, use rc file instead + if [ x"$clientargs" = x ]; then + client="$defaultclientargs" + else + client=$defaultclient + fi +fi + +# process server arguments +if [ x"$server" = x ]; then + # if no server arguments or display either, use rc file instead + if [ x"$serverargs" = x -a x"$display" = x ]; then + server="$defaultserverargs" + else + server=$defaultserver + fi +fi + +if [ x"$XAUTHORITY" = x ]; then + export XAUTHORITY=$HOME/.Xauthority +fi + +removelist= + + +# set up default Xauth info for this machine + + + + + + + + +authdisplay=${display:-:0} +mcookie=`mcookie` +for displayname in $authdisplay `hostname -f`$authdisplay; do + if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then + xauth add $displayname . $mcookie + removelist="$displayname $removelist" + fi +done + + +xinit $client $clientargs -- $server $display $serverargs + +if [ x"$removelist" != x ]; then + xauth remove $removelist +fi + + + + + +if command -v deallocvt > /dev/null 2>&1; then + deallocvt +fi + + + + + + + + + + diff --git a/x11-base/xdirectfb/xdirectfb-1.0_rc2.ebuild b/x11-base/xdirectfb/xdirectfb-1.0_rc2.ebuild new file mode 100644 index 000000000000..46412257fd3c --- /dev/null +++ b/x11-base/xdirectfb/xdirectfb-1.0_rc2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Michael Nazaroff <naz@gentoo.org> +# /space/gentoo/cvsroot/gentoo-x86/x11-base/xdirectfb/xdirectfb-1.0-rc2.ebuild,v 1 + +MY_PN="XDirectFB" +MY_PV=${PV/_/-} +MY_P=${MY_PN}-${MY_PV} +MY_V=X4299 +S=${WORKDIR}/xc +X=${WORKDIR}/${MY_P} +DESCRIPTION="XDDirectFB is a rootless XServer on top of DirectFB" + +SRC_URI="http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-1.tar.bz2 + http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-2.tar.bz2 + http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-3.tar.bz2 + http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-4.tar.bz2 + http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz + http://www.directfb.org/download/${MY_PN}/${MY_P}.tar.gz" + +HOMEPAGE="http://www.directfb.org" +LICENSE="X11" + +DEPEND=">=sys-libs/ncurses-5.1 + >=sys-libs/zlib-1.1.3-r2 + sys-devel/flex + sys-devel/perl + dev-libs/DirectFB" + +src_unpack () { + + unpack ${A} + + cd ${X} + cp xc-directfb.diff ${S} + cp -a programs/Xserver/hw/directfb ${S}/programs/Xserver/hw + cp ${X}/config/cf/directfb.cf ${S}/config/cf + cp ${FILESDIR}/host.def ${S}/config/cf/ + + cd ${S} + patch -p0 < xc-directfb.diff || die +# Add any optimazations seems to break the build for some reason. +# echo "#define DefaultGcc2i386Opt ${CFLAGS}" >> config/cf/host.def +# echo "#define GccWarningOptions -Wno" >> config/cf/host.def +# echo "#define DefaultCCOptions -ansi" >> config/cf/host.def + +} + +src_compile() { + + emake World || die +} + +src_install() { + +# make install DESTDIR=${D} + + exeinto /usr/X11R6/bin + doexe ${S}/programs/Xserver/XDirectFB + doexe ${FILESDIR}/startxdfb + + mv ${S}/programs/Xserver/hw/directfb/XDirectFB.man ./XDirectFB.1x + insinto /usr/X11R6/man/man1 + doins ${S}/XDirectFB.1x + + dohtml ${S}/programs/Xserver/hw/directfb/XDirectFB.1x.html + + cd ${X} + dodoc AUTHORS ChangeLog INSTALL README TODO + +} + +pkg_postinst() { + + chmod 4711 /usr/X11R6/bin/XDirectFB + chmod 755 /usr/X11R6/bin/startxdfb + + echo + echo '#######################################################' + echo '# #' + echo '# To start XDirectFB use startxdfb utility. #' + echo '# #' + echo '# To set a background in XDirectFB create a #' + echo '# file called directfbrc in /etc #' + echo '# (system wide setting) or .directfbrc #' + echo '# in $HOME. XDirectFB will also just use your #' + echo '# Window Managers background. #' + echo '# #' + echo '# XDirectFB reads ~/.xinitrc or #' + echo '# /etc/X11/xinit/xinitrc by default so please #' + echo '# edit this to you likeing. #' + echo '# #' + echo '#######################################################' + echo +} |