mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
851 B

  1. mesalib_prepatch() {
  2. if [ $xpkg = mesademos ]; then
  3. tar xvjf $archdir/MesaDemos-$ver.tar.bz2 -C ..
  4. patch -p1 < $confdir/no_broken_demos.diff
  5. fi
  6. find progs/ -type f -perm +111 | xargs -r chmod -x
  7. sed -i 's,/usr/local,/usr,g' configs/*
  8. }
  9. mesalib_postmake() {
  10. find progs/ -type f -perm +111 | while read src; do
  11. if [[ `basename $src` == gl* ]]; then
  12. trg=`basename $src`
  13. else
  14. trg=${src//\//-}; trg=${trg/progs-/mesa-}
  15. fi
  16. echo "installing $src: $root/usr/X11/bin/$trg"
  17. install $src $root/usr/X11/bin/$trg
  18. done
  19. }
  20. var_append CC_WRAPPER_FILTER "|" \
  21. "sed -r 's,-lglut,-L/usr/X11/lib\n-lXmu\n-lXi\n-lglut,g'"
  22. # FIXME: use a different makeopt if arch != x86
  23. makeopt="linux-x86"
  24. if [ $xpkg = mesademos ]; then
  25. makeinstopt=""
  26. fi
  27. prepatch="mesalib_prepatch"
  28. postmake="mesalib_postmake"
  29. export CFLAGS="$CFLAGS -I/usr/X11/include"