diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-10-02 15:28:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-10-02 15:28:52 +0000 |
commit | 9ae9a160c06f437a62264a86da700fb875009742 (patch) | |
tree | 5b03c4b9c1b5ac7968004003066b5e42d3d6ed5f /dev-libs | |
parent | First version in portage (diff) | |
download | gentoo-2-9ae9a160c06f437a62264a86da700fb875009742.tar.gz gentoo-2-9ae9a160c06f437a62264a86da700fb875009742.tar.bz2 gentoo-2-9ae9a160c06f437a62264a86da700fb875009742.zip |
selectable video card drivers
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/DirectFB/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild | 40 |
2 files changed, 28 insertions, 23 deletions
diff --git a/dev-libs/DirectFB/ChangeLog b/dev-libs/DirectFB/ChangeLog index 7bb7945ba346..34b12a4da907 100644 --- a/dev-libs/DirectFB/ChangeLog +++ b/dev-libs/DirectFB/ChangeLog @@ -1,12 +1,12 @@ # ChangeLog for dev-libs/DirectFB # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.30 2003/08/06 06:25:06 phosphan Exp $ - - 06 Aug 2003; Patrick Kursawe <phosphan@gentoo.org> DirectFB-0.9.18.ebuild: - Moved to x86 to fix bug 25947 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.31 2003/10/02 15:28:52 vapier Exp $ *DirectFB-0.9.19-r1 (05 Aug 2003) + 02 Oct 2003; Mike Frysinger <vapier@gentoo.org> : + Add support so user can select what video card drivers to build. + 05 Aug 2003; Patrick Kursawe <phosphan@gentoo.org> DirectFB-0.9.19-r1.ebuild: Trying to fix bug 25097 @@ -22,6 +22,9 @@ *DirectFB-0.9.18 (25 Jun 2003) + 06 Aug 2003; Patrick Kursawe <phosphan@gentoo.org> DirectFB-0.9.18.ebuild: + Moved to x86 to fix bug 25947 + 25 Jun 2003; Brandon Low <lostlogic@gentoo.org> DirectFB-0.9.18.ebuild: Bump diff --git a/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild b/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild index e82e4069fabe..cc27e952ab25 100644 --- a/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild +++ b/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild,v 1.4 2003/10/02 06:09:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-0.9.19-r1.ebuild,v 1.5 2003/10/02 15:28:52 vapier Exp $ + +IUSE_VIDEO_CARDS="ati128 cyber5k i810 matrox neomagic nsc nvidia radeon savage tdfx" DESCRIPTION="Thin library on top of the Linux framebuffer devices" HOMEPAGE="http://www.directfb.org/" @@ -18,18 +20,22 @@ DEPEND="dev-lang/perl mpeg? ( media-libs/libmpeg3 ) truetype? ( >=media-libs/freetype-2.0.1 )" -src_unpack() { - unpack ${A} -# cd ${S} -# cp configure ${T} -# sed -e 's:ac_safe=`echo "libmpeg3.h:ac_safe=`echo "libmpeg3/libmpeg3.h:' \ -# -e 's:#include <libmpeg3.h>:#include <libmpeg3/libmpeg3.h>:' \ -# ${T}/configure > configure +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." + einfo "DirectFB supports: ${IUSE_VIDEO_CARDS} all none" + fi } src_compile() { + local vidcards + [ -z "${VIDEO_CARDS}" ] \ + && vidcards="all" \ + || vidcards="${VIDEO_CARDS// /,}" + local mycppflags - use mpeg && mycppflags="-I /usr/include/libmpeg3" + use mpeg && mycppflags="-I/usr/include/libmpeg3" econf CPPFLAGS="${mycppflags}" \ `use_enable mmx` \ `use_enable sse` \ @@ -38,17 +44,13 @@ src_compile() { `use_enable png` \ `use_enable gif` \ `use_enable truetype freetype` \ - || die - - use mpeg && { \ - cd ${S}/interfaces/IDirectFBVideoProvider - cp idirectfbvideoprovider_libmpeg3.c ${T} + --with-gfxdrivers="${vidcards}" \ + || die - sed s':#include <libmpeg3.h>:#include <libmpeg3/libmpeg3.h>:' \ - ${T}/idirectfbvideoprovider_libmpeg3.c > \ - idirectfbvideoprovider_libmpeg3.c - cd ${S} - } + use mpeg && \ + sed -i \ + s':#include <libmpeg3.h>:#include <libmpeg3/libmpeg3.h>:' \ + ${S}/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_libmpeg3.c # add extra -lstdc++ so libpng/libflash link correctly make CPPFLAGS="${mycppflags}" LDFLAGS="${LDFLAGS} -lstdc++" || die |