summaryrefslogtreecommitdiff
blob: e028f0a4296d9a744293577a656496730160bb3c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fox/fox-1.0.53.ebuild,v 1.4 2006/09/24 08:27:27 dberkholz Exp $

inherit toolchain-funcs flag-o-matic fox

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~alpha ~hppa ~ia64 ~ppc ~ppc64 ~sparc"
IUSE="cups jpeg opengl png tiff zlib"

RDEPEND="x11-libs/libXrandr
	x11-libs/libXcursor
	cups? ( net-print/cups )
	jpeg? ( >=media-libs/jpeg-6b )
	opengl? ( virtual/opengl virtual/glu )
	png? ( >=media-libs/libpng-1.2.5 )
	tiff? ( >=media-libs/tiff-3.5.7 )
	zlib? ( >=sys-libs/zlib-1.1.4 )"
DEPEND="${RDEPEND}
	x11-proto/xextproto
	x11-libs/libXt"

FOXCONF="$(use_enable cups) \
	$(use_enable jpeg) \
	$(use_enable png) \
	$(use_enable tiff) \
	$(use_enable zlib)"

# fox-1.0 incorrectly detects mesa on xorg-x11-6.8.2
use opengl \
	&& FOXCONF="${FOXCONF} --with-opengl=opengl" \
	|| FOXCONF="${FOXCONF} --without-opengl"

src_compile() {
	if [[ $(gcc-major-version) -ge 4 ]]; then
		append-flags -ffriend-injection
	fi
	fox_src_compile
}