blob: 019f035a1924aa7e4a91e48888ed4f8c100bf0f9 (
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
|
# 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.7 2006/12/18 16:31:31 mr_bones_ 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
}
|