/[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.9 - (hide annotations) (download)
Sun Jul 29 17:50:18 2012 UTC (9 months, 3 weeks ago) by armin76
Branch: MAIN
Changes since 1.8: +2 -2 lines
alpha/sparc stable wrt #414489

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.9 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.38.ebuild,v 1.8 2012/05/21 10:00:44 phajdan.jr Exp $
4 jer 1.1
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 armin76 1.9 KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86"
15 jer 1.1 IUSE="crypt debug gtk imagemagick motif nas opengl pam truetype xinerama xlockrc"
16    
17 jer 1.2 REQUIRED_USE="
18     || ( crypt pam )
19     "
20    
21 jer 1.1 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/openmotif-2.3:0 )
29     nas? ( media-libs/nas )
30     opengl? (
31     media-libs/mesa
32     truetype? ( >=media-libs/ftgl-2.1.3_rc5 )
33     )
34     pam? ( virtual/pam )
35     truetype? ( media-libs/freetype:2 )
36     xinerama? ( x11-libs/libXinerama )"
37     DEPEND="${RDEPEND}
38 jdhore 1.3 virtual/pkgconfig
39 jer 1.1 x11-proto/xineramaproto"
40    
41     MAKEOPTS="${MAKEOPTS} -j1"
42    
43     src_prepare() {
44     epatch \
45     "${FILESDIR}"/${PN}-5.31-configure.in.patch \
46     "${FILESDIR}"/${PN}-5.31-ldflags.patch
47    
48     eautoreconf
49     }
50    
51     src_configure() {
52     local myconf=""
53    
54     if use opengl && use truetype; then
55     myconf="${myconf} --with-ftgl"
56     append-flags -DFTGL213
57     else
58     myconf="${myconf} --without-ftgl"
59     fi
60    
61     econf \
62     --enable-vtlock \
63     --enable-syslog \
64     $(use_enable xlockrc) \
65     $(use_enable pam) \
66     --disable-use-mb \
67     --enable-appdefaultdir=/usr/share/X11/app-defaults \
68     $(use_with motif) \
69     $(use_with imagemagick magick) \
70     $(use_with debug editres) \
71     $(use_with truetype ttf) \
72     $(use_with truetype freetype) \
73     $(use_with opengl) \
74     $(use_with opengl mesa) \
75     $(use_with xinerama) \
76     --without-esound \
77     $(use_with nas) \
78     $(use_with crypt) \
79     $(use_with gtk gtk2) \
80     --without-gtk \
81     ${myconf}
82     }
83    
84     src_install() {
85     einstall xapploaddir="${D}/usr/share/X11/app-defaults" \
86     mandir="${D}/usr/share/man/man1" INSTPGMFLAGS=""
87    
88     pamd_mimic_system xlock auth
89    
90     if use pam; then
91     fperms 755 /usr/bin/xlock
92     else
93     fperms 4755 /usr/bin/xlock
94     fi
95    
96     dohtml docs/xlock.html
97     dodoc README docs/{3d.howto,cell_automata,HACKERS.GUIDE,Purify,Revisions,TODO}
98     }

  ViewVC Help
Powered by ViewVC 1.1.13