blob: f6a78cdb315c2f0ec1717ef9fd4ec8ae60e0b70b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/flwm/flwm-1.00-r4.ebuild,v 1.9 2005/05/10 09:32:47 dholm Exp $
inherit eutils
IUSE="opengl"
DESCRIPTION="A lightweight window manager based on fltk"
SRC_URI="http://flwm.sourceforge.net/${P}.tgz"
HOMEPAGE="http://flwm.sourceforge.net"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc amd64"
DEPEND="virtual/x11
>=x11-libs/fltk-1.0
opengl? ( virtual/opengl )"
#Configuration of the appearance and behavior of flwm
#must be done at compile time, i.e. there is
#no .flwmrc file or interactive configuring while
#running. To quote the man page, "gcc is your friend,"
#so this type of configuration must be done at compile
#time by editing the config.h file. I can't see any
#way to do this automagically so we'll echo a message
#in pkg_postinst to tell the user to 'ebuild unpack'
#and edit the config.h to their liking.
src_compile() {
use opengl && export X_EXTRA_LIBS=-lGL
if has_version '>=x11-libs/fltk-1.1' ; then
export CXXFLAGS="${CXXFLAGS} -I/usr/include/fltk-1.1"
export LIBS="-L/usr/lib/fltk-1.1"
epatch ${FILESDIR}/fltk1.1.patch
else # fltk-1.0
export CXXFLAGS="${CXXFLAGS} -I/usr/include/fltk-1.0"
export LIBS="-L/usr/lib/fltk-1.0"
fi
econf || die
make || die
}
src_install() {
doman flwm.1
dodoc README flwm_wmconfig
into /usr
dobin flwm
}
pkg_postinst() {
einfo "Customization of behaviour and appearance of"
einfo "flwm requires manually editing the config.h"
einfo "source file. If you want to change the defaults,"
einfo "do the following:"
einfo ""
einfo "\tebuild ${P}.ebuild unpack"
einfo "\t${EDITOR} ${S}/config.h "
einfo "\tebuild ${P} compile install qmerge"
}
|