/[gentoo-x86]/x11-misc/xlockmore/xlockmore-5.38.ebuild
Gentoo

Contents of /x11-misc/xlockmore/xlockmore-5.38.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Mar 23 16:46:59 2013 UTC (15 months, 2 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key A792A613)

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 }

  ViewVC Help
Powered by ViewVC 1.1.20