diff --git a/dev-libs/DirectFB/ChangeLog b/dev-libs/DirectFB/ChangeLog new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/ChangeLog @@ -0,0 +1,394 @@ +# ChangeLog for dev-libs/DirectFB +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.94 2010/01/06 19:07:57 vapier Exp $ + + 06 Jan 2010; Mike Frysinger DirectFB-1.4.2.ebuild: + Drop special "none" handling with VIDEO_CARDS/INPUT_DEVICES #299920 by + Jeroen Roovers. + + 05 Jan 2010; nixnut DirectFB-1.4.2.ebuild: + ppc stable #296263 + + 01 Jan 2010; Tobias Klausmann DirectFB-1.4.2.ebuild: + Stable on alpha, bug #296263 + + 31 Dec 2009; Brent Baude DirectFB-1.4.2.ebuild: + Marking DirectFB-1.4.2 ppc64 for bug 296263 + + 29 Dec 2009; Markus Meier DirectFB-1.4.2.ebuild: + amd64 stable, bug #296263 + + 09 Dec 2009; Christian Faulhammer + DirectFB-1.4.2.ebuild: + stable x86, bug 296263 + +*DirectFB-1.4.2 (29 Sep 2009) + + 29 Sep 2009; Mike Frysinger +DirectFB-1.4.2.ebuild: + Version bump #283922 by Victor Tseng. + +*DirectFB-1.2.9 (29 Sep 2009) + + 29 Sep 2009; Mike Frysinger +DirectFB-1.2.9.ebuild: + Version bump. + + 30 Apr 2009; Jeroen Roovers DirectFB-1.2.7.ebuild: + Stable for HPPA (bug #265042). + + 23 Apr 2009; Raúl Porcel DirectFB-1.2.7.ebuild: + arm/ia64/sh stable wrt #265042 + + 18 Apr 2009; Markus Meier DirectFB-1.2.7: + amd64/x86 stable, bug #265042 + + 15 Apr 2009; Brent Baude DirectFB-1.2.7.ebuild: + Marking DirectFB-1.2.7 ppc64 for bug 265042 + + 12 Apr 2009; Michael Sterrett + -files/DirectFB-0.9.25.1-headers.patch, -DirectFB-0.9.25.1.ebuild: + clean old + + 11 Apr 2009; nixnut DirectFB-1.2.6.ebuild, + DirectFB-1.2.7.ebuild: + ppc stable #265042 + + 07 Apr 2009; Tobias Klausmann DirectFB-1.2.7.ebuild: + Stable on alpha, bug #265042 + + 15 Mar 2009; Brent Baude DirectFB-1.2.6.ebuild: + Marking DirectFB-1.2.6 ppc64 for bug 255701 + + 23 Feb 2009; Raúl Porcel DirectFB-1.2.6.ebuild: + arm/ia64/sh stable wrt #255701 + + 06 Feb 2009; Jeroen Roovers DirectFB-1.2.6.ebuild: + Stable for HPPA (bug #255701). + + 01 Feb 2009; Tobias Klausmann DirectFB-1.2.6.ebuild: + Stable on alpha, bug #255701 + + 25 Jan 2009; Markus Meier DirectFB-1.2.6.ebuild: + amd64/x86 stable, bug #255701 + +*DirectFB-1.2.7 (20 Jan 2009) + + 20 Jan 2009; Mike Frysinger + +files/DirectFB-1.2.7-CFLAGS.patch, +DirectFB-1.2.7.ebuild: + Version bump. + +*DirectFB-1.2.6 (09 Oct 2008) + + 09 Oct 2008; Mike Frysinger +DirectFB-1.2.6.ebuild: + Version bump. + +*DirectFB-1.2.3 (19 Aug 2008) + + 19 Aug 2008; Mike Frysinger +DirectFB-1.2.3.ebuild: + Version bump. + +*DirectFB-1.2.2 (16 Aug 2008) + + 16 Aug 2008; Mike Frysinger + +files/DirectFB-1.2.0-headers.patch, +DirectFB-1.2.2.ebuild: + Version bump #233272 by Benjamin Schleinzer. + + 06 Aug 2008; Ulrich Mueller metadata.xml: + Add USE flag description to metadata wrt GLEP 56. + + 21 Jan 2008; Mike Frysinger DirectFB-1.1.1.ebuild: + Handle the edge cases better with VIDEO_CARDS/INPUT_DEVICES. Not set implies + all, set but not matching any possibilities implies none. Fixes #206824 by + peter. + + 24 Dec 2007; Mike Frysinger DirectFB-1.1.1.ebuild: + Add support for USE=X #201970 by Alexis Ballier. + +*DirectFB-1.1.1 (24 Dec 2007) + + 24 Dec 2007; Mike Frysinger + +files/DirectFB-1.1.1-headers.patch, + +files/DirectFB-1.1.1-pkgconfig.patch, +DirectFB-1.1.1.ebuild: + Version bump. + + 08 Dec 2007; Mike Frysinger DirectFB-1.1.0.ebuild: + Delete /usr/X11R6/ flags from build #201626 by Arfrever Frehtes Taifersar + Arahesis. + +*DirectFB-1.1.0 (02 Dec 2007) + + 02 Dec 2007; Mike Frysinger + +files/DirectFB-1.1.0-headers.patch, + +files/DirectFB-1.1.0-pkgconfig.patch, +DirectFB-1.1.0.ebuild: + Version bump #190463 by Alexandre Bique. Fix from Andrew Williams for the + .pc file #200661. + + 19 Apr 2007; Markus Rothe DirectFB-1.0.0.ebuild: + Added ~ppc64; bug #175166 + +*DirectFB-1.0.0 (20 Mar 2007) + + 20 Mar 2007; Mike Frysinger + +files/DirectFB-1.0.0-headers.patch, +DirectFB-1.0.0.ebuild: + Version bump #171469 by Michele Noberasco. + + 03 Mar 2007; Marius Mauch DirectFB-0.9.22.ebuild, + DirectFB-0.9.24.ebuild, DirectFB-0.9.25.1.ebuild: + Replacing einfo with ewarn + + 07 Feb 2007; Michael Sterrett + DirectFB-0.9.25.1.ebuild: + removed static use flag and always build static libs (bug #165761) + + 04 Jan 2007; Jeroen Roovers DirectFB-0.9.25.1.ebuild: + Stable for HPPA (bug #159554). + + 31 Dec 2006; Mike Frysinger + +files/DirectFB-0.9.25.1-headers.patch, DirectFB-0.9.25.1.ebuild: + Fix building with sanitized headers #152614. + + 30 Oct 2006; Matti Bickel DirectFB-0.9.25.1.ebuild: + Stable on ppc (bug #149813) + + 23 Oct 2006; Simon Stelling DirectFB-0.9.25.1.ebuild: + stable on amd64 + + 20 Oct 2006; Bryan Østergaard DirectFB-0.9.24.ebuild: + Stable on Alpha. + + 10 Oct 2006; Chris Gianelloni + DirectFB-0.9.25.1.ebuild: + Stable on x86 wrt bug #149813. + + 24 May 2006; Michael Hanselmann + DirectFB-0.9.24.ebuild: + Stable on ppc. + + 08 May 2006; Michele Noberasco DirectFB-0.9.24.ebuild: + Stable for x86. See bug #132535. + +*DirectFB-0.9.25.1 (07 May 2006) + + 07 May 2006; Mike Frysinger +DirectFB-0.9.25.1.ebuild: + Version bump #132531 by Håvard Wall. + + 16 Apr 2006; Mike Frysinger + +files/DirectFB-0.9.24-CFLAGS.patch, DirectFB-0.9.24.ebuild: + Scrub CFLAGS from configure. + +*DirectFB-0.9.24 (28 Oct 2005) + + 28 Oct 2005; Mike Frysinger +DirectFB-0.9.24.ebuild: + Version bump #110627 by James Gatt. + + 02 Sep 2005; Mike Frysinger + +files/DirectFB-0.9.22-i830-detect.patch, DirectFB-0.9.22.ebuild: + Clean up the way we disable wm97xx/sis315 and enable i830. + + 21 Aug 2005; Mike Frysinger DirectFB-0.9.22.ebuild: + Add support for USE=zlib by Steve Dibb in #103150. + + 19 May 2005; Mike Frysinger DirectFB-0.9.22.ebuild: + Add support for INPUT_DRIVERS. Patch by Lachlan Pease #93046. + +*DirectFB-0.9.22 (01 Mar 2005) + + 01 Mar 2005; Mike Frysinger +DirectFB-0.9.22.ebuild: + Version bump. + +*DirectFB-0.9.21 (24 Dec 2004) + + 24 Dec 2004; Mike Frysinger + +files/0.9.21-simd-amd64.patch, +DirectFB-0.9.21.ebuild: + Version bump #75283 by Michele Noberasco. + + 04 Dec 2004; Michael Sterrett + DirectFB-0.9.20-r1.ebuild: + use emake (bug #72199) + + 09 Sep 2004; Mike Frysinger DirectFB-0.9.20-r1.ebuild, + -DirectFB-0.9.20.ebuild: + Add detection to prevent circular dependency causing build failures #61592 by + Anton Starikov. + +*DirectFB-0.9.20-r1 (12 Aug 2004) + + 12 Aug 2004; Michael Sterrett + +DirectFB-0.9.20-r1.ebuild: + Fix mms/sse for non-amd64; error check sed; tidy + + 04 May 2004; Travis Tilley + +files/DirectFB-0.9.20-64bit.diff, +files/DirectFB-0.9.20-simd-amd64.diff, + DirectFB-0.9.20.ebuild: + added misc 64bit fixes and enabled simd optimisations for amd64 + + 18 Apr 2004; Travis Tilley DirectFB-0.9.20.ebuild: + marking as stable on amd64 + + 14 Mar 2004; Stephen P. Becker DirectFB-0.9.20.ebuild: + Masking on mips because of unsupported hardware. + + 28 Jan 2004; Aron Griffis DirectFB-0.9.20.ebuild: + stable on ia64 + + 02 Jan 2004; Sven Blumenstein DirectFB-0.9.12.ebuild, + DirectFB-0.9.19-r1.ebuild, DirectFB-0.9.20.ebuild: + Masking because sparc hardware is not supported by DirectFB. + +*DirectFB-0.9.20 (28 Oct 2003) + + 23 Dec 2003; Mike Frysinger : + Add small patch to make this stuff work with linux 2.6 headers. + + 16 Dec 2003; Jason Wever DirectFB-0.9.12.ebuild: + Changed sparc keyword to ~sparc as quicktime dependency previous had no + keyword and the usability of this on sparc is questionable at this time. + + 23 Nov 2003; Aron Griffis DirectFB-0.9.20.ebuild: + Stable on alpha + + 28 Oct 2003; Mike Frysinger : + Version bump #32207. + +*DirectFB-0.9.19-r1 (05 Aug 2003) + + 02 Oct 2003; Mike Frysinger : + Add support so user can select what video card drivers to build. + + 05 Aug 2003; Patrick Kursawe + DirectFB-0.9.19-r1.ebuild: + Trying to fix bug 25097 + + 05 Aug 2003; Martin Holzer DirectFB-0.9.12.ebuild, + DirectFB-0.9.16.ebuild: + Updated quicktime to virtual/quicktime + +*DirectFB-0.9.19 (30 Jul 2003) + + 30 Jul 2003; Brandon Low DirectFB-0.9.19.ebuild: + Bump + +*DirectFB-0.9.18 (25 Jun 2003) + + 06 Aug 2003; Patrick Kursawe DirectFB-0.9.18.ebuild: + Moved to x86 to fix bug 25947 + + 25 Jun 2003; Brandon Low DirectFB-0.9.18.ebuild: + Bump + + 13 Jun 2003; Seemant Kulleen DirectFB-0.9.16-r1.ebuild: + moved to x86 + +*DirectFB-0.9.17 (05 Mar 2003) + + 05 Mar 2003; Mike Frysinger : + Version bump + cleanups. PDEPEND removed since extra isnt available yet. + +*DirectFB-0.9.16-r1 (02 Feb 2003) + + 02 Feb 2003; Seemant Kulleen + DirectFB-0.9.16-r1.ebuild files/digest-DirectFB-0.9.16-r1 : + + Many fixes -- avifile, flash, quicktime, and imlib2 providers are now in + DirectFB-extra, and sdl is autodetected, to prevent the circular dependency + (it is still an experimental thing upstream, so hopefully the circular dep + thing gets sorted when it's less experimental). + DirectFB-extra made a PDEPEND. + +*DirectFB-0.9.16 (17 Jan 2003) + + 17 Jan 2003; Mike Frysinger DirectFB-0.9.16.ebuild + files/digest-DirectFB-0.9.16 : + Version bump. + +*DirectFB-0.9.15 (13 Nov 2002) + + 13 Nov 2002; Seemant Kulleen DirectFB-0.9.15.ebuild + files/digest-DirectFB-0.9.15 : + Version bump. + +*DirectFB-0.9.13-r1 (30 Oct 2002) + + 15 Dec 2002; Bjoern Brauel DirectFB-0.9.13-r1.ebuild : + Add alpha to KEYWORDS + + 30 Oct 2002; Mike Frysinger : + Added a gcc3.x fix for libflash and a library linkage fix for libpng-1.2.5 + +*DirectFB-0.9.13 (27 Aug 2002) + + 27 Aug 2002; Seemant Kulleen DirectFB-0.9.13.ebuild + files/digest-DirectFB-0.9.13 : + Version bump. + +*DirectFB-0.9.12 (20 Jun 2002) + + 19 Oct 2002; Calum Selkirk DirectFB-0.9.12.ebuild : + Added ppc to KEYWORDS. + + 20 Jun 2002; Seemant Kulleen DirectFB-0.9.12.ebuild + files/digest-DirectFB-0.9.12 : + Version bump. + +*DirectFB-0.9.11 (7 Jun 2002) + + 7 Jun 2002; Seemant Kulleen DirectFB-0.9.11-r1.ebuild + files/digest-DirectFB-0.9.11-r1 : + Fixed so that it finds the libmpeg3 headers. + +*DirectFB-0.9.11 (6 Jun 2002) + + 6 Jun 2002; Seemant Kulleen DirectFB-0.9.11.ebuild + files/digest-DirectFB-0.9.11 : + Version bump. + +*DirectFB-0.9.10-r1 (26 Apr 2002) + + 26 May 2002; Martin Schlemmer DirectFB-0.9.10-r1.ebuild : + Having "mmx" in use did not enable it .. fixed. Updated avifile DEPEND + for now ... this will be needed when I can get it patched to work with + avifile-0.7.4. + +*DirectFB-0.9.10 (26 Apr 2002) + + 26 Apr 2002; Seemant Kulleen DirectFB-0.9.10.ebuild + files/digest-DirectFB-0.9.10 : + Version bump to bugfix release. + +*DirectFB-0.9.9-r2 (15 Apr 2002) + + 15 Apr 2002; Seemant Kulleen DirectFB-0.9.9-r2.ebuild : + Update: still blah. I have removed the necessity of the libmpeg3 tarball + at least. These people need to learn about libtool. Anyway, by patching + the Makefile to point it to the static libmpeg3.a file in /usr/lib, it + emerges fine. Sheesh @ hoops though + + Update: blah, this needs the unpacked libmpeg3 tarball itself. It seems to + completely vomit on an installed libmpeg3. Sigh. + + avi support is broken, and libmpeg3 support is broken as well. Upstream + has been made aware of the libmpeg3 issue, so that will hopefully get + sorted out soon. + +*DirectFB-0.9.9-r1 (12 Apr 2002) + 12 Apr 2002; Spider DirectFB-0.9.9-r1.ebuild : + Versionbump, libpng update + +*DirectFB-0.9.9 (12 Apr 2002) + + 12 Apr 2002; Seemant Kulleen DirectFB-0.9.9.ebuild : + Version bump, but avi support is still broken. Note that the avifile + USE toggle is now just avi. + +*DirectFB-0.9.7 (21 Mar 2002) + + 21 Mar 2002; Seemant Kulleen DirectFB-0.9.7.ebuild : + HTML documentation need not be gzipped. + +*DirectFB-0.9.7 (1 Feb 2002) + + 1 Feb 2002; G.Bevin ChangeLog : + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-libs/DirectFB/DirectFB-1.2.7.ebuild b/dev-libs/DirectFB/DirectFB-1.2.7.ebuild new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/DirectFB-1.2.7.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.2.7.ebuild,v 1.7 2009/04/30 12:28:31 jer Exp $ + +inherit eutils toolchain-funcs + +IUSE_VIDEO_CARDS="ati128 cle266 cyber5k i810 i830 mach64 matrox neomagic none nsc nvidia radeon savage sis315 tdfx unichrome" +IUSE_INPUT_DEVICES="dbox2remote elo-input gunze h3600_ts joystick keyboard dreamboxremote linuxinput lirc mutouch none permount ps2mouse serialmouse sonypijogdial wm97xx" + +DESCRIPTION="Thin library on top of the Linux framebuffer devices" +HOMEPAGE="http://www.directfb.org/" +SRC_URI="http://directfb.org/downloads/Core/${P}.tar.gz + http://directfb.org/downloads/Old/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 -mips ppc ppc64 sh -sparc x86" +IUSE="debug fbcon fusion gif jpeg mmx png sdl sse sysfs truetype v4l v4l2 X zlib" + +# fusion? ( >=dev-libs/linux-fusion-8.0.0 ) +RDEPEND="sdl? ( media-libs/libsdl ) + gif? ( media-libs/giflib ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + sysfs? ( sys-fs/sysfsutils ) + zlib? ( sys-libs/zlib ) + truetype? ( >=media-libs/freetype-2.0.1 ) + X? ( x11-libs/libXext x11-libs/libX11 )" +DEPEND="${RDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto )" + +pkg_setup() { + if [[ -z ${VIDEO_CARDS} ]] ; then + ewarn "All video drivers will be built since you did not specify" + ewarn "via the VIDEO_CARDS variable what video card you use." + ewarn "DirectFB supports: ${IUSE_VIDEO_CARDS} all none" + echo + fi + if [[ -z ${INPUT_DEVICES} ]] ; then + ewarn "All input drivers will be built since you did not specify" + ewarn "via the INPUT_DEVICES variable which input drivers to use." + ewarn "DirectFB supports: ${IUSE_INPUT_DEVICES} all none" + echo + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch + epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch + epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch + + # This is only a partial fix to the X11 order issue #201626. It's just + # the only part we need in order to make the issue go away. Upstream + # bug tracker is currently broken, so list things to do here: + # configure.in: + # - only add -I/usr/X11R6/include to X11_CFLAGS as needed + # - only add -L/usr/X11R6/lib to X11_LIBS as needed + # systems/x11/Makefile.am: + # - add $(X11_LIBS) to end of _LIBADD variables + sed -i \ + -e '/X11_LIBS/s:-L/usr/X11R6/lib::' \ + -e '/CFLAGS/s:-I/usr/X11R6/include::' \ + configure +} + +src_compile() { + local vidcards card input inputdrivers + if [[ ${VIDEO_CARDS+set} == "set" ]] ; then + for card in ${VIDEO_CARDS} ; do + has ${card} ${IUSE_VIDEO_CARDS} && vidcards="${vidcards},${card}" + #use video_cards_${card} && vidcards="${vidcards},${card}" + done + [[ -z ${vidcards} ]] \ + && vidcards="none" \ + || vidcards=${vidcards:1} + else + vidcards="all" + fi + if [[ ${INPUT_DEVICES+set} == "set" ]] ; then + for input in ${INPUT_DEVICES} ; do + has ${input} ${IUSE_INPUT_DEVICES} && inputdrivers="${inputdrivers},${input}" + #use input_devics_${input} && inputdrivers="${inputdrivers},${input}" + done + [[ -z ${inputdrivers} ]] \ + && inputdrivers="none" \ + || inputdrivers=${inputdrivers:1} + else + inputdrivers="all" + fi + + local sdlconf="--disable-sdl" + if use sdl ; then + # since SDL can link against DirectFB and trigger a + # dependency loop, only link against SDL if it isn't + # broken #61592 + echo 'int main(){}' > sdl-test.c + $(tc-getCC) sdl-test.c -lSDL 2>/dev/null \ + && sdlconf="--enable-sdl" \ + || ewarn "Disabling SDL since libSDL.so is broken" + fi + + econf \ + --enable-static \ + $(use_enable X x11) \ + $(use_enable fbcon fbdev) \ + $(use_enable mmx) \ + $(use_enable sse) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable gif) \ + $(use_enable truetype freetype) \ + $(use_enable fusion multi) \ + $(use_enable debug) \ + $(use_enable sysfs) \ + $(use_enable zlib) \ + $(use_enable v4l video4linux) \ + $(use_enable v4l2 video4linux2) \ + ${sdlconf} \ + --with-gfxdrivers="${vidcards}" \ + --with-inputdrivers="${inputdrivers}" \ + --disable-vnc \ + || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO + dohtml -r docs/html/* +} + +pkg_postinst() { + ewarn "Each DirectFB update in the 0.9.xx series" + ewarn "breaks DirectFB related applications." + ewarn "Please run \"revdep-rebuild\" which can be" + ewarn "found by emerging the package 'gentoolkit'." + ewarn + ewarn "If you have an ALPS touchpad, then you might" + ewarn "get your mouse unexpectedly set in absolute" + ewarn "mode in all DirectFB applications." + ewarn "This can be fixed by removing linuxinput from" + ewarn "INPUT_DEVICES." +} diff --git a/dev-libs/DirectFB/DirectFB-1.4.2.ebuild b/dev-libs/DirectFB/DirectFB-1.4.2.ebuild new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/DirectFB-1.4.2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.4.2.ebuild,v 1.9 2010/01/06 19:07:57 vapier Exp $ + +inherit eutils toolchain-funcs + +# Map Gentoo IUSE expand vars to DirectFB drivers +# echo `sed -n '/Possible gfxdrivers are:/,/^$/{/Possible/d;s:\[ *::;s:\].*::;s:,::g;p}' configure.in` +I_TO_D_intel="i810,i830" +I_TO_D_mga="matrox" +I_TO_D_r128="ati128" +I_TO_D_s3="unichrome" +I_TO_D_sis="sis315" +I_TO_D_via="cle266" +# cyber5k davinci ep9x gl omap pxa3xx sh772x +IUSE_VIDEO_CARDS=" intel mach64 mga neomagic nsc nvidia r128 radeon s3 savage sis tdfx via vmware" +IUV=${IUSE_VIDEO_CARDS// / video_cards_} +# echo `sed -n '/Possible inputdrivers are:/,/^$/{/\(Possible\|^input\)/d;s:\[ *::;s:\].*::;s:,::g;p}' configure.in` +I_TO_D_elo2300="elo-input" +I_TO_D_evdev="linuxinput" +I_TO_D_mouse="ps2mouse serialmouse" +# dbox2remote dreamboxremote gunze h3600_ts penmount sonypijogdial ucb1x00 wm97xx zytronic +IUSE_INPUT_DEVICES=" dynapro elo2300 evdev joystick keyboard lirc mouse mutouch tslib" +IUD=${IUSE_INPUT_DEVICES// / input_devices_} + +DESCRIPTION="Thin library on top of the Linux framebuffer devices" +HOMEPAGE="http://www.directfb.org/" +SRC_URI="http://directfb.org/downloads/Core/${PN}-${PV:0:3}/${P}.tar.gz + http://directfb.org/downloads/Old/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm ~hppa ~ia64 -mips ppc ppc64 sh -sparc x86" +IUSE="debug fbcon fusion gif jpeg mmx png sdl sse sysfs truetype v4l v4l2 X zlib ${IUV} ${IUD}" + +# fusion? ( >=dev-libs/linux-fusion-8.0.0 ) +RDEPEND="sdl? ( media-libs/libsdl ) + gif? ( media-libs/giflib ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + sysfs? ( sys-fs/sysfsutils ) + zlib? ( sys-libs/zlib ) + truetype? ( >=media-libs/freetype-2.0.1 ) + X? ( x11-libs/libXext x11-libs/libX11 )" +DEPEND="${RDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch + epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch + epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch + + # This is only a partial fix to the X11 order issue #201626. It's just + # the only part we need in order to make the issue go away. Upstream + # bug tracker is currently broken, so list things to do here: + # configure.in: + # - only add -I/usr/X11R6/include to X11_CFLAGS as needed + # - only add -L/usr/X11R6/lib to X11_LIBS as needed + # systems/x11/Makefile.am: + # - add $(X11_LIBS) to end of _LIBADD variables + sed -i \ + -e '/X11_LIBS/s:-L/usr/X11R6/lib::' \ + -e '/CFLAGS/s:-I/usr/X11R6/include::' \ + configure +} + +driver_list() { + local pfx=$1 + local dev devs map + shift + for dev in "$@" ; do + use ${pfx}_${dev} || continue + map="I_TO_D_${dev}" + devs=${devs:+${devs},}${!map:-${dev}} + done + echo ${devs:-none} +} + +src_compile() { + local sdlconf="--disable-sdl" + if use sdl ; then + # since SDL can link against DirectFB and trigger a + # dependency loop, only link against SDL if it isn't + # broken #61592 + echo 'int main(){}' > sdl-test.c + $(tc-getCC) sdl-test.c -lSDL 2>/dev/null \ + && sdlconf="--enable-sdl" \ + || ewarn "Disabling SDL since libSDL.so is broken" + fi + + econf \ + --enable-static \ + $(use_enable X x11) \ + $(use_enable fbcon fbdev) \ + $(use_enable mmx) \ + $(use_enable sse) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable gif) \ + $(use_enable truetype freetype) \ + $(use_enable fusion multi) \ + $(use_enable debug) \ + $(use_enable sysfs) \ + $(use_enable zlib) \ + $(use_enable v4l video4linux) \ + $(use_enable v4l2 video4linux2) \ + ${sdlconf} \ + --with-gfxdrivers="$(driver_list video_cards ${IUSE_VIDEO_CARDS})" \ + --with-inputdrivers="$(driver_list input_devices ${IUSE_INPUT_DEVICES})" \ + --disable-vnc \ + || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO + dohtml -r docs/html/* +} + +pkg_postinst() { + ewarn "Each DirectFB update in the 0.9.xx series" + ewarn "breaks DirectFB related applications." + ewarn "Please run \"revdep-rebuild\" which can be" + ewarn "found by emerging the package 'gentoolkit'." + ewarn + ewarn "If you have an ALPS touchpad, then you might" + ewarn "get your mouse unexpectedly set in absolute" + ewarn "mode in all DirectFB applications." + ewarn "This can be fixed by removing linuxinput from" + ewarn "INPUT_DEVICES." +} diff --git a/dev-libs/DirectFB/Manifest b/dev-libs/DirectFB/Manifest new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/Manifest @@ -0,0 +1,9 @@ +AUX DirectFB-1.1.1-pkgconfig.patch 637 RMD160 b560f0cb45ab3e8938bce474f1331562ba3a96a1 SHA1 aa202a8452f48f1a8ce087201bcc26ef17c97faa SHA256 f824293e1ae8ed2e632ba0196cf760459006a1e110abac348476b3982a0db036 +AUX DirectFB-1.2.0-headers.patch 430 RMD160 a783b9d0169241d92504ceb9a41545afa986384a SHA1 78f0b76da583702e730fed19288eb5b94be996f2 SHA256 f1c3c6f420ca7864435d8c69a80c239c4ff9ed6d46ac9ba14b59c6ffa6970b45 +AUX DirectFB-1.2.7-CFLAGS.patch 430 RMD160 814bb14c60732dab762303e8a6d356bc59950424 SHA1 5b9e3220493f182ceb0b13747e8199cf0f82c319 SHA256 8b1520f87b5ece3d3694cc1fd5b7bb943ab746a55d423b4593213be2b3bd13e7 +DIST DirectFB-1.2.7.tar.gz 2771039 RMD160 5230e8090938b4c8e9713d174dc62944da3cebab SHA1 1f0c7f3a020d095b78abc1adcc11e34e7b1b07fb SHA256 80ab8e34246a280bc380020cf331bcc0014cf816380cee3935ad455c108e661e +DIST DirectFB-1.4.2.tar.gz 2900292 RMD160 44ead9b32a2583b79690b1cc1536a4df17361078 SHA1 29a5e5a82b1a9e2cbfe31af127a54767fffae975 SHA256 051847e21e88a9c32ee78f8920014602d8b21928602075c5266433cd58addbc6 +EBUILD DirectFB-1.2.7.ebuild 4762 RMD160 14ed83117bb3e61f7475b85b29faed13fad76b17 SHA1 027fe225aad1e013600b5534c5d1ad416711642c SHA256 7f7d7714a0f2c1b607acc363e3d96294081cf09af83a2fcac0fd515d7414fbe0 +EBUILD DirectFB-1.4.2.ebuild 4436 RMD160 64317cdfb81159738877c36099f3a8854d632e93 SHA1 cefc43786cfba24ebd7f4f2a89d7341ac9fa3758 SHA256 a775d7db384f29775bde46717e27836e2e7b97285b800cbf9ba8ec9e38afc997 +MISC ChangeLog 13534 RMD160 2db40664af97dafae08dc82bbc2d2b6c44af8ad3 SHA1 c0b10dfb65e907902098726eea9722d7945b9dac SHA256 17fbd927f07ec9e3ef454fd1a57de30e126e60d8728b70ccebab0e7369186c29 +MISC metadata.xml 874 RMD160 602100ad1d1d3d5882f64144024636eea56a89a9 SHA1 35a43722612b96313f79c7d431c00068eef6cc95 SHA256 81a0a55f0059aa1f51089edadd145016aa6f2c0dfd986bea718afb4e9900860f diff --git a/dev-libs/DirectFB/files/DirectFB-1.1.1-pkgconfig.patch b/dev-libs/DirectFB/files/DirectFB-1.1.1-pkgconfig.patch new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/files/DirectFB-1.1.1-pkgconfig.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/200661 + +--- DirectFB/directfb-config.in ++++ DirectFB/directfb-config.in +@@ -306,7 +306,7 @@ + libs="$libs -ldirectfb -lfusion -ldirect @THREADLIB@" + + if test -n "$echo_static"; then +- libs="$libs @DYNLIB@ @ZLIB_LIBS@" ++ libs="$libs @DYNLIB@ @ZLIB_LIBS@ @SYSFS_LIBS@" + fi + fi + +--- DirectFB/directfb.pc.in ++++ DirectFB/directfb.pc.in +@@ -8,5 +8,5 @@ + Version: @VERSION@ + Requires: fusion direct + Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@ +-Libs.private: -L${libdir} @DYNLIB@ @ZLIB_LIBS@ ++Libs.private: -L${libdir} @DYNLIB@ @ZLIB_LIBS@ @SYSFS_LIBS@ + Cflags: @THREADFLAGS@ -I@INCLUDEDIR@ diff --git a/dev-libs/DirectFB/files/DirectFB-1.2.0-headers.patch b/dev-libs/DirectFB/files/DirectFB-1.2.0-headers.patch new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/files/DirectFB-1.2.0-headers.patch @@ -0,0 +1,16 @@ +Don't rely on the kernel to tell us what the cpu target is ... we'll just +use the default values all the time instead. + +http://bugs.gentoo.org/152614 + +--- lib/direct/ppcasm_memcpy_cachable.S ++++ lib/direct/ppcasm_memcpy_cachable.S +@@ -34,8 +34,6 @@ + + #define __ASSEMBLY__ + +-#include +- + #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) + #define L1_CACHE_LINE_SIZE 16 + #define LG_L1_CACHE_LINE_SIZE 4 diff --git a/dev-libs/DirectFB/files/DirectFB-1.2.7-CFLAGS.patch b/dev-libs/DirectFB/files/DirectFB-1.2.7-CFLAGS.patch new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/files/DirectFB-1.2.7-CFLAGS.patch @@ -0,0 +1,19 @@ +--- DirectFB-1.2.7/configure ++++ DirectFB-1.2.7/configure +@@ -22953,8 +22953,6 @@ + CFLAGS= + fi + +-CFLAGS="-O3 -ffast-math -pipe $CFLAGS" +- + DFB_INTERNAL_CFLAGS="-D_GNU_SOURCE $DFB_INTERNAL_CFLAGS" + + # Check whether --enable-extra-warnings was given. +@@ -23622,7 +23620,6 @@ + fi + + if test "$enable_debug" = "yes"; then +- CFLAGS="$CFLAGS -g3 -fno-inline -Wno-inline" + DIRECT_BUILD_DEBUG=1 + else + DIRECT_BUILD_DEBUG=0 diff --git a/dev-libs/DirectFB/metadata.xml b/dev-libs/DirectFB/metadata.xml new file mode 100644 --- /dev/null +++ b/dev-libs/DirectFB/metadata.xml @@ -0,0 +1,18 @@ + + + +games + +DirectFB is a thin library that provides hardware graphics acceleration, +input device handling and abstraction, integrated windowing system with +support for translucent windows and multiple display layers on top of the +Linux Framebuffer Device. It is a complete hardware abstraction layer with +software fallbacks for every graphics operation that is not supported by the +underlying hardware. DirectFB adds graphical power to embedded systems and +sets a new standard for graphics under Linux + + + Add Multi Application support (fusion kernel device) + Add support for the sysfs filesystem (requires Linux-2.6+) + +