# hdw - linux mesa3d package # # author: hackbard@hackdaworld.dyndns.org # # [V] 6.3 # [S] 3-6 # [D] MesaLib-6.3.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" pre_install() { for file in `find ./ -name depend`; do rm $file done } build_main() { if [ -n "$mt" ] ; then echo "building mesa3d for $mt ..." make $mt else echo "target $hdw_arch 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 }