blob: 587287098c17dc5886c29cccdcde8d20f196322f (
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
|
# 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.2 2004/02/29 15:14:25 aliz Exp $
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"
RDEPEND="virtual/x11
virtual/opengl
media-libs/libsdl"
DEPEND="${RDEPEND}
x11-libs/fltk"
src_unpack() {
unpack ${A}
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
}
|