/[gentoo-x86]/media-libs/glew/glew-1.8.0.ebuild
Gentoo

Contents of /media-libs/glew/glew-1.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu May 2 07:49:39 2013 UTC (18 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.8.0.ebuild,v 1.1 2012/07/30 21:41:35 ssuominen Exp $
4
5 EAPI=4
6 inherit multilib toolchain-funcs
7
8 DESCRIPTION="The OpenGL Extension Wrangler Library"
9 HOMEPAGE="http://glew.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
11
12 LICENSE="BSD MIT"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
15 IUSE="doc static-libs"
16
17 RDEPEND="virtual/glu
18 virtual/opengl
19 x11-libs/libX11
20 x11-libs/libXext
21 x11-libs/libXi
22 x11-libs/libXmu"
23 DEPEND=${RDEPEND}
24
25 pkg_setup() {
26 myglewopts=(
27 AR="$(tc-getAR)"
28 STRIP=true
29 CC="$(tc-getCC)"
30 LD="$(tc-getCC) ${LDFLAGS}"
31 M_ARCH=""
32 LDFLAGS.EXTRA=""
33 POPT="${CFLAGS}"
34 )
35 }
36
37 src_prepare() {
38 sed -i \
39 -e '/INSTALL/s:-s::' \
40 -e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
41 Makefile || die
42
43 if ! use static-libs ; then
44 sed -i \
45 -e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \
46 -e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \
47 -e '/INSTALL.*LIB.STATIC/d' \
48 Makefile || die
49 fi
50
51 # don't do stupid Solaris specific stuff that won't work in Prefix
52 cp config/Makefile.linux config/Makefile.solaris || die
53 # and let freebsd be built as on linux too
54 cp config/Makefile.linux config/Makefile.freebsd || die
55 }
56
57 src_compile(){
58 emake "${myglewopts[@]}"
59 }
60
61 src_install() {
62 emake \
63 GLEW_DEST="${ED}/usr" \
64 LIBDIR="${ED}/usr/$(get_libdir)" \
65 "${myglewopts[@]}" \
66 install.all
67
68 dodoc TODO.txt
69 use doc && dohtml doc/*
70 }

  ViewVC Help
Powered by ViewVC 1.1.20