blob: e1a1c6d84886610dab190318d0aaeae37fa0a1dc (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit autotools eutils multilib
DESCRIPTION="Fireflies screensaver: Wicked cool eye candy"
HOMEPAGE="http://somewhere.fscked.org/proj/fireflies/"
SRC_URI="http://somewhere.fscked.org/proj/${PN}/files/${P}.tar.gz"
LICENSE="GPL-2 HPND" # HPND is for libgfx, see src_unpack()
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="media-libs/libsdl[X,opengl,video]
virtual/glu
virtual/opengl
x11-libs/libX11"
DEPEND="${RDEPEND}"
DOCS=( ChangeLog debian/README.Debian README TODO )
src_unpack() {
unpack ${A}
cd "${S}"
tar -xzf libgfx-1.0.1.tar.gz
}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-build_system.patch \
"${FILESDIR}"/${P}-glx-detection.patch \
"${FILESDIR}"/${P}-linking.patch \
"${FILESDIR}"/${P}-gcc4{3,4}.patch \
"${FILESDIR}"/${P}-libgfx-libpng1{5,6}.patch
eautoreconf
}
src_configure() {
econf \
--with-confdir=/usr/share/xscreensaver/config \
--with-bindir="/usr/$(get_libdir)/misc/xscreensaver"
}
src_install() {
exeinto /usr/lib # FHS: internal binaries
newexe {,${PN}-}add-xscreensaver
default
}
|