Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/glew: ChangeLog glew-1.11.0.ebuild
Date: Fri, 26 Sep 2014 23:40:01
Message-Id: 20140926233958.2CD8965C3@oystercatcher.gentoo.org
1 radhermit 14/09/26 23:39:58
2
3 Modified: ChangeLog
4 Added: glew-1.11.0.ebuild
5 Log:
6 Version bump and support MinGW targets (bug #523444).
7
8 (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)
9
10 Revision Changes Path
11 1.106 media-libs/glew/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?rev=1.106&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?rev=1.106&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/ChangeLog?r1=1.105&r2=1.106
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v
20 retrieving revision 1.105
21 retrieving revision 1.106
22 diff -u -r1.105 -r1.106
23 --- ChangeLog 15 Sep 2014 08:20:54 -0000 1.105
24 +++ ChangeLog 26 Sep 2014 23:39:58 -0000 1.106
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/glew
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v 1.105 2014/09/15 08:20:54 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/glew/ChangeLog,v 1.106 2014/09/26 23:39:58 radhermit Exp $
30 +
31 +*glew-1.11.0 (26 Sep 2014)
32 +
33 + 26 Sep 2014; Tim Harder <radhermit@g.o> +glew-1.11.0.ebuild:
34 + Version bump and support MinGW targets (bug #523444).
35
36 15 Sep 2014; Agostino Sarubbo <ago@g.o> glew-1.10.0-r2.ebuild:
37 Stable for sparc, wrt bug #512012
38
39
40
41 1.1 media-libs/glew/glew-1.11.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/glew-1.11.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/glew/glew-1.11.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: glew-1.11.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.11.0.ebuild,v 1.1 2014/09/26 23:39:58 radhermit Exp $
51
52 EAPI=5
53 inherit multilib multilib-minimal toolchain-funcs versionator
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/$(get_version_component_range 1-2)"
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 ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
62 IUSE="doc static-libs"
63
64 RDEPEND=">=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
65 >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
66 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
67 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
68 >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
69 >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
70 abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
71 DEPEND=${RDEPEND}
72
73 src_prepare() {
74 sed -i \
75 -e '/INSTALL/s:-s::' \
76 -e '/$(CC) $(CFLAGS) -o/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
77 -e '/^.PHONY: .*\.pc$/d' \
78 Makefile || die
79
80 if ! use static-libs ; then
81 sed -i \
82 -e '/glew.lib:/s|lib/$(LIB.STATIC) ||' \
83 -e '/glew.lib.mx:/s|lib/$(LIB.STATIC.MX) ||' \
84 -e '/INSTALL.*LIB.STATIC/d' \
85 Makefile || die
86 fi
87
88 # don't do stupid Solaris specific stuff that won't work in Prefix
89 cp config/Makefile.linux config/Makefile.solaris || die
90 # and let freebsd be built as on linux too
91 cp config/Makefile.linux config/Makefile.freebsd || die
92
93 multilib_copy_sources
94 }
95
96 set_opts() {
97 myglewopts=(
98 AR="$(tc-getAR)"
99 STRIP=true
100 CC="$(tc-getCC)"
101 LD="$(tc-getCC) ${LDFLAGS}"
102 M_ARCH=""
103 LDFLAGS.EXTRA=""
104 POPT="${CFLAGS}"
105 )
106
107 # support MinGW targets (bug #523444)
108 [[ ${CHOST} == *-mingw* ]] && myglewopts+=( SYSTEM=mingw )
109 }
110
111 multilib_src_compile() {
112 set_opts
113 emake GLEW_DEST="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" "${myglewopts[@]}"
114 }
115
116 multilib_src_install() {
117 set_opts
118 emake \
119 GLEW_DEST="${ED}/usr" \
120 LIBDIR="${ED}/usr/$(get_libdir)" \
121 "${myglewopts[@]}" \
122 install.all
123
124 dodoc TODO.txt
125 use doc && dohtml doc/*
126 }