blob: dd07987fdf5e30e37ea02645d86e4e3b8bc5d002 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.31.ebuild,v 1.5 2010/12/08 03:22:46 jer Exp $
EAPI=2
inherit autotools eutils flag-o-matic pam
DESCRIPTION="Just another screensaver application for X"
HOMEPAGE="http://www.tux.org/~bagleyd/xlockmore.html"
SRC_URI="http://ftp.tux.org/pub/tux/bagleyd/${PN}/${P}/${P}.tar.bz2"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 hppa ppc ~ppc64 ~sparc x86"
IUSE="crypt debug esd gtk motif nas opengl pam truetype xinerama xlockrc"
RDEPEND="x11-libs/libX11
x11-libs/libXext
x11-libs/libXpm
x11-libs/libXt
x11-libs/libXmu
opengl? ( media-libs/mesa
truetype? ( >=media-libs/ftgl-2.1.3_rc5 ) )
truetype? ( media-libs/freetype:2 )
pam? ( virtual/pam )
nas? ( media-libs/nas )
esd? ( media-sound/esound )
motif? ( >=x11-libs/openmotif-2.3:0 )
gtk? ( x11-libs/gtk+:2 )
xinerama? ( x11-libs/libXinerama )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
x11-proto/xineramaproto"
MAKEOPTS="${MAKEOPTS} -j1"
src_prepare() {
epatch "${FILESDIR}"/${P}-configure.in.patch
epatch "${FILESDIR}"/${P}-ldflags.patch
eautoreconf
}
src_configure() {
local myconf=""
if use opengl && use truetype; then
myconf="${myconf} --with-ftgl"
append-flags -DFTGL213
else
myconf="${myconf} --without-ftgl"
fi
econf \
--enable-vtlock \
--enable-syslog \
$(use_enable xlockrc) \
$(use_enable pam) \
--disable-use-mb \
--enable-appdefaultdir=/usr/share/X11/app-defaults \
$(use_with motif) \
$(use_with debug editres) \
$(use_with truetype ttf) \
$(use_with truetype freetype) \
$(use_with opengl) \
$(use_with opengl mesa) \
$(use_with xinerama) \
$(use_with esd esound) \
$(use_with nas) \
$(use_with crypt) \
$(use_with gtk gtk2) \
--without-gtk \
${myconf}
}
src_install() {
einstall xapploaddir="${D}/usr/share/X11/app-defaults" \
mandir="${D}/usr/share/man/man1" INSTPGMFLAGS="" \
|| die "einstall failed"
pamd_mimic_system xlock auth
if use pam; then
fperms 755 /usr/bin/xlock
else
fperms 4755 /usr/bin/xlock
fi
dohtml docs/xlock.html
dodoc README docs/{3d.howto,cell_automata,HACKERS.GUIDE,Purify,Revisions,TODO}
}
|