aboutsummaryrefslogtreecommitdiff
blob: 475f34f2b42ec638455f43623e8e57114efc5771 (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
69
70
71
72
73
74
75
76
77
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit toolchain-funcs enlightenment_svn

DESCRIPTION="The Enlightenment ecore library."
HOMEPAGE="http://enlightenment.org"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm ~x86 ~amd64"
IUSE="ssl curl X xcb opengl directfb fbcon sdl"

RDEPEND="=x11-libs/evas-${PVR}
	 ssl?      ( dev-libs/openssl )
	 curl?     ( net-misc/curl )
	 X?        ( x11-libs/libXrender
		     x11-libs/libXtst )
	 xcb?      ( x11-libs/libxcb )
	 opengl?   ( virtual/opengl )
	 directfb? ( dev-libs/DirectFB )
	 sdl?      ( media-libs/libsdl )"

DEPEND="X? ( x11-proto/xextproto
	     x11-proto/xproto )"

src_unpack() {
	subversion_src_unpack

	cd "${S}"

	# Point to the sysroot SDL includes/libs on cross-compilation
	if tc-is-cross-compiler; then
		sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}'/usr --cflags`%' configure.ac
	fi

	touch README
	touch ABOUT-NLS

	eautoreconf || die "Autoreconf failed"
}

src_compile() {
	local myconf

	# See the complete list at the end of this file
	myconf="$(use_enable ssl      openssl)                    \
		$(use_enable curl)                                \
		--enable-ecore-job                                \
		--enable-ecore-con                                \
		--enable-ecore-ipc                                \
		--enable-ecore-config                             \
		--enable-ecore-txt                                \
		--enable-ecore-evas                               \
		--enable-ecore-imf                                \
		--enable-ecore-imf-evas                           \
		$(use_enable X        simple-x11)                 \
		$(use_enable xcb      ecore-x-xcb)                \
		$(use_enable X        ecore-x)                    \
		$(use_enable opengl   ecore-evas-opengl-x11)      \
		$(use_enable X        ecore-evas-xrender-x11)     \
		$(use_enable X        ecore-evas-software-16-x11) \
		$(use_enable directfb ecore-directfb)             \
		$(use_enable directfb ecore-evas-dfb)             \
		$(use_enable fbcon    ecore-fb)                   \
		$(use_enable fbcon    ecore-evas-fb)              \
		$(use_enable sdl      ecore-sdl)                  \
		$(use_enable sdl      ecore-evas-sdl)             \
		--enable-ecore-evas-buffer                        \
		--enable-ecore-file                               \
		--enable-inotify                                  \
		--disable-poll"

	econf ${myconf} || die "Configuration failed"
	emake || die "Make failed"
}