summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Pranaitis <jens@chaox.net>2010-07-04 17:14:59 +0200
committerJens Pranaitis <jens@chaox.net>2010-07-04 17:14:59 +0200
commit7f3a07b635fd9278547f4e98831ba855027f2fd2 (patch)
tree49e87fc357214e984ef6777cf9b70218593bd745
parentlibgcal: bumped to 0.9.5 (diff)
downloadjensp-7f3a07b635fd9278547f4e98831ba855027f2fd2.tar.gz
jensp-7f3a07b635fd9278547f4e98831ba855027f2fd2.tar.bz2
jensp-7f3a07b635fd9278547f4e98831ba855027f2fd2.zip
added glew 1.5.4, needed by lightspark-9999
-rw-r--r--media-libs/glew/Manifest2
-rw-r--r--media-libs/glew/glew-1.5.4.ebuild48
2 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/glew/Manifest b/media-libs/glew/Manifest
new file mode 100644
index 0000000..8abfa8f
--- /dev/null
+++ b/media-libs/glew/Manifest
@@ -0,0 +1,2 @@
+DIST glew-1.5.4.tgz 459341 RMD160 c882e6879ea53a9b975afb1b624409ae20d0d1c4 SHA1 332234128e67737bf60fe14c860821038ecd7399 SHA256 ddb8402453d48b63fd5d230a8b26885fbe29bc887cf8f7d12459fc8ab9ea8e32
+EBUILD glew-1.5.4.ebuild 1424 RMD160 8d8010a64cd3a0647d7721c10bc1602192b9101b SHA1 74d5c8ec6c7b343329d24d074ba14e772e11bf89 SHA256 2866f465bfe8e1d29fcfc74a54e06d15a3640d6e043e805d849d1c8cd253a6d9
diff --git a/media-libs/glew/glew-1.5.4.ebuild b/media-libs/glew/glew-1.5.4.ebuild
new file mode 100644
index 0000000..aee61b2
--- /dev/null
+++ b/media-libs/glew/glew-1.5.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.5.3.ebuild,v 1.2 2010/06/18 19:33:01 abcd Exp $
+
+EAPI=3
+inherit multilib toolchain-funcs
+
+DESCRIPTION="The OpenGL Extension Wrangler Library"
+HOMEPAGE="http://glew.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="BSD MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="x11-libs/libXmu
+ x11-libs/libXi
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXext
+ x11-libs/libX11"
+
+src_prepare() {
+ sed -i \
+ -e '/INSTALL/s:-s::' \
+ -e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
+ Makefile || die
+ # for Prefix
+ sed -i -e '/^LDFLAGS.EXTRA/d' config/Makefile.linux || die
+ # don't do stupid Solaris specific stuff that won't work in Prefix
+ cp config/Makefile.linux config/Makefile.solaris || die
+}
+
+src_compile(){
+ emake AR="$(tc-getAR)" STRIP=true CC="$(tc-getCC)" \
+ LD="$(tc-getCC) ${LDFLAGS}" POPT="${CFLAGS}" M_ARCH="" || die
+}
+
+src_install() {
+ dodir /usr/$(get_libdir)/pkgconfig
+
+ emake STRIP=true GLEW_DEST="${ED}/usr" LIBDIR="${ED}/usr/$(get_libdir)" \
+ M_ARCH="" install || die
+
+ dodoc doc/*.txt README.txt TODO.txt || die
+ dohtml doc/*.{css,html,jpg,png} || die
+}