# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools fixheadtails flag-o-matic pam DESCRIPTION="Draws fireworks and zooming, fading flares" HOMEPAGE="http://chezgomez.net/cosmos" XSCREENSAVER_P="xscreensaver-5.00" SRC_URI="${HOMEPAGE}/${P}.tgz http://www.chezgomez.net/cosmos/cosmos-1.0.tgz http://www.jwz.org/xscreensaver/${XSCREENSAVER_P}.tar.gz" LICENSE="GPL-1" SLOT="0" KEYWORDS="~x86" DEPEND="virtual/x11 x11-misc/xscreensaver media-libs/svgalib" src_unpack() { unpack ${A} cd "${S}" unpack ${XSCREENSAVER_P}.tar.gz mv ${WORKDIR}/${XSCREENSAVER_P} ${WORKDIR}/xscreensaver # This ain't legal C++. # epatch ${FILESDIR}/${P}-force-compile.patch pushd ${WORKDIR} popd } src_compile() { pushd ${WORKDIR}/xscreensaver econf \ --enable-hackdir=/usr/lib/xscreensaver \ --x-libraries=/usr/X11R6/lib \ --x-includes=/usr/X11R6/include \ --with-mit-ext \ --with-dpms-ext \ --with-xf86vmode-ext \ --with-xf86gamma-ext \ --with-proc-interrupts \ --with-xpm \ --with-xshm-ext \ --with-xdbe-ext \ --enable-locking \ ${myconf} || die make -C utils || die make -C hacks screenhack.o || die popd emake || die } src_install() { # make install in Makefile is almost as dumbass as `#endif;' dodir /usr/lib/xscreensaver exeinto /usr/lib/xscreensaver doexe cosmos dodoc README }