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.

82 lines
2.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../root/root.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix="opt/root"
  17. set_confopt
  18. fi
  19. #var_append CXX_WRAPPER_INSERT ' ' "-fpermissive"
  20. # -Os/-s would remove necessary symbols, instead use -O2 as default
  21. var_remove_regex GCC_WRAPPER_REMOVE " " "-Os"
  22. var_remove_regex GCC_WRAPPER_INSERT " " "-Os"
  23. var_remove_regex GCC_WRAPPER_APPEND " " "-s"
  24. var_append GCC_WRAPPER_INSERT " " "-O2"
  25. # defaults
  26. rootconfopt="--enable-rpath --enable-shared --enable-soversion --enable-explicitlink --enable-exceptions --enable-thread --enable-shadowpw"
  27. #FIXME --with-mysql-{incdir,libdir}
  28. #FIXME --with-ldap-{incdir,libdir}
  29. #FIXME --with-pgsql-{incdir,libdir}
  30. #FIXME --with-krb5-{incdir,libdir}
  31. #FIXME --with-sys-iconpath
  32. # use QT as graphics backend
  33. pkginstalled qt && var_append rootconfopt ' ' "--enable-qt"
  34. # various stuff
  35. var_append rootconfopt ' ' "--enable-table"
  36. var_append rootconfopt ' ' "--enable-xml"
  37. # root v5 specific
  38. var_append rootconfopt ' ' "--enable-mathcore"
  39. var_append rootconfopt ' ' "--enable-reflex"
  40. var_append rootconfopt ' ' "--enable-roofit"
  41. var_append rootconfopt ' ' "--enable-cintex"
  42. cust_ROOT() {
  43. # configure
  44. case "$arch_machine" in
  45. i?86) trg=linux ;;
  46. x86_64) trg=linuxx8664gcc ;;
  47. # FIXME ppc, ppc64 etal
  48. *) trg=linux ;;
  49. esac
  50. eval ./configure $trg \
  51. --prefix=$root/$prefix \
  52. --libdir=$root/$prefix/lib \
  53. --mandir=$root/usr/share/man/man1 \
  54. --docdir=$root/usr/share/doc/packages/${pkg} \
  55. --aclocaldir=$root/usr/share/aclocal \
  56. $rootconfopt
  57. # build
  58. eval $MAKE ; eval $MAKE install
  59. # profile.d for root
  60. cat > $root/etc/profile.d/root <<-EOP
  61. ROOTSYS=/$prefix
  62. PATH="\$PATH:\$ROOTSYS/bin"
  63. MANPATH="\$MANPATH:\$ROOTSYS/man"
  64. export ROOTSYS PATH MANPATH
  65. EOP
  66. }
  67. custmain=cust_ROOT