summaryrefslogtreecommitdiff
blob: 94c9b71008b95411c8a8a05d789c1ccf3710e119 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-misc/xlockmore/xlockmore-5.03-r2.ebuild,v 1.1 2002/03/06 23:38:24 g2boojum Exp $

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

DEPEND="virtual/x11 media-libs/freetype
	opengl? ( virtual/opengl )
	pam? ( sys-libs/pam )
	nas? ( media-libs/nas )
	esd? ( media-sound/esound )"
	# motif? ( >=x11-libs/openmotif-2.1.30-r1 )
	# gtk? ( x11-libs/gtk+ )

src_compile() {

	local myconf

	use pam && myconf="--enable-pam"
	use nas || myconf="${myconf} --without-nas"
	use esd && myconf="${myconf} --with-esound"
	use opengl || myconf="${myconf} --without-opengl"
	#use motif || myconf="${myconf} --without-motif"
	#use gtk || myconf="${myconf} --without-gtk"
	# sigh... broken configure script and/or makefile...
	myconf="${myconf} --without-motif --without-gtk"

	./configure --prefix=/usr --mandir=${prefix}/man/man1 \
		--sharedstatedir=/usr/share/xlockmore --host=${CHOST} ${myconf} || die

	emake || die

	# configure script seems to suffer braindamage and doesn't setup
	# correct makefiles for these, so they are disabled for now until
	# some kind soul wants to submit a patch ;)

	#if [ "`use gtk`" ] ; then
	#	cd ${S}/xglock
	#	make all || die
	#fi

	#if [ "`use motif`" ] ; then
	#	cd ${S}/xmlock
	#	make all || die
	#fi

    
}

src_install () {

	make prefix=${D}/usr mandir=${D}/usr/man/man1 xapploaddir=${D}/usr/X11R6/lib/X11/app-defaults install || die

	exeinto /usr/bin

	# known issue: how do you tell xlock where its sounds are?
	insinto /usr/share/xlockmore
	doins sounds/*

#	use motif && doexe ${S}/xmlock/xmlock 
#	use gtk && doexe ${S}/xglock/xglock

	dodoc docs/* README 
#	use gtk && dodoc xglock/xglockrc xglock/README.xglock

}