Lines 1-6
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.3.ebuild,v 1.2 2010/03/14 14:55:52 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.3.ebuild,v 1.2 2010/03/14 14:55:52 ssuominen Exp $ |
|
|
4 |
EAPI="2" |
4 |
|
5 |
|
5 |
inherit eutils toolchain-funcs |
6 |
inherit eutils toolchain-funcs |
6 |
|
7 |
|
Lines 41-53
Link Here
|
41 |
sysfs? ( sys-fs/sysfsutils ) |
42 |
sysfs? ( sys-fs/sysfsutils ) |
42 |
zlib? ( sys-libs/zlib ) |
43 |
zlib? ( sys-libs/zlib ) |
43 |
truetype? ( >=media-libs/freetype-2.0.1 ) |
44 |
truetype? ( >=media-libs/freetype-2.0.1 ) |
44 |
X? ( x11-libs/libXext x11-libs/libX11 )" |
45 |
X? ( x11-libs/libXext x11-libs/libX11 ) |
|
|
46 |
input_devices_tslib? ( x11-libs/tslib )" |
45 |
DEPEND="${RDEPEND} |
47 |
DEPEND="${RDEPEND} |
46 |
X? ( x11-proto/xextproto x11-proto/xproto )" |
48 |
X? ( x11-proto/xextproto x11-proto/xproto )" |
47 |
|
49 |
|
48 |
src_unpack() { |
50 |
src_prepare() { |
49 |
unpack ${A} |
|
|
50 |
cd "${S}" |
51 |
epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch |
51 |
epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch |
52 |
epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch |
52 |
epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch |
53 |
epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch |
53 |
epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch |
Lines 72-77
Link Here
|
72 |
sed -i \ |
72 |
sed -i \ |
73 |
-e '/X11_LIBS/s:-L/usr/X11R6/lib::' \ |
73 |
-e '/X11_LIBS/s:-L/usr/X11R6/lib::' \ |
74 |
-e '/CFLAGS/s:-I/usr/X11R6/include::' \ |
74 |
-e '/CFLAGS/s:-I/usr/X11R6/include::' \ |
|
|
75 |
-e '/tslib/s:1.0.0:1.0:' \ |
75 |
configure |
76 |
configure |
76 |
} |
77 |
} |
77 |
|
78 |
|
Lines 87-93
Link Here
|
87 |
echo ${devs:-none} |
88 |
echo ${devs:-none} |
88 |
} |
89 |
} |
89 |
|
90 |
|
90 |
src_compile() { |
91 |
src_configure() { |
91 |
local sdlconf="--disable-sdl" |
92 |
local sdlconf="--disable-sdl" |
92 |
if use sdl ; then |
93 |
if use sdl ; then |
93 |
# since SDL can link against DirectFB and trigger a |
94 |
# since SDL can link against DirectFB and trigger a |
Lines 120-126
Link Here
|
120 |
--with-inputdrivers="$(driver_list input_devices ${IUSE_INPUT_DEVICES})" \ |
121 |
--with-inputdrivers="$(driver_list input_devices ${IUSE_INPUT_DEVICES})" \ |
121 |
--disable-vnc \ |
122 |
--disable-vnc \ |
122 |
|| die |
123 |
|| die |
123 |
emake || die |
|
|
124 |
} |
124 |
} |
125 |
|
125 |
|
126 |
src_install() { |
126 |
src_install() { |