+# hdw - linux mesa3d package
+#
+# author: hackbard@hackdaworld.dyndns.org
+#
+# [V] 6.0.1
+# [S] 3-6
+# [D] MesaLib-6.0.1.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/mesa3d/
+
+srcdir=Mesa-$ver
+# install in /opt/mesa3d
+prefix="$root/opt/$package"
+# target
+mt=""
+[ "$hdw_arch" = "ia32" ] && mt="linux-x86"
+
+build_main() {
+ if [ -n "$mt" ] ; then
+ echo "building mesa3d for $mt ..."
+ make $mt
+ else
+ echo "target $hdw_rach not supported by now"
+ exit 1
+ fi
+ }
+
+post_install() {
+ rm -rf $prefix ; mkdir -p $prefix/{include,lib}
+ cp -r include/GL $prefix/include
+ cp -pd lib/* $prefix/lib
+ }