summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-12-02 21:10:37 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-12-02 21:10:37 +0000
commit0298436f68d5d7409025fc478678b3518c176037 (patch)
treebbbf2b0d8a0eca542bce7a727197da99d4b235ae /media-libs/glew/glew-1.5.1.ebuild
parentold (diff)
downloadgentoo-2-0298436f68d5d7409025fc478678b3518c176037.tar.gz
gentoo-2-0298436f68d5d7409025fc478678b3518c176037.tar.bz2
gentoo-2-0298436f68d5d7409025fc478678b3518c176037.zip
Version bump, thanks to Donnie Berkholz.
(Portage version: 2.1.6_rc2/cvs/Linux 2.6.27.7 i686)
Diffstat (limited to 'media-libs/glew/glew-1.5.1.ebuild')
-rw-r--r--media-libs/glew/glew-1.5.1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/media-libs/glew/glew-1.5.1.ebuild b/media-libs/glew/glew-1.5.1.ebuild
new file mode 100644
index 000000000000..f452579334ef
--- /dev/null
+++ b/media-libs/glew/glew-1.5.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.5.1.ebuild,v 1.1 2008/12/02 21:10:37 ssuominen Exp $
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="The OpenGL Extension Wrangler Library"
+HOMEPAGE="http://glew.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tgz"
+
+LICENSE="BSD GLX SGI-B GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ edos2unix config/config.guess
+ sed -i -e 's:-s\b::g' Makefile || die "sed failed."
+}
+
+src_compile(){
+ emake LD="$(tc-getCC) ${LDFLAGS}" CC="$(tc-getCC)" \
+ POPT="${CFLAGS}" M_ARCH="" AR="$(tc-getAR)" \
+ || die "emake failed."
+}
+
+src_install() {
+ emake GLEW_DEST="${D}/usr" LIBDIR="${D}/usr/$(get_libdir)" \
+ M_ARCH="" install || die "emake install failed."
+
+ dodoc README.txt
+ dohtml doc/*.{html,css,png,jpg}
+}