1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/root/root.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $prefix_auto = 1 ]; then
18 # -Os/-s would remove necessary symbols, instead use -O2 as default
19 var_remove_regex GCC_WRAPPER_REMOVE " " "-Os"
20 var_remove_regex GCC_WRAPPER_INSERT " " "-Os"
21 var_remove_regex GCC_WRAPPER_APPEND " " "-s"
23 var_append GCC_WRAPPER_INSERT " " "-O2"
25 var_append GCC_WRAPPER_INSERT " " "-I/usr/X11/include"
28 rootconfopt="--enable-rpath --enable-shared --enable-soversion --enable-explicitlink --enable-exceptions --enable-shadowpw"
30 #FIXME --with-mysql-{incdir,libdir}
31 #FIXME --with-ldap-{incdir,libdir}
32 #FIXME --with-pgsql-{incdir,libdir}
33 #FIXME --with-krb5-{incdir,libdir}
34 #FIXME --with-sys-iconpath
36 # use QT as graphics backend
37 pkginstalled qt3 && var_append rootconfopt ' ' "--enable-qt"
40 var_append rootconfopt ' ' "--enable-table"
41 var_append rootconfopt ' ' "--enable-xml"
44 var_append rootconfopt ' ' "--enable-mathcore"
45 var_append rootconfopt ' ' "--enable-reflex"
46 var_append rootconfopt ' ' "--enable-roofit"
47 var_append rootconfopt ' ' "--enable-cintex"
52 alpha) trg=linuxalphagcc ;;
54 ia64) trg=linuxia64gcc ;;
55 mips) trg=linuxmips ;;
56 powerpc) trg=linuxppcgcc ;;
57 powerpc64) trg=linuxppc64gcc ;;
58 x86-64) trg=linuxx8664gcc ;;
62 eval ./configure $trg \
65 --mandir=$mandir/man1 \
66 --docdir=$docdir/packages/${pkg} \
67 --aclocaldir=$datadir/aclocal \
71 eval $MAKE; eval $MAKE install
74 cat > $root/etc/profile.d/root <<-EOP
76 PATH="\$PATH:\$ROOTSYS/bin"
77 MANPATH="\$MANPATH:\$ROOTSYS/man"
78 export ROOTSYS PATH MANPATH