blob: a53e10e46da47c336370005d97333ab0cd3abf89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/fireflies/fireflies-2.06.ebuild,v 1.5 2004/04/26 01:46:30 lv Exp $
inherit eutils
IUSE=""
DESCRIPTION="Fireflies screensaver: Wicked cool eye candy"
HOMEPAGE="http://somewhere.fscked.org/fireflies/"
SRC_URI="http://somewhere.fscked.org/fireflies/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64"
RDEPEND="virtual/x11
virtual/opengl
media-libs/libsdl"
DEPEND="${RDEPEND}
x11-libs/fltk"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-configure.patch
epatch ${FILESDIR}/${P}-Make.include.in.patch
}
src_compile() {
local myconf
local -a mycflagsarr
local mycppflags
myconf="${myconf}
--with-bindir=/usr/lib/xscreensaver
--with-configdir=/usr/share/control-center/screensavers/"
mycflagsarr=($CFLAGS `fltk-config --cflags`)
mycppflags="${mycflagsarr[@]##-[^I]*}"
econf ${myconf} || die
emake \
CFLAGS="$CFLAGS `fltk-config --cflags`" \
LDLIBS="$LDLIBS `fltk-config --ldflags`" \
LDFLAGS="$LDFLAGS `fltk-config --ldflags`" \
CPPFLAGS="$CPPFLAGS ${mycppflags}" \
|| die
}
src_install() {
make DESTDIR=${D} install || die "install failed"
dodoc COPYING COMPILE README TODO
dobin add-xscreensaver
}
pkg_postinst() {
einfo
einfo "To use fireflies with XScreensaver you need to run"
einfo "/usr/bin/add-xscreensaver <path to your .xscreensaver file>"
einfo
}
|