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.

83 lines
2.3 KiB

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