diff --git a/media-libs/glew/Manifest b/media-libs/glew/Manifest new file mode 100644 index 0000000..70d607c --- /dev/null +++ b/media-libs/glew/Manifest @@ -0,0 +1,3 @@ +DIST glew-1.10.0.tgz 567605 SHA256 99c41320b63f6860869b5fb9af9a1854b15582796c64ee3dfd7096dc0c89f307 SHA512 0c998fda9fe01c9296a3453966c0449c9968f4f5f989065ca65f0da3830ae8d805699d0ee0362c3b18765420222ba18842b9db20986212afceb36c971ae1bdca WHIRLPOOL 7c931d990b667fc5da79b0b0c11f76693adbd75c730252d5fd1129ff5d54690222a0f0efc0d2abe0535edcde7f72d76bad6de40d02c5a48f0bc4804a248b7d72 +EBUILD glew-1.10.0-r1.ebuild 1956 SHA256 09f25247fc640bf260fd396bbcf5396da8e1d14e1aecec0c677279fcd46446a4 SHA512 f0f646a8ec28d7cbf772792a3c2e9f5b4604968cc0f0186789869e278ce45a4ee1ba23cc9a8d45c9257ce755ca642dafb7ec641e563908afadc66a45cf52f703 WHIRLPOOL 05993aa3ab896590886cf6ce762779f90d0f3830832093478f670a9f5439c693f98ec8c6dc12ffc43c580ee234b219eb40e51b3cf4fce9d0656bcc20d9feb573 +MISC metadata.xml 232 SHA256 a778e40f66cb2fa35529e4f45cb8356c8b1b109163cd939396f02e8ea6aa5f1a SHA512 6952f63da1c92a4ed7ddb87b5eb4003d123f0b7af6ffdbc9118159c97ddf18917e8ac7727285a42c07c64e52a40335bc2ef9f17261557617beb8c2226a391873 WHIRLPOOL 0a4441f075f8af01588da2aac3e03732f93463b8bea5e46749d37e1468452735d15f45243b930b3346c93734f8aa235a492030445fee471a95d2c5998f08e7de diff --git a/media-libs/glew/glew-1.10.0-r1.ebuild b/media-libs/glew/glew-1.10.0-r1.ebuild new file mode 100644 index 0000000..4a2b09f --- /dev/null +++ b/media-libs/glew/glew-1.10.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.10.0-r1.ebuild,v 1.1 2013/07/23 23:48:01 radhermit Exp $ + +EAPI=5 +inherit multilib toolchain-funcs versionator + +DESCRIPTION="The OpenGL Extension Wrangler Library" +HOMEPAGE="http://glew.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="BSD MIT" +SLOT="0/$(get_version_component_range 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="doc static-libs" + +RDEPEND="virtual/glu + !x86-winnt? ( + virtual/opengl + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXmu + )" +DEPEND=${RDEPEND} + +pkg_setup() { + myglewopts=( + AR="$(tc-getAR)" + STRIP=true + CC="$(tc-getCC)" + LD="$(tc-getCC) ${LDFLAGS}" + M_ARCH="" + LDFLAGS.EXTRA="" + POPT="${CFLAGS}" + ) + + [[ ${CHOST} == *-mingw* ]] && myglewopts+=(SYSTEM='mingw') +} + +src_prepare() { + sed -i \ + -e '/INSTALL/s:-s::' \ + -e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \ + -e '/^.PHONY: .*\.pc$/d' \ + Makefile || die + + if ! use static-libs ; then + sed -i \ + -e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \ + -e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \ + -e '/INSTALL.*LIB.STATIC/d' \ + Makefile || die + fi + + # don't do stupid Solaris specific stuff that won't work in Prefix + cp config/Makefile.linux config/Makefile.solaris || die + # and let freebsd be built as on linux too + cp config/Makefile.linux config/Makefile.freebsd || die +} + +src_compile(){ + emake GLEW_DEST="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" "${myglewopts[@]}" +} + +src_install() { + emake \ + GLEW_DEST="${ED}/usr" \ + LIBDIR="${ED}/usr/$(get_libdir)" \ + "${myglewopts[@]}" \ + install.all + + dodoc TODO.txt + use doc && dohtml doc/* +} diff --git a/media-libs/glew/metadata.xml b/media-libs/glew/metadata.xml new file mode 100644 index 0000000..157326a --- /dev/null +++ b/media-libs/glew/metadata.xml @@ -0,0 +1,8 @@ + + + + + radhermit@gentoo.org + Tim Harder + +