summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2006-02-04 08:25:49 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2006-02-04 08:25:49 +0000
commit9b57720660bbf360bdb08069a122504648ca7389 (patch)
tree9b6a4bf640eca8afb258c4beb5212b7a4168c51e /media-libs/glide-v3
parentNew flags for glide-v3. (diff)
downloadgentoo-2-9b57720660bbf360bdb08069a122504648ca7389.tar.gz
gentoo-2-9b57720660bbf360bdb08069a122504648ca7389.tar.bz2
gentoo-2-9b57720660bbf360bdb08069a122504648ca7389.zip
Bring glide into the '06. Add voodoo1 and voodoo2 support. All 4 voodoo flags are combinable in any fashion, and if they're all off, it builds support for all of them, similar to VIDEO_CARDS. Inspired by the Fedora Extras source rpm.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'media-libs/glide-v3')
-rw-r--r--media-libs/glide-v3/ChangeLog11
-rw-r--r--media-libs/glide-v3/files/digest-glide-v3-200602033
-rw-r--r--media-libs/glide-v3/glide-v3-20060203.ebuild120
3 files changed, 133 insertions, 1 deletions
diff --git a/media-libs/glide-v3/ChangeLog b/media-libs/glide-v3/ChangeLog
index e0795f594dfb..f5d85902ea3c 100644
--- a/media-libs/glide-v3/ChangeLog
+++ b/media-libs/glide-v3/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-libs/glide-v3
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/glide-v3/ChangeLog,v 1.23 2006/01/28 10:10:15 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glide-v3/ChangeLog,v 1.24 2006/02/04 08:25:49 spyderous Exp $
+
+*glide-v3-20060203 (04 Feb 2006)
+
+ 04 Feb 2006; Donnie Berkholz <spyderous@gentoo.org>;
+ +glide-v3-20060203.ebuild:
+ Bring glide into the '06. Add voodoo1 and voodoo2 support. All 4 voodoo
+ flags are combinable in any fashion, and if they're all off, it builds
+ support for all of them, similar to VIDEO_CARDS. Inspired by the Fedora
+ Extras source rpm.
28 Jan 2006; Donnie Berkholz <spyderous@gentoo.org>;
+files/glide-v3-3.10-hwcBufferLfbAddr-conflict.patch,
diff --git a/media-libs/glide-v3/files/digest-glide-v3-20060203 b/media-libs/glide-v3/files/digest-glide-v3-20060203
new file mode 100644
index 000000000000..49a95c40d0f3
--- /dev/null
+++ b/media-libs/glide-v3/files/digest-glide-v3-20060203
@@ -0,0 +1,3 @@
+MD5 5e2ccd2bd83bd74f8166283dc156e315 Glide3-20060203.tar.bz2 3658502
+RMD160 a9be1f1359c397af1ed850f85e4657c3f39cf149 Glide3-20060203.tar.bz2 3658502
+SHA256 469bd902dae06a33751b92344b8bd6978873dedfe5bd7940a86ad638f2ba06db Glide3-20060203.tar.bz2 3658502
diff --git a/media-libs/glide-v3/glide-v3-20060203.ebuild b/media-libs/glide-v3/glide-v3-20060203.ebuild
new file mode 100644
index 000000000000..b004e23d09fb
--- /dev/null
+++ b/media-libs/glide-v3/glide-v3-20060203.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glide-v3/glide-v3-20060203.ebuild,v 1.1 2006/02/04 08:25:49 spyderous Exp $
+
+inherit multilib eutils
+
+LIBVER="3.10.0"
+
+MY_PN="${PN/g/G}"
+MY_PN="${MY_PN/-v3/3}"
+MY_P="${MY_PN}-${PV}"
+
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="Hardware support for the voodoo3, voodoo4 and voodoo5"
+HOMEPAGE="http://glide.sourceforge.net/"
+# our mirroring system is retarded and broken, i'll remove this later
+# once it figures out wtf is going on
+RESTRICT="mirror"
+SRC_URI="http://dev.gentoo.org/~spyderous/distfiles/${MY_P}.tar.bz2
+ mirror://gentoo/${MY_P}.tar.bz2"
+LICENSE="3DFX"
+SLOT="0"
+KEYWORDS="~x86 -sparc"
+IUSE="voodoo5 voodoo3 voodoo2 voodoo1"
+
+RDEPEND="|| ( x11-libs/libX11 virtual/x11 )"
+DEPEND="${RDEPEND}
+ || ( x11-libs/libXt virtual/x11 )"
+
+src_compile() {
+ local compilefor glide_flags
+
+ if use voodoo5; then
+ compilefor="${compilefor} h5"
+ fi
+ if use voodoo3; then
+ compilefor="${compilefor} h3"
+ fi
+ if use voodoo2; then
+ compilefor="${compilefor} cvg"
+ fi
+ if use voodoo1; then
+ if use x86; then
+ compilefor="${compilefor} sst1"
+ else
+ ewarn "Voodoo1 support only available on x86 so far."
+ fi
+ fi
+ # If nothing's set, build everything
+ if [[ ! -n "${compilefor}" ]]; then
+ compilefor="h5 h3 cvg"
+ if use x86; then
+ compilefor="${compilefor} sst1"
+ fi
+ fi
+
+ glide_flags="TEXUS2=1"
+ if use x86; then
+ # Still checks for 3dnow etc at runtime
+ glide_flags="${glide_flags} USE_X86=1 USE_3DNOW=1 USE_MMX=1 USE_SSE=1
+ USE_SSE2=1"
+ fi
+
+ for card in ${compilefor}; do
+ if [[ $card = h3 ]] || [[ $card = h5 ]]; then
+ glide_flags="${glide_flags} DRI=1 XPATH=/usr/$(get_libdir)"
+ fi
+ make -f makefile.linux \
+ FX_GLIDE_HW=${card} \
+ OPTFLAGS="${CFLAGS}" \
+ ${glide_flags}
+ if [[ $card = h5 ]]; then
+ mv ${card}/lib/libglide*so libglide3-v5.so
+ elif [[ $card = h3 ]]; then
+ mv ${card}/lib/libglide*so libglide3-v3.so
+ elif [[ $card = cvg ]]; then
+ mv ${card}/lib/libglide*so libglide3-v2.so
+ elif [[ $card = sst1 ]]; then
+ mv ${card}/lib/libglide*so libglide3-v1.so
+ fi
+ make -f makefile.linux \
+ FX_GLIDE_HW=${card} \
+ realclean
+ done
+}
+
+src_install() {
+ local default_lib default_libver
+
+ dolib.so ${S}/libglide3-v*.so
+
+ if use voodoo5; then
+ default_libver="5"
+ elif use voodoo3; then
+ default_libver="3"
+ elif use voodoo2; then
+ default_libver="2"
+ elif use voodoo1; then
+ default_libver="1"
+ else
+ # Default to voodoo3
+ default_libver="3"
+ fi
+ default_lib="libglide3-v${default_libver}.so"
+
+ dosym ${default_lib} /usr/$(get_libdir)/libglide3.so.${LIBVER}
+ dosym libglide3.so.${LIBVER} /usr/$(get_libdir)/libglide3.so.3
+ dosym libglide3.so.${LIBVER} /usr/$(get_libdir)/libglide3.so
+
+ insinto /usr/include/glide3
+ doins \
+ swlibs/fxmisc/3dfx.h \
+ h5/glide3/src/g3ext.h \
+ h5/glide3/src/glide.h \
+ h5/glide3/src/glidesys.h \
+ h5/glide3/src/glideutl.h \
+ swlibs/fxmisc/linutil.h \
+ h5/incsrc/sst1vid.h \
+ swlibs/texus2/lib/texus.h
+}