summaryrefslogtreecommitdiff
blob: e222a4b97fba3f2ddbb99707f420bf110e7c1b51 (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
# 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.2.18-r1.ebuild,v 1.5 2006/11/05 18:51:24 dang Exp $

inherit eutils toolchain-funcs flag-o-matic fox

LICENSE="LGPL-2.1"
SLOT="1.2"
KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 ~sparc x86"
IUSE="bzip2 cups jpeg opengl png threads tiff truetype zlib"

RDEPEND="x11-libs/libXrandr
	x11-libs/libXcursor
	x11-libs/fox-wrapper
	bzip2? ( >=app-arch/bzip2-1.0.2 )
	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 )
	truetype? ( =media-libs/freetype-2*
		virtual/xft )
	zlib? ( >=sys-libs/zlib-1.1.4 )"
DEPEND="${RDEPEND}
	x11-proto/xextproto
	x11-libs/libXt"

FOXCONF="$(use_enable bzip2 bz2lib) \
	$(use_enable cups) \
	$(use_enable jpeg) \
	$(use_with opengl) \
	$(use_enable png) \
	$(use_enable threads threadsafe) \
	$(use_enable tiff) \
	$(use_with truetype xft) \
	$(use_enable zlib)"

src_unpack() {
	fox_src_unpack
	epatch "${FILESDIR}"/${PV}-gcc4-fix-includes.patch
}

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