1 |
vapier 11/02/21 01:05:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: DirectFB-1.4.9.ebuild |
5 |
Log: |
6 |
Version bump. Fix building with libpng-1.5.x. |
7 |
|
8 |
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.114 dev-libs/DirectFB/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/ChangeLog?rev=1.114&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/ChangeLog?rev=1.114&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/ChangeLog?r1=1.113&r2=1.114 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v |
20 |
retrieving revision 1.113 |
21 |
retrieving revision 1.114 |
22 |
diff -u -r1.113 -r1.114 |
23 |
--- ChangeLog 22 Jan 2011 18:11:57 -0000 1.113 |
24 |
+++ ChangeLog 21 Feb 2011 01:05:55 -0000 1.114 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/DirectFB |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.113 2011/01/22 18:11:57 xarthisius Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.114 2011/02/21 01:05:55 vapier Exp $ |
30 |
+ |
31 |
+*DirectFB-1.4.9 (21 Feb 2011) |
32 |
+ |
33 |
+ 21 Feb 2011; Mike Frysinger <vapier@g.o> +DirectFB-1.4.9.ebuild, |
34 |
+ +files/DirectFB-1.4.9-libpng-1.5.patch: |
35 |
+ Version bump. Fix building with libpng-1.5.x. |
36 |
|
37 |
22 Jan 2011; Kacper Kowalik <xarthisius@g.o> DirectFB-1.4.5.ebuild: |
38 |
ppc64 stable wrt #343103 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/DirectFB/DirectFB-1.4.9.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.9.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.9.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: DirectFB-1.4.9.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.9.ebuild,v 1.1 2011/02/21 01:05:55 vapier Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit eutils toolchain-funcs |
55 |
|
56 |
# Map Gentoo IUSE expand vars to DirectFB drivers |
57 |
# echo `sed -n '/Possible gfxdrivers are:/,/^$/{/Possible/d;s:\[ *::;s:\].*::;s:,::g;p}' configure.in` |
58 |
I_TO_D_intel="i810,i830" |
59 |
I_TO_D_mga="matrox" |
60 |
I_TO_D_r128="ati128" |
61 |
I_TO_D_s3="unichrome" |
62 |
I_TO_D_sis="sis315" |
63 |
I_TO_D_via="cle266" |
64 |
# cyber5k davinci ep9x gl omap pxa3xx sh772x |
65 |
IUSE_VIDEO_CARDS=" intel mach64 mga neomagic nsc nvidia r128 radeon s3 savage sis tdfx via vmware" |
66 |
IUV=${IUSE_VIDEO_CARDS// / video_cards_} |
67 |
# echo `sed -n '/Possible inputdrivers are:/,/^$/{/\(Possible\|^input\)/d;s:\[ *::;s:\].*::;s:,::g;p}' configure.in` |
68 |
I_TO_D_elo2300="elo-input" |
69 |
I_TO_D_evdev="linuxinput" |
70 |
I_TO_D_mouse="ps2mouse serialmouse" |
71 |
# dbox2remote dreamboxremote gunze h3600_ts penmount sonypijogdial ucb1x00 wm97xx zytronic |
72 |
IUSE_INPUT_DEVICES=" dynapro elo2300 evdev joystick keyboard lirc mouse mutouch tslib" |
73 |
IUD=${IUSE_INPUT_DEVICES// / input_devices_} |
74 |
|
75 |
DESCRIPTION="Thin library on top of the Linux framebuffer devices" |
76 |
HOMEPAGE="http://www.directfb.org/" |
77 |
SRC_URI="http://directfb.org/downloads/Core/${PN}-${PV:0:3}/${P}.tar.gz |
78 |
http://directfb.org/downloads/Old/${P}.tar.gz" |
79 |
|
80 |
LICENSE="LGPL-2.1" |
81 |
SLOT="0" |
82 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh -sparc ~x86" |
83 |
IUSE="debug doc fbcon gif jpeg mmx png sdl sse static-libs sysfs truetype v4l v4l2 X zlib ${IUV} ${IUD}" |
84 |
|
85 |
RDEPEND="sdl? ( media-libs/libsdl ) |
86 |
gif? ( media-libs/giflib ) |
87 |
png? ( media-libs/libpng ) |
88 |
jpeg? ( virtual/jpeg ) |
89 |
sysfs? ( sys-fs/sysfsutils ) |
90 |
zlib? ( sys-libs/zlib ) |
91 |
truetype? ( >=media-libs/freetype-2.0.1 ) |
92 |
X? ( x11-libs/libXext x11-libs/libX11 )" |
93 |
DEPEND="${RDEPEND} |
94 |
X? ( x11-proto/xextproto x11-proto/xproto )" |
95 |
|
96 |
src_prepare() { |
97 |
epatch \ |
98 |
"${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch \ |
99 |
"${FILESDIR}"/${PN}-1.2.0-headers.patch \ |
100 |
"${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch \ |
101 |
"${FILESDIR}"/${PN}-1.4.9-libpng-1.5.patch |
102 |
|
103 |
# the media subdir uses sqrt(), so make sure it links in -lm |
104 |
sed -i \ |
105 |
-e '/libdirectfb_media_la_LIBADD/s:$: -lm:' \ |
106 |
src/media/Makefile.in || die |
107 |
|
108 |
# Avoid invoking `ld` directly #300779 |
109 |
find . -name Makefile.in -exec sed -i \ |
110 |
'/[$](LD)/s:$(LD) -o $@ -r:$(CC) $(LDFLAGS) $(CFLAGS) -Wl,-r -nostdlib -o $@:' {} + |
111 |
} |
112 |
|
113 |
driver_list() { |
114 |
local pfx=$1 |
115 |
local dev devs map |
116 |
shift |
117 |
for dev in "$@" ; do |
118 |
use ${pfx}_${dev} || continue |
119 |
map="I_TO_D_${dev}" |
120 |
devs=${devs:+${devs},}${!map:-${dev}} |
121 |
done |
122 |
echo ${devs:-none} |
123 |
} |
124 |
|
125 |
src_configure() { |
126 |
local sdlconf="--disable-sdl" |
127 |
if use sdl ; then |
128 |
# since SDL can link against DirectFB and trigger a |
129 |
# dependency loop, only link against SDL if it isn't |
130 |
# broken #61592 |
131 |
echo 'int main(){}' > sdl-test.c |
132 |
$(tc-getCC) sdl-test.c -lSDL 2>/dev/null \ |
133 |
&& sdlconf="--enable-sdl" \ |
134 |
|| ewarn "Disabling SDL since libSDL.so is broken" |
135 |
fi |
136 |
|
137 |
econf \ |
138 |
--disable-dependency-tracking \ |
139 |
$(use_enable static-libs static) \ |
140 |
$(use_enable X x11) \ |
141 |
$(use_enable fbcon fbdev) \ |
142 |
$(use_enable mmx) \ |
143 |
$(use_enable sse) \ |
144 |
$(use_enable jpeg) \ |
145 |
$(use_enable png) \ |
146 |
$(use_enable gif) \ |
147 |
$(use_enable truetype freetype) \ |
148 |
$(use_enable debug) \ |
149 |
$(use_enable sysfs) \ |
150 |
$(use_enable zlib) \ |
151 |
$(use_enable v4l video4linux) \ |
152 |
$(use_enable v4l2 video4linux2) \ |
153 |
${sdlconf} \ |
154 |
--with-gfxdrivers="$(driver_list video_cards ${IUSE_VIDEO_CARDS})" \ |
155 |
--with-inputdrivers="$(driver_list input_devices ${IUSE_INPUT_DEVICES})" \ |
156 |
--disable-vnc |
157 |
} |
158 |
|
159 |
src_install() { |
160 |
emake DESTDIR="${D}" install || die "make install failed" |
161 |
dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO |
162 |
use doc && dohtml -r docs/html/* |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
ewarn "Each DirectFB update breaks DirectFB related applications." |
167 |
ewarn "Please run \"revdep-rebuild\" which can be" |
168 |
ewarn "found by emerging the package 'gentoolkit'." |
169 |
ewarn |
170 |
ewarn "If you have an ALPS touchpad, then you might get your mouse" |
171 |
ewarn "unexpectedly set in absolute mode in all DirectFB applications." |
172 |
ewarn "This can be fixed by removing linuxinput from INPUT_DEVICES." |
173 |
} |