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.

127 lines
4.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/jsaw/root/root.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  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; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. #@FIXME taken from qt31.conf, okay?
  23. if [ $prefix_auto = 1 ] ; then
  24. prefix="opt/root"
  25. set_confopt
  26. fi
  27. cust_ROOT() {
  28. case "$arch_machine" in
  29. i?86) trg=linux ;;
  30. *) trg=linux ;;
  31. esac
  32. # clean extra confopt
  33. extraconfopt=''
  34. ## Options:
  35. ## afs AFS support, requires AFS libs and objects
  36. pkginstalled afterstep && var_append extraconfopt ' ' "--enable-asimage"
  37. ## alien AliEn support, requires libAliEnAPI++ from ALICE
  38. ## cern CERNLIB usage, build h2root and g2root
  39. ## chirp Chirp support (Condor remote I/O), requires libchirp_client
  40. ## dcache dCache support, requires libdcap from DESY
  41. var_append extraconfopt ' ' "--enable-exceptions"
  42. ## explicitlink Explicitly link with all dependent libraries
  43. ## globus Globus authentication support, requires Globus toolkit
  44. ## krb5 Kerberos5 support, requires Kerberos libs
  45. #FIXME doesn't find libldap
  46. if pkginstalled openldap; then
  47. var_append extraconfopt ' ' "--enable-ldap"
  48. var_append extraconfopt ' ' "--with-ldap-incdir=$root/$pkg_openldap_prefix/include"
  49. var_append extraconfopt ' ' "--with-ldap-libdir=$root/$pkg_openldap_prefix/lib"
  50. fi
  51. if pkginstalled mysql; then
  52. var_append extraconfopt ' ' "--enable-mysql"
  53. var_append extraconfopt ' ' "--with-mysql-incdir=$root/$pkg_mysql_prefix/include"
  54. var_append extraconfopt ' ' "--with-mysql-libdir=$root/$pkg_mysql_prefix/lib"
  55. fi
  56. var_append extraconfopt ' ' "--enable-opengl"
  57. ## openiv OpenInventor support, requires libInventor and libInventorXt
  58. pkginstalled python && var_append extraconfopt ' ' "--enable-python"
  59. ## ruby Ruby ROOT bindings, requires ruby >= 1.8
  60. if pkginstalled postgresql; then
  61. var_append extraconfopt ' ' "--enable-pgsql"
  62. var_append extraconfopt ' ' "--with-pgsql-incdir=$root/$pkg_postgresql_prefix/include"
  63. var_append extraconfopt ' ' "--with-pgsql-libdir=$root/$pkg_postgresql_prefix/lib"
  64. fi
  65. ## pythia Pythia5 EG support, requires libPythia
  66. ## pythia6 Pythia6 EG support, requires libPythia6
  67. ## rfio SHIFT support, requires libshift from CERN
  68. ## sapdb SapDB support, requires libsqlod and libsqlrte
  69. ## srp SRP support, requires SRP source tree
  70. #FIXME libTable is borken: var_append extraconfopt ' ' "--enable-table"
  71. ## venus Venus EG support, requires libVenus
  72. #FIXME see libTable: var_append extraconfopt ' ' "--enable-xml"
  73. var_append extraconfopt ' ' "--disable-xml"
  74. eval ./configure $trg \
  75. --prefix=$root/$prefix \
  76. --etcdir=$root/$prefix/etc \
  77. --libdir=$root/$prefix/lib \
  78. --mandir=$root/usr/share/man/man1 \
  79. --docdir=$root/usr/share/doc/packages/${pkg} \
  80. --aclocaldir=$root/usr/share/aclocal \
  81. --enable-rpath \
  82. --enable-shadowpw \
  83. --enable-soversion \
  84. --enable-shared \
  85. --enable-thread \
  86. $extraconfopt
  87. #--enable-
  88. eval $MAKE ; eval $MAKE install
  89. #FIXME register fonts
  90. cat > $root/etc/profile.d/root <<-EOP
  91. ROOTSYS=/$prefix
  92. PATH="\$PATH:\$ROOTSYS/bin"
  93. MANPATH="\$MANPATH:\$ROOTSYS/man"
  94. export ROOTSYS PATH MANPATH
  95. EOP
  96. }
  97. custmain=cust_ROOT