summaryrefslogtreecommitdiffstats
path: root/xorg/mesa3d/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/mesa3d/Pkgfile')
-rwxr-xr-xxorg/mesa3d/Pkgfile24
1 files changed, 22 insertions, 2 deletions
diff --git a/xorg/mesa3d/Pkgfile b/xorg/mesa3d/Pkgfile
index 9f142503b..77aea3b12 100755
--- a/xorg/mesa3d/Pkgfile
+++ b/xorg/mesa3d/Pkgfile
@@ -6,7 +6,7 @@
name=mesa3d
version=7.9
-release=2
+release=5
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2)
build() {
@@ -22,9 +22,29 @@ build() {
./configure --prefix=/usr \
--with-driver=dri \
--with-dri-driverdir=/usr/lib/dri
- make
+ make
+ # mesa
make DESTDIR=$PKG install
+
+ # libgl
+ cd $SRC/Mesa-*
+ install -m755 -d $PKG/usr/lib
+ install -m755 -d $PKG/usr/lib/xorg/modules/extensions
+ bin/minstall lib/lib* $PKG/usr/lib/
+
+ case `uname -m` in
+ x86_64)
+ install -m755 -d $PKG/usr/lib64
+ install -m755 -d $PKG/usr/lib64/xorg/modules/extensions
+ bin/minstall lib/lib* $PKG/usr/lib64/
+ esac
+
+ cd src/mesa/drivers/dri
+ make -C swrast DESTDIR=$PKG install
+ ln -s libglx.xorg $PKG/usr/lib/xorg/modules/extensions/libglx.so
+
+
# for i in glew.h glxew.h wglew.h
# do
# rm $PKG/usr/include/GL/$i