Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/glew: ChangeLog glew-1.8.0.ebuild
Date: Mon, 30 Jul 2012 21:41:47
Message-Id: 20120730214135.5CCFF2004B@flycatcher.gentoo.org
1 ssuominen 12/07/30 21:41:35
2
3 Modified: ChangeLog
4 Added: glew-1.8.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.79 media-libs/glew/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?rev=1.79&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?rev=1.79&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?r1=1.78&r2=1.79
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v
20 retrieving revision 1.78
21 retrieving revision 1.79
22 diff -u -r1.78 -r1.79
23 --- ChangeLog 29 May 2012 13:57:44 -0000 1.78
24 +++ ChangeLog 30 Jul 2012 21:41:35 -0000 1.79
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/glew
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v 1.78 2012/05/29 13:57:44 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v 1.79 2012/07/30 21:41:35 ssuominen Exp $
30 +
31 +*glew-1.8.0 (30 Jul 2012)
32 +
33 + 30 Jul 2012; Samuli Suominen <ssuominen@g.o> +glew-1.8.0.ebuild:
34 + Version bump.
35
36 29 May 2012; Alexis Ballier <aballier@g.o> glew-1.7.0.ebuild:
37 build it the linux way (PIC and so on) on freebsd and keyword ~amd64-fbsd
38
39
40
41 1.1 media-libs/glew/glew-1.8.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/glew-1.8.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/glew-1.8.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: glew-1.8.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/glew/glew-1.8.0.ebuild,v 1.1 2012/07/30 21:41:35 ssuominen Exp $
51
52 EAPI=4
53 inherit multilib toolchain-funcs
54
55 DESCRIPTION="The OpenGL Extension Wrangler Library"
56 HOMEPAGE="http://glew.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
58
59 LICENSE="BSD MIT"
60 SLOT="0"
61 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"
62 IUSE="doc static-libs"
63
64 RDEPEND="virtual/glu
65 virtual/opengl
66 x11-libs/libX11
67 x11-libs/libXext
68 x11-libs/libXi
69 x11-libs/libXmu"
70 DEPEND=${RDEPEND}
71
72 pkg_setup() {
73 myglewopts=(
74 AR="$(tc-getAR)"
75 STRIP=true
76 CC="$(tc-getCC)"
77 LD="$(tc-getCC) ${LDFLAGS}"
78 M_ARCH=""
79 LDFLAGS.EXTRA=""
80 POPT="${CFLAGS}"
81 )
82 }
83
84 src_prepare() {
85 sed -i \
86 -e '/INSTALL/s:-s::' \
87 -e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
88 Makefile || die
89
90 if ! use static-libs ; then
91 sed -i \
92 -e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \
93 -e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \
94 -e '/INSTALL.*LIB.STATIC/d' \
95 Makefile || die
96 fi
97
98 # don't do stupid Solaris specific stuff that won't work in Prefix
99 cp config/Makefile.linux config/Makefile.solaris || die
100 # and let freebsd be built as on linux too
101 cp config/Makefile.linux config/Makefile.freebsd || die
102 }
103
104 src_compile(){
105 emake "${myglewopts[@]}"
106 }
107
108 src_install() {
109 emake \
110 GLEW_DEST="${ED}/usr" \
111 LIBDIR="${ED}/usr/$(get_libdir)" \
112 "${myglewopts[@]}" \
113 install.all
114
115 dodoc TODO.txt
116 use doc && dohtml doc/*
117 }