# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Michael Nazaroff # /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 }