media-libs/glew: add winnt support for 1.11.0
This commit is contained in:
parent
26c11e9a35
commit
a658aa9524
@ -1,3 +1,5 @@
|
|||||||
DIST glew-1.10.0.tgz 567605 SHA256 99c41320b63f6860869b5fb9af9a1854b15582796c64ee3dfd7096dc0c89f307 SHA512 0c998fda9fe01c9296a3453966c0449c9968f4f5f989065ca65f0da3830ae8d805699d0ee0362c3b18765420222ba18842b9db20986212afceb36c971ae1bdca WHIRLPOOL 7c931d990b667fc5da79b0b0c11f76693adbd75c730252d5fd1129ff5d54690222a0f0efc0d2abe0535edcde7f72d76bad6de40d02c5a48f0bc4804a248b7d72
|
DIST glew-1.10.0.tgz 567605 SHA256 99c41320b63f6860869b5fb9af9a1854b15582796c64ee3dfd7096dc0c89f307 SHA512 0c998fda9fe01c9296a3453966c0449c9968f4f5f989065ca65f0da3830ae8d805699d0ee0362c3b18765420222ba18842b9db20986212afceb36c971ae1bdca WHIRLPOOL 7c931d990b667fc5da79b0b0c11f76693adbd75c730252d5fd1129ff5d54690222a0f0efc0d2abe0535edcde7f72d76bad6de40d02c5a48f0bc4804a248b7d72
|
||||||
|
DIST glew-1.11.0.tgz 601430 SHA256 69bbce306ac281c4fa806a7a7d02c0596281a2d8f9d70690e98126f23ba513d6 SHA512 ab7fa5027b069adb7ce2f0ec9dc4e7f30d852e4212c68759873f060e32cc2be04cef66748a7e8696240ed6e3efbf4f0a2aa94640723facf83123c4cc6d955308 WHIRLPOOL 0190203051e8eb5fb887b3a013928072aabf3c418faf9e5bd86ae2d60c7dd788b5694de60ab40fe5a616dcf61e6b8b24fc09a8fef8aa1fb90e42e8b87ab65ee3
|
||||||
EBUILD glew-1.10.0-r1.ebuild 1956 SHA256 09f25247fc640bf260fd396bbcf5396da8e1d14e1aecec0c677279fcd46446a4 SHA512 f0f646a8ec28d7cbf772792a3c2e9f5b4604968cc0f0186789869e278ce45a4ee1ba23cc9a8d45c9257ce755ca642dafb7ec641e563908afadc66a45cf52f703 WHIRLPOOL 05993aa3ab896590886cf6ce762779f90d0f3830832093478f670a9f5439c693f98ec8c6dc12ffc43c580ee234b219eb40e51b3cf4fce9d0656bcc20d9feb573
|
EBUILD glew-1.10.0-r1.ebuild 1956 SHA256 09f25247fc640bf260fd396bbcf5396da8e1d14e1aecec0c677279fcd46446a4 SHA512 f0f646a8ec28d7cbf772792a3c2e9f5b4604968cc0f0186789869e278ce45a4ee1ba23cc9a8d45c9257ce755ca642dafb7ec641e563908afadc66a45cf52f703 WHIRLPOOL 05993aa3ab896590886cf6ce762779f90d0f3830832093478f670a9f5439c693f98ec8c6dc12ffc43c580ee234b219eb40e51b3cf4fce9d0656bcc20d9feb573
|
||||||
|
EBUILD glew-1.11.0.ebuild 2316 SHA256 081e639136b0084ea9c8d11b1204cf69d88d8e474e0d3c061f2814357b55e8d0 SHA512 bc627b5da424a02df66e093323fd5024fe960ce69a5a94a895204ffad999100a0b588e60c5875e854406edebbd94fe7d1938f4feebab4b3bc8705974b67ceabd WHIRLPOOL 99d04587b713497959d6b11c708641c089ddc1e122957a4a42d78af0a158979c8349e4676f16cb66d648bde849d65261767f1abb8bc7b6af2c7cd3ba1560aa5e
|
||||||
MISC metadata.xml 232 SHA256 a778e40f66cb2fa35529e4f45cb8356c8b1b109163cd939396f02e8ea6aa5f1a SHA512 6952f63da1c92a4ed7ddb87b5eb4003d123f0b7af6ffdbc9118159c97ddf18917e8ac7727285a42c07c64e52a40335bc2ef9f17261557617beb8c2226a391873 WHIRLPOOL 0a4441f075f8af01588da2aac3e03732f93463b8bea5e46749d37e1468452735d15f45243b930b3346c93734f8aa235a492030445fee471a95d2c5998f08e7de
|
MISC metadata.xml 232 SHA256 a778e40f66cb2fa35529e4f45cb8356c8b1b109163cd939396f02e8ea6aa5f1a SHA512 6952f63da1c92a4ed7ddb87b5eb4003d123f0b7af6ffdbc9118159c97ddf18917e8ac7727285a42c07c64e52a40335bc2ef9f17261557617beb8c2226a391873 WHIRLPOOL 0a4441f075f8af01588da2aac3e03732f93463b8bea5e46749d37e1468452735d15f45243b930b3346c93734f8aa235a492030445fee471a95d2c5998f08e7de
|
||||||
|
81
media-libs/glew/glew-1.11.0.ebuild
Normal file
81
media-libs/glew/glew-1.11.0.ebuild
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.11.0.ebuild,v 1.1 2014/09/26 23:39:58 radhermit Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
inherit multilib multilib-minimal 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 amd64-winnt"
|
||||||
|
IUSE="doc static-libs"
|
||||||
|
|
||||||
|
RDEPEND=">=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
|
||||||
|
>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
|
||||||
|
!amd64-winnt? (
|
||||||
|
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
|
||||||
|
DEPEND=${RDEPEND}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
multilib_copy_sources
|
||||||
|
}
|
||||||
|
|
||||||
|
set_opts() {
|
||||||
|
myglewopts=(
|
||||||
|
AR="$(tc-getAR)"
|
||||||
|
STRIP=true
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
LD="$(tc-getCC) ${LDFLAGS}"
|
||||||
|
M_ARCH=""
|
||||||
|
LDFLAGS.EXTRA=""
|
||||||
|
POPT="${CFLAGS}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# support MinGW targets (bug #523444)
|
||||||
|
[[ ${CHOST} == *-mingw* ]] && myglewopts+=( SYSTEM=mingw )
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
set_opts
|
||||||
|
emake GLEW_DEST="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" "${myglewopts[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
set_opts
|
||||||
|
emake \
|
||||||
|
GLEW_DEST="${ED}/usr" \
|
||||||
|
LIBDIR="${ED}/usr/$(get_libdir)" \
|
||||||
|
"${myglewopts[@]}" \
|
||||||
|
install.all
|
||||||
|
|
||||||
|
dodoc TODO.txt
|
||||||
|
use doc && dohtml doc/*
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user