Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/DirectFB: DirectFB-1.2.7.ebuild ChangeLog
Date: Tue, 20 Jan 2009 22:50:31
Message-Id: E1LPPQR-0006mP-VU@stork.gentoo.org
1 vapier 09/01/20 22:50:27
2
3 Modified: ChangeLog
4 Added: DirectFB-1.2.7.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
8
9 Revision Changes Path
10 1.74 dev-libs/DirectFB/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/DirectFB/ChangeLog?rev=1.74&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/DirectFB/ChangeLog?rev=1.74&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/DirectFB/ChangeLog?r1=1.73&r2=1.74
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v
19 retrieving revision 1.73
20 retrieving revision 1.74
21 diff -u -r1.73 -r1.74
22 --- ChangeLog 9 Oct 2008 19:30:53 -0000 1.73
23 +++ ChangeLog 20 Jan 2009 22:50:27 -0000 1.74
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-libs/DirectFB
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.73 2008/10/09 19:30:53 vapier Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.74 2009/01/20 22:50:27 vapier Exp $
30 +
31 +*DirectFB-1.2.7 (20 Jan 2009)
32 +
33 + 20 Jan 2009; Mike Frysinger <vapier@g.o>
34 + +files/DirectFB-1.2.7-CFLAGS.patch, +DirectFB-1.2.7.ebuild:
35 + Version bump.
36
37 *DirectFB-1.2.6 (09 Oct 2008)
38
39
40
41
42 1.1 dev-libs/DirectFB/DirectFB-1.2.7.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/DirectFB/DirectFB-1.2.7.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/DirectFB/DirectFB-1.2.7.ebuild?rev=1.1&content-type=text/plain
46
47 Index: DirectFB-1.2.7.ebuild
48 ===================================================================
49 # Copyright 1999-2009 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.2.7.ebuild,v 1.1 2009/01/20 22:50:27 vapier Exp $
52
53 inherit eutils toolchain-funcs
54
55 IUSE_VIDEO_CARDS="ati128 cle266 cyber5k i810 i830 mach64 matrox neomagic none nsc nvidia radeon savage sis315 tdfx unichrome"
56 IUSE_INPUT_DEVICES="dbox2remote elo-input gunze h3600_ts joystick keyboard dreamboxremote linuxinput lirc mutouch none permount ps2mouse serialmouse sonypijogdial wm97xx"
57
58 DESCRIPTION="Thin library on top of the Linux framebuffer devices"
59 HOMEPAGE="http://www.directfb.org/"
60 SRC_URI="http://directfb.org/downloads/Core/${P}.tar.gz
61 http://directfb.org/downloads/Old/${P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh -sparc ~x86"
66 IUSE="debug fbcon fusion gif jpeg mmx png sdl sse sysfs truetype v4l v4l2 X zlib"
67
68 # fusion? ( >=dev-libs/linux-fusion-8.0.0 )
69 RDEPEND="sdl? ( media-libs/libsdl )
70 gif? ( media-libs/giflib )
71 png? ( media-libs/libpng )
72 jpeg? ( media-libs/jpeg )
73 sysfs? ( sys-fs/sysfsutils )
74 zlib? ( sys-libs/zlib )
75 truetype? ( >=media-libs/freetype-2.0.1 )
76 X? ( x11-libs/libXext x11-libs/libX11 )"
77 DEPEND="${RDEPEND}
78 X? ( x11-proto/xextproto x11-proto/xproto )"
79
80 pkg_setup() {
81 if [[ -z ${VIDEO_CARDS} ]] ; then
82 ewarn "All video drivers will be built since you did not specify"
83 ewarn "via the VIDEO_CARDS variable what video card you use."
84 ewarn "DirectFB supports: ${IUSE_VIDEO_CARDS} all none"
85 echo
86 fi
87 if [[ -z ${INPUT_DEVICES} ]] ; then
88 ewarn "All input drivers will be built since you did not specify"
89 ewarn "via the INPUT_DEVICES variable which input drivers to use."
90 ewarn "DirectFB supports: ${IUSE_INPUT_DEVICES} all none"
91 echo
92 fi
93 }
94
95 src_unpack() {
96 unpack ${A}
97 cd "${S}"
98 epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch
99 epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch
100 epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch
101
102 # This is only a partial fix to the X11 order issue #201626. It's just
103 # the only part we need in order to make the issue go away. Upstream
104 # bug tracker is currently broken, so list things to do here:
105 # configure.in:
106 # - only add -I/usr/X11R6/include to X11_CFLAGS as needed
107 # - only add -L/usr/X11R6/lib to X11_LIBS as needed
108 # systems/x11/Makefile.am:
109 # - add $(X11_LIBS) to end of _LIBADD variables
110 sed -i \
111 -e '/X11_LIBS/s:-L/usr/X11R6/lib::' \
112 -e '/CFLAGS/s:-I/usr/X11R6/include::' \
113 configure
114 }
115
116 src_compile() {
117 local vidcards card input inputdrivers
118 if [[ ${VIDEO_CARDS+set} == "set" ]] ; then
119 for card in ${VIDEO_CARDS} ; do
120 has ${card} ${IUSE_VIDEO_CARDS} && vidcards="${vidcards},${card}"
121 #use video_cards_${card} && vidcards="${vidcards},${card}"
122 done
123 [[ -z ${vidcards} ]] \
124 && vidcards="none" \
125 || vidcards=${vidcards:1}
126 else
127 vidcards="all"
128 fi
129 if [[ ${INPUT_DEVICES+set} == "set" ]] ; then
130 for input in ${INPUT_DEVICES} ; do
131 has ${input} ${IUSE_INPUT_DEVICES} && inputdrivers="${inputdrivers},${input}"
132 #use input_devics_${input} && inputdrivers="${inputdrivers},${input}"
133 done
134 [[ -z ${inputdrivers} ]] \
135 && inputdrivers="none" \
136 || inputdrivers=${inputdrivers:1}
137 else
138 inputdrivers="all"
139 fi
140
141 local sdlconf="--disable-sdl"
142 if use sdl ; then
143 # since SDL can link against DirectFB and trigger a
144 # dependency loop, only link against SDL if it isn't
145 # broken #61592
146 echo 'int main(){}' > sdl-test.c
147 $(tc-getCC) sdl-test.c -lSDL 2>/dev/null \
148 && sdlconf="--enable-sdl" \
149 || ewarn "Disabling SDL since libSDL.so is broken"
150 fi
151
152 econf \
153 --enable-static \
154 $(use_enable X x11) \
155 $(use_enable fbcon fbdev) \
156 $(use_enable mmx) \
157 $(use_enable sse) \
158 $(use_enable jpeg) \
159 $(use_enable png) \
160 $(use_enable gif) \
161 $(use_enable truetype freetype) \
162 $(use_enable fusion multi) \
163 $(use_enable debug) \
164 $(use_enable sysfs) \
165 $(use_enable zlib) \
166 $(use_enable v4l video4linux) \
167 $(use_enable v4l2 video4linux2) \
168 ${sdlconf} \
169 --with-gfxdrivers="${vidcards}" \
170 --with-inputdrivers="${inputdrivers}" \
171 --disable-vnc \
172 || die
173 emake || die
174 }
175
176 src_install() {
177 emake DESTDIR="${D}" install || die "make install failed"
178 dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO
179 dohtml -r docs/html/*
180 }
181
182 pkg_postinst() {
183 ewarn "Each DirectFB update in the 0.9.xx series"
184 ewarn "breaks DirectFB related applications."
185 ewarn "Please run \"revdep-rebuild\" which can be"
186 ewarn "found by emerging the package 'gentoolkit'."
187 ewarn
188 ewarn "If you have an ALPS touchpad, then you might"
189 ewarn "get your mouse unexpectedly set in absolute"
190 ewarn "mode in all DirectFB applications."
191 ewarn "This can be fixed by removing linuxinput from"
192 ewarn "INPUT_DEVICES."
193 }