| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.38.ebuild,v 1.11 2012/12/27 16:52:26 pinkbyte Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit autotools eutils flag-o-matic pam
|
| 7 |
|
| 8 |
DESCRIPTION="Just another screensaver application for X"
|
| 9 |
HOMEPAGE="http://www.tux.org/~bagleyd/xlockmore.html"
|
| 10 |
SRC_URI="http://ftp.tux.org/pub/tux/bagleyd/${PN}/${P}/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="BSD GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86"
|
| 15 |
IUSE="crypt debug gtk imagemagick motif nas opengl pam truetype xinerama xlockrc"
|
| 16 |
|
| 17 |
REQUIRED_USE="
|
| 18 |
|| ( crypt pam )
|
| 19 |
"
|
| 20 |
|
| 21 |
RDEPEND="x11-libs/libX11
|
| 22 |
x11-libs/libXext
|
| 23 |
x11-libs/libXmu
|
| 24 |
x11-libs/libXpm
|
| 25 |
x11-libs/libXt
|
| 26 |
gtk? ( x11-libs/gtk+:2 )
|
| 27 |
imagemagick? ( media-gfx/imagemagick )
|
| 28 |
motif? ( >=x11-libs/motif-2.3:0 )
|
| 29 |
nas? ( media-libs/nas )
|
| 30 |
opengl? (
|
| 31 |
virtual/opengl
|
| 32 |
virtual/glu
|
| 33 |
truetype? ( >=media-libs/ftgl-2.1.3_rc5 )
|
| 34 |
)
|
| 35 |
pam? ( virtual/pam )
|
| 36 |
truetype? ( media-libs/freetype:2 )
|
| 37 |
xinerama? ( x11-libs/libXinerama )"
|
| 38 |
DEPEND="${RDEPEND}
|
| 39 |
virtual/pkgconfig
|
| 40 |
x11-proto/xineramaproto"
|
| 41 |
|
| 42 |
MAKEOPTS="${MAKEOPTS} -j1"
|
| 43 |
|
| 44 |
src_prepare() {
|
| 45 |
epatch \
|
| 46 |
"${FILESDIR}"/${PN}-5.31-configure.in.patch \
|
| 47 |
"${FILESDIR}"/${PN}-5.31-ldflags.patch
|
| 48 |
|
| 49 |
eautoreconf
|
| 50 |
}
|
| 51 |
|
| 52 |
src_configure() {
|
| 53 |
local myconf=""
|
| 54 |
|
| 55 |
if use opengl && use truetype; then
|
| 56 |
myconf="${myconf} --with-ftgl"
|
| 57 |
append-flags -DFTGL213
|
| 58 |
else
|
| 59 |
myconf="${myconf} --without-ftgl"
|
| 60 |
fi
|
| 61 |
|
| 62 |
econf \
|
| 63 |
--enable-vtlock \
|
| 64 |
--enable-syslog \
|
| 65 |
$(use_enable xlockrc) \
|
| 66 |
$(use_enable pam) \
|
| 67 |
--disable-use-mb \
|
| 68 |
--enable-appdefaultdir=/usr/share/X11/app-defaults \
|
| 69 |
$(use_with motif) \
|
| 70 |
$(use_with imagemagick magick) \
|
| 71 |
$(use_with debug editres) \
|
| 72 |
$(use_with truetype ttf) \
|
| 73 |
$(use_with truetype freetype) \
|
| 74 |
$(use_with opengl) \
|
| 75 |
$(use_with opengl mesa) \
|
| 76 |
$(use_with xinerama) \
|
| 77 |
--without-esound \
|
| 78 |
$(use_with nas) \
|
| 79 |
$(use_with crypt) \
|
| 80 |
$(use_with gtk gtk2) \
|
| 81 |
--without-gtk \
|
| 82 |
${myconf}
|
| 83 |
}
|
| 84 |
|
| 85 |
src_install() {
|
| 86 |
einstall xapploaddir="${D}/usr/share/X11/app-defaults" \
|
| 87 |
mandir="${D}/usr/share/man/man1" INSTPGMFLAGS=""
|
| 88 |
|
| 89 |
pamd_mimic_system xlock auth
|
| 90 |
|
| 91 |
if use pam; then
|
| 92 |
fperms 755 /usr/bin/xlock
|
| 93 |
else
|
| 94 |
fperms 4755 /usr/bin/xlock
|
| 95 |
fi
|
| 96 |
|
| 97 |
dohtml docs/xlock.html
|
| 98 |
dodoc README docs/{3d.howto,cell_automata,HACKERS.GUIDE,Purify,Revisions,TODO}
|
| 99 |
}
|