OpenSDE Packages Database (without history before r20070)
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.

66 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mesa/mesa.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # don't run make install
  16. makeinstopt=''
  17. # define the default driver location
  18. var_append makeopt ' ' "DRI_DRIVER_INSTALL_DIR=\"$libdir/xorg/modules/dri\""
  19. # use gccmakedep
  20. [ "$SDECFG_DEFAULT_CC" == "gcc" ] && var_append makeopt ' ' "MKDEP=gccmakedep"
  21. # X11 support
  22. if pkginstalled libx11; then
  23. pkgprefix -t libx11
  24. var_append makeopt ' ' "X11_INCLUDES=-I$root$( pkgprefix includedir libx11)"
  25. var_append makeopt ' ' "EXTRA_LIB_PATH=-L$root$( pkgprefix libdir libx11)"
  26. fi
  27. # arch dependent optimization (compare configs/linux-dri-*)
  28. case "$arch" in
  29. x86) target=linux-dri-x86
  30. ;;
  31. x86-64) target=linux-dri-x86-64
  32. ;;
  33. powerpc*) target=linux-dri-ppc
  34. ;;
  35. *) target=linux-dri
  36. ;;
  37. esac
  38. var_append makeopt ' ' "$target"
  39. mesa_install()
  40. {
  41. mkdir -p $root$includedir/GL #{GL,GLES}
  42. install -v include/GL/*.h $root$includedir/GL/
  43. cp -av lib*/lib* $root$libdir/
  44. mkdir -p $root$libdir/xorg/modules/dri/
  45. install -v lib*/*dri.so $root$libdir/xorg/modules/dri/
  46. (
  47. cd $root/usr/${libdir##*/}
  48. # some compat symlinks (needed e.g. for (free)glut)
  49. ln -sdfv ../X11/include/GL $root/usr/include/GL
  50. ln -sfv ../X11/${libdir##*/}/libGL.* .
  51. ln -sfv ../X11/${libdir##*/}/libGLU.* .
  52. )
  53. }
  54. hook_add postmake 5 "mesa_install"