blob: 5b5b69352885fcbf384a3fd9f1f0d5b187d88944 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gliv/gliv-1.5.3.ebuild,v 1.2 2002/07/11 06:30:27 drobbins Exp $
S=${WORKDIR}/${P}
DESCRIPTION="An image viewer that uses OpenGL"
SRC_URI="http://gliv.tuxfamily.org/gliv-${PV}.tar.bz2"
HOMEPAGE="http://gliv.tuxfamily.org"
# Version 1.5.2 and later of gliv can use gtkglarea-1.99.0 or
# later, but will fail to compile if gtk+-2.0 is present, but
# not >=gtkglarea-1.99.0
#
# The basic theory here is that we just specify:
#
# DEPEND="x11-libs/gtk+ x11-libs/gtkglarea"
#
# which will pull in whatever versions of both that is
# not masked. We then check in src_compile() what version
# of gtkglarea should be used.
#
# Azarah - 20 Jun 2002
DEPEND="x11-libs/gtk+
media-libs/gdk-pixbuf
x11-libs/gtkglarea
virtual/opengl
>=dev-util/pkgconfig-0.12.0"
src_compile() {
local myconf=""
# Dont use gtk+-2.0 if ! gtkglarea >= 1.99.0
if ! (pkg-config gtk+-2.0) || ! (pkg-config gtkgl-2.0)
then
einfo "Using Gtk+-1.2 and GtkGL-1.2"
myconf="${myconf} --disable-gtk2"
else
einfo "Using Gtk+-2.0 and GtkGL-2.0"
fi
./configure --prefix=/usr \
--mandir=/usr/share/man \
--host=${CHOST} \
${myconf} || die
emake || die
}
src_install() {
make prefix=${D}/usr \
mandir=${D}/usr/share/man \
install || die
dodoc COPYING README NEWS THANKS
}
|