|
Lines 25-30
LICENSE="LGPL-2"
Link Here
|
| 25 |
SLOT="0" |
25 |
SLOT="0" |
| 26 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
26 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
| 27 |
IUSE_VIDEO_CARDS=" |
27 |
IUSE_VIDEO_CARDS=" |
|
|
28 |
video_cards_nouveau |
| 29 |
video_cards_radeonhd |
| 28 |
video_cards_intel |
30 |
video_cards_intel |
| 29 |
video_cards_mach64 |
31 |
video_cards_mach64 |
| 30 |
video_cards_mga |
32 |
video_cards_mga |
|
Lines 39-44
IUSE_VIDEO_CARDS="
Link Here
|
| 39 |
video_cards_trident |
41 |
video_cards_trident |
| 40 |
video_cards_via" |
42 |
video_cards_via" |
| 41 |
IUSE="${IUSE_VIDEO_CARDS} |
43 |
IUSE="${IUSE_VIDEO_CARDS} |
|
|
44 |
mmx |
| 45 |
sse |
| 46 |
3dnow |
| 42 |
debug |
47 |
debug |
| 43 |
doc |
48 |
doc |
| 44 |
pic |
49 |
pic |
|
Lines 115-120
src_unpack() {
Link Here
|
| 115 |
find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ; |
120 |
find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ; |
| 116 |
fi |
121 |
fi |
| 117 |
|
122 |
|
|
|
123 |
# remove unused cpu features |
| 124 |
local i |
| 125 |
for i in mmx sse 3dnow; do |
| 126 |
use ${i} || sed -i -e s/-DUSE_${i}_ASM//i "${S}"/configure* |
| 127 |
done |
| 128 |
|
| 118 |
eautoreconf |
129 |
eautoreconf |
| 119 |
} |
130 |
} |
| 120 |
|
131 |
|
|
Lines 134-139
src_compile() {
Link Here
|
| 134 |
driver_enable video_cards_mga mga |
145 |
driver_enable video_cards_mga mga |
| 135 |
driver_enable video_cards_r128 r128 |
146 |
driver_enable video_cards_r128 r128 |
| 136 |
driver_enable video_cards_radeon radeon r200 r300 |
147 |
driver_enable video_cards_radeon radeon r200 r300 |
|
|
148 |
driver_enable video_cards_radeonhd radeon r200 r300 |
| 137 |
driver_enable video_cards_s3virge s3v |
149 |
driver_enable video_cards_s3virge s3v |
| 138 |
driver_enable video_cards_savage savage |
150 |
driver_enable video_cards_savage savage |
| 139 |
driver_enable video_cards_sis sis |
151 |
driver_enable video_cards_sis sis |
|
Lines 145-155
src_compile() {
Link Here
|
| 145 |
# Set drivers to everything on which we ran driver_enable() |
157 |
# Set drivers to everything on which we ran driver_enable() |
| 146 |
myconf="${myconf} --with-dri-drivers=${DRI_DRIVERS}" |
158 |
myconf="${myconf} --with-dri-drivers=${DRI_DRIVERS}" |
| 147 |
|
159 |
|
|
|
160 |
myconf="${myconf} $(use_enable video_cards_nouveau gallium-nouveau)" |
| 161 |
myconf="${myconf} $(use_enable video_cards_radeonhd gallium-radeon)" |
| 162 |
myconf="${myconf} $(use_enable video_cards_intel gallium-intel)" |
| 163 |
|
| 148 |
# Deactivate assembly code for pic build |
164 |
# Deactivate assembly code for pic build |
| 149 |
myconf="${myconf} $(use_enable pic asm)" |
165 |
use pic && myconf="${myconf} --disable-asm" |
| 150 |
|
166 |
|
| 151 |
# Sparc assembly code is not working |
167 |
# Sparc assembly code is not working |
| 152 |
myconf="${myconf} $(use_enable sparc asm)" |
168 |
use sparc && myconf="${myconf} --disable-asm" |
| 153 |
|
169 |
|
| 154 |
myconf="${myconf} --disable-glut" |
170 |
myconf="${myconf} --disable-glut" |
| 155 |
|
171 |
|
|
Lines 161-166
src_compile() {
Link Here
|
| 161 |
rm -f "${S}"/include/GL/glut*h |
177 |
rm -f "${S}"/include/GL/glut*h |
| 162 |
|
178 |
|
| 163 |
myconf="${myconf} $(use_enable motif glw)" |
179 |
myconf="${myconf} $(use_enable motif glw)" |
|
|
180 |
myconf="${myconf} $(use_enable motif motif)" |
| 164 |
|
181 |
|
| 165 |
econf ${myconf} || die |
182 |
econf ${myconf} || die |
| 166 |
emake || die |
183 |
emake || die |
|
Lines 206-211
src_install() {
Link Here
|
| 206 |
|
223 |
|
| 207 |
pkg_postinst() { |
224 |
pkg_postinst() { |
| 208 |
switch_opengl_implem |
225 |
switch_opengl_implem |
|
|
226 |
# die "debug" |
| 209 |
} |
227 |
} |
| 210 |
|
228 |
|
| 211 |
fix_opengl_symlinks() { |
229 |
fix_opengl_symlinks() { |