fixed mesa build
[hdw-linux/hdw-linux.git] / packages / multimedia / mesa3d / mesa3d
1 # hdw - linux mesa3d package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 6.3
6 # [S] 3-6
7 # [D] MesaLib-6.3.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/mesa3d/
8
9 srcdir=Mesa-$ver
10 # install in /opt/mesa3d
11 prefix="$root/opt/$package"
12 # target
13 mt=""
14 [ "$hdw_arch" = "ia32" ] && mt="linux-x86"
15
16 pre_install()   {
17         for file in `find ./ -name depend`; do
18                 rm $file
19         done
20                 }
21
22 build_main()    {
23         if [ -n "$mt" ] ; then
24                 echo "building mesa3d for $mt ..."
25                 make $mt
26         else
27                 echo "target $hdw_arch not supported by now"
28                 exit 1
29         fi
30                 }
31
32 post_install()  {
33         rm -rf $prefix ; mkdir -p $prefix/{include,lib}
34         cp -r include/GL $prefix/include
35         cp -pd lib/* $prefix/lib
36                 }