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