summaryrefslogtreecommitdiff
blob: 6525f0ee40f66de55721e656931dfe06f607e82d (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Ben Lutgens <blutgens@gentoo.org> 
# $Header: /var/cvsroot/gentoo-x86/app-misc/xlockmore/xlockmore-5.01.2.ebuild,v 1.4 2001/06/04 19:37:29 blutgens Exp $

#P=
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Just another screensaver application for X"
SRC_URI="ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/${A}"
HOMEPAGE="http://www.tux.org/~bagleyd/xlockmore.html"

DEPEND="opengl? ( >=media-libs/mesa-3.4.2 )"

src_compile() {

    local myconf
    if [ "`use pam`" ] ; then
    myconf="--enable-pam"
    fi
    if [ -z "`use nas`" ] ; then 
    myconf="--disable-nas"
    fi
    if [ "`use esd`" ] ; then
    myconf="--enable-esd"
    fi
    if [ -z "`use opengl`" ] ; then
    myconf="--disable-mesa"
    fi

    try ./configure --prefix=/usr --mandir=${prefix}/X11R6/man/man1 \
	--host=${CHOST} ${myconf}
    try make
    cd xglock/
    make

}

src_install () {

    try make prefix=${D}/usr mandir=${D}/usr/X11R6/man/man1 install
    exeinto /usr/X11R6/bin
    doexe xmlock/xmlock
    doexe xglock/xglock
    dodoc docs/* README xglock/xglockrc xglock/README.xglock

}