1 |
chithanh 13/03/28 13:21:58 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: mesa-progs-8.1.0.ebuild |
5 |
Log: |
6 |
Version bump, bug #462056. |
7 |
|
8 |
(Portage version: 2.1.11.55/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 x11-apps/mesa-progs/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/metadata.xml?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/metadata.xml?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/metadata.xml?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/metadata.xml,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- metadata.xml 14 Dec 2005 15:57:07 -0000 1.1 |
24 |
+++ metadata.xml 28 Mar 2013 13:21:58 -0000 1.2 |
25 |
@@ -2,4 +2,9 @@ |
26 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
<pkgmetadata> |
28 |
<herd>x11</herd> |
29 |
+<use> |
30 |
+ <flag name='egl'>Build EGL utilities</flag> |
31 |
+ <flag name='gles1'>Build OpenGL ES 1 utilities</flag> |
32 |
+ <flag name='gles2'>Build OpenGL ES 2 utilities</flag> |
33 |
+</use> |
34 |
</pkgmetadata> |
35 |
|
36 |
|
37 |
|
38 |
1.94 x11-apps/mesa-progs/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/ChangeLog?rev=1.94&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/ChangeLog?rev=1.94&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/ChangeLog?r1=1.93&r2=1.94 |
43 |
|
44 |
Index: ChangeLog |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/ChangeLog,v |
47 |
retrieving revision 1.93 |
48 |
retrieving revision 1.94 |
49 |
diff -u -r1.93 -r1.94 |
50 |
--- ChangeLog 16 May 2011 07:55:20 -0000 1.93 |
51 |
+++ ChangeLog 28 Mar 2013 13:21:58 -0000 1.94 |
52 |
@@ -1,6 +1,12 @@ |
53 |
# ChangeLog for x11-apps/mesa-progs |
54 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/ChangeLog,v 1.93 2011/05/16 07:55:20 mgorny Exp $ |
56 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
57 |
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/ChangeLog,v 1.94 2013/03/28 13:21:58 chithanh Exp $ |
58 |
+ |
59 |
+*mesa-progs-8.1.0 (28 Mar 2013) |
60 |
+ |
61 |
+ 28 Mar 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
62 |
+ +mesa-progs-8.1.0.ebuild, metadata.xml: |
63 |
+ Version bump, bug #462056. |
64 |
|
65 |
16 May 2011; Michał Górny <mgorny@g.o> mesa-progs-8.0.1.ebuild: |
66 |
Fix implicit libX11 linkage (bug #367451). |
67 |
@@ -358,4 +364,3 @@ |
68 |
+mesa-progs-6.4.1.ebuild: |
69 |
This provides glxgears and glxinfo. In the future, it may be enhanced to |
70 |
optionally build more of the programs and demos Mesa distributes. |
71 |
- |
72 |
|
73 |
|
74 |
|
75 |
1.1 x11-apps/mesa-progs/mesa-progs-8.1.0.ebuild |
76 |
|
77 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/mesa-progs-8.1.0.ebuild?rev=1.1&view=markup |
78 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/mesa-progs/mesa-progs-8.1.0.ebuild?rev=1.1&content-type=text/plain |
79 |
|
80 |
Index: mesa-progs-8.1.0.ebuild |
81 |
=================================================================== |
82 |
# Copyright 1999-2013 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/mesa-progs-8.1.0.ebuild,v 1.1 2013/03/28 13:21:58 chithanh Exp $ |
85 |
|
86 |
EAPI=5 |
87 |
|
88 |
MY_PN=${PN/progs/demos} |
89 |
MY_P=${MY_PN}-${PV} |
90 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${MY_PN/-//}" |
91 |
EGIT_PROJECT="mesa-progs" |
92 |
|
93 |
if [[ ${PV} = 9999* ]]; then |
94 |
GIT_ECLASS="git-2" |
95 |
EXPERIMENTAL="true" |
96 |
fi |
97 |
|
98 |
inherit base autotools toolchain-funcs ${GIT_ECLASS} |
99 |
|
100 |
DESCRIPTION="Mesa's OpenGL utility and demo programs (glxgears and glxinfo)" |
101 |
HOMEPAGE="http://mesa3d.sourceforge.net/" |
102 |
if [[ ${PV} == 9999* ]]; then |
103 |
SRC_URI="" |
104 |
else |
105 |
SRC_URI="ftp://ftp.freedesktop.org/pub/${MY_PN/-//}/${PV}/${MY_P}.tar.bz2" |
106 |
fi |
107 |
|
108 |
LICENSE="LGPL-2" |
109 |
SLOT="0" |
110 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux" |
111 |
IUSE="egl gles1 gles2" |
112 |
|
113 |
RDEPEND=" |
114 |
media-libs/mesa[egl?,gles1?,gles2?] |
115 |
virtual/opengl |
116 |
x11-libs/libX11" |
117 |
# glew and glu are only needed by the configure script which is only used |
118 |
# when building EGL/GLESv1/GLESv2 programs. They are not actually required |
119 |
# by the installed programs. |
120 |
DEPEND="${RDEPEND} |
121 |
egl? ( |
122 |
media-libs/glew |
123 |
virtual/glu |
124 |
) |
125 |
x11-proto/xproto" |
126 |
|
127 |
S=${WORKDIR}/${MY_P} |
128 |
|
129 |
src_unpack() { |
130 |
default |
131 |
[[ $PV = 9999* ]] && git-2_src_unpack |
132 |
} |
133 |
|
134 |
src_prepare() { |
135 |
base_src_prepare |
136 |
|
137 |
eautoreconf |
138 |
} |
139 |
|
140 |
src_configure() { |
141 |
# We're not using the complete buildsystem if we only want to build |
142 |
# glxinfo and glxgears. |
143 |
if use egl || use gles1 || use gles2; then |
144 |
default_src_configure |
145 |
fi |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
if ! use egl && ! use gles1 && ! use gles2; then |
150 |
tc-export CC |
151 |
emake LDLIBS='-lX11 -lGL' src/xdemos/glxinfo |
152 |
emake LDLIBS='-lX11 -lGL -lm' src/xdemos/glxgears |
153 |
else |
154 |
emake -C src/xdemos glxgears glxinfo |
155 |
fi |
156 |
|
157 |
if use egl; then |
158 |
emake LDLIBS="-lEGL" -C src/egl/opengl/ eglinfo |
159 |
emake -C src/egl/eglut/ libeglut_screen.la libeglut_x11.la |
160 |
emake LDLIBS="-lGL -lEGL -lX11 -lm" -C src/egl/opengl/ eglgears_x11 |
161 |
emake LDLIBS="-lGL -lEGL -lm" -C src/egl/opengl/ eglgears_screen |
162 |
|
163 |
if use gles1; then |
164 |
emake LDLIBS="-lGLESv1_CM -lEGL -lX11" -C src/egl/opengles1/ es1_info |
165 |
emake LDLIBS="-lGLESv1_CM -lEGL -lX11 -lm" -C src/egl/opengles1/ gears_x11 |
166 |
emake LDLIBS="-lGLESv1_CM -lEGL -lm" -C src/egl/opengles1/ gears_screen |
167 |
fi |
168 |
if use gles2; then |
169 |
emake LDLIBS="-lGLESv2 -lEGL -lX11" -C src/egl/opengles2/ es2_info |
170 |
emake LDLIBS="-lGLESv2 -lEGL -lX11 -lm" -C src/egl/opengles2/ es2gears_x11 |
171 |
emake LDLIBS="-lGLESv2 -lEGL -lm" -C src/egl/opengles2/ es2gears_screen |
172 |
fi |
173 |
fi |
174 |
} |
175 |
|
176 |
src_install() { |
177 |
dobin src/xdemos/{glxgears,glxinfo} |
178 |
if use egl; then |
179 |
dobin src/egl/opengl/egl{info,gears_{screen,x11}} |
180 |
|
181 |
if use gles1; then |
182 |
dobin src/egl/opengles1/es1_info |
183 |
newbin src/egl/opengles1/gears_screen es1gears_screen |
184 |
newbin src/egl/opengles1/gears_x11 es1gears_x11 |
185 |
fi |
186 |
|
187 |
use gles2 && dobin src/egl/opengles2/es2{_info,gears_{screen,x11}} |
188 |
fi |
189 |
} |