updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / bdsim / archconfig.sh
blobc517e9032eb11881c4570c6b5b52680b01b850f1
1 #!/bin/sh -e
3 USE_ROOT=''
4 _G4ver=9
5 _G4minver=3
6 _CLHEPver=2.0
7 _CLHEPweirdver=9
10 # Determine if libxml exist...
11 # we will uyse at the end of the file
12 #For linear collider detector description format LCDD (in development)
13 #xmltest=`which xml2-config`
14 #if [ ! -z "$xmltest" ]; then
15 #printf "You have libxml installed:\n"
16 #printf "Do you want to enable the GDML geometry description format ?\n"
17 #read -p "[y/n]" value
18 #if test "$value" == "y"; then
19 # USE_LCDD="-DUSE_LCDD"
20 # USE_LCDD_CFLAGS=`xml2-config --cflags`
21 # echo " BDSIM is able to read LCDD format...."
22 #fi
23 #fi
25 # USE_GDML="-DUSE_GDML" # not working at the moment :(
27 # copy from configure script...
28 Makefile='Makefile'
29 echo > $Makefile
30 #echo " ########################################### " > $Makefile
31 echo "# Makefile for BDSIM " >> $Makefile
32 echo "# Generated automatically " >> $Makefile
33 echo "# by ${USER} " >> $Makefile
34 echo "# on $(date) " >> $Makefile
35 #echo "# " >> $Makefile
36 #echo " ########################################### " >> $Makefile
37 echo >> $Makefile
38 echo >> $Makefile
39 cat Makefile.in | sed "
40 s%@G4INSTALL@%$G4INSTALL%g;
41 s%@G4LIBDIR@%$G4LIBDIR%g;
42 s%@ROOTSYS@%$ROOT_sys%g;
43 s%@BINDIR@%`pwd`%g;
44 s%@G4VERSION@%$_G4ver%g;
45 s%@G4MINORVERSION@%$_G4minver%g;
46 s%@CLHEP_VERSION@%$_CLHEPweirdver%g;
47 s%@USE_ROOT@%$USE_ROOT%g;
48 s%@USE_GDML@%$USE_GDML%g;
49 s%@USE_LCDD@%$USE_LCDD%g;
50 s%@LCDD_CFLAGS@%$LCDD_CFLAGS%g;
51 s%@LCDD_LIBS@%$LCDD_LIBSS%g;
52 s%@OGLLIBS@%$opengllib%g; " >> $Makefile