Lines 13-22
Link Here
|
13 |
$install_name = "vmd"; |
13 |
$install_name = "vmd"; |
14 |
|
14 |
|
15 |
# Directory where VMD startup script is installed, should be in users' paths. |
15 |
# Directory where VMD startup script is installed, should be in users' paths. |
16 |
$install_bin_dir="/usr/local/bin"; |
16 |
$install_bin_dir="gentoo-bindir"; |
17 |
|
17 |
|
18 |
# Directory where VMD files and executables are installed |
18 |
# Directory where VMD files and executables are installed |
19 |
$install_library_dir="/usr/local/lib/$install_name"; |
19 |
$install_library_dir="gentoo-libdir/$install_name"; |
20 |
|
20 |
|
21 |
|
21 |
|
22 |
# optionally override hard-coded defaults above with environment variables |
22 |
# optionally override hard-coded defaults above with environment variables |
Lines 132-160
if ($ENV{VMDINSTALLLIBRARYDIR}) {
Link Here
|
132 |
# Configure script code begins here |
132 |
# Configure script code begins here |
133 |
############################################################################ |
133 |
############################################################################ |
134 |
|
134 |
|
135 |
## Test for existence of a properly compiled plugin tree |
|
|
136 |
if (!(-e "plugins")) { |
137 |
print "\n"; |
138 |
print "VMD plugin directory not found.\n"; |
139 |
print "Please compile the VMD plugins and do 'make distrib' to copy them\n"; |
140 |
print "into a 'plugins' directory linked or located in this directory.\n"; |
141 |
print "Be sure your PLUGINDIR environment variable is set before running\n"; |
142 |
print "'make distrib' in the plugin build area.\n"; |
143 |
print "\n"; |
144 |
die "Halting configuration until VMD plugins are built.\n"; |
145 |
} else { |
146 |
if (!(-e "plugins/include/vmdplugin.h")) { |
147 |
print "\n"; |
148 |
print "VMD plugin include files or directory not found.\n"; |
149 |
print "Please compile the VMD plugins and do 'make distrib' to copy them\n"; |
150 |
print "into a 'plugins' directory linked or located in this directory.\n"; |
151 |
print "Be sure your PLUGINDIR environment variable is set before running\n"; |
152 |
print "'make distrib' in the plugin build area.\n"; |
153 |
print "\n"; |
154 |
die "Halting configuration until VMD plugins are built.\n"; |
155 |
} |
156 |
} |
157 |
|
158 |
#################### Parse command line options ########### |
135 |
#################### Parse command line options ########### |
159 |
# list of allowed architectures |
136 |
# list of allowed architectures |
160 |
@archlist=('IRIX6', 'IRIX6_64', 'FREEBSD', 'FREEBSDAMD64', 'HPUX11', 'AIX4', 'AIX5', 'AIX5_64', 'AIX6_64', 'BLUEWATERS', 'LINUX', 'LINUXALPHA', 'LINUXAMD64', 'LINUXIA64', 'LINUXPPC', 'LINUXPPC64', 'MACOSX', 'MACOSXX86', 'MACOSXX86_64', 'TRU64', 'SOLARIS2', 'SOLARIS2_64', 'SOLARISX86', 'SOLARISX86_64', 'WIN32', 'WIN64'); |
137 |
@archlist=('IRIX6', 'IRIX6_64', 'FREEBSD', 'FREEBSDAMD64', 'HPUX11', 'AIX4', 'AIX5', 'AIX5_64', 'AIX6_64', 'BLUEWATERS', 'LINUX', 'LINUXALPHA', 'LINUXAMD64', 'LINUXIA64', 'LINUXPPC', 'LINUXPPC64', 'MACOSX', 'MACOSXX86', 'MACOSXX86_64', 'TRU64', 'SOLARIS2', 'SOLARIS2_64', 'SOLARISX86', 'SOLARISX86_64', 'WIN32', 'WIN64'); |
Lines 451-457
chop($arch_no_math_float);
Link Here
|
451 |
|
428 |
|
452 |
################ Plugin options |
429 |
################ Plugin options |
453 |
# |
430 |
# |
454 |
$plugin_dir = "../plugins"; |
431 |
$plugin_dir = "gentoo-plugindir"; |
455 |
$plugin_include = "-I$plugin_dir/include"; |
432 |
$plugin_include = "-I$plugin_dir/include"; |
456 |
$plugin_library = ""; |
433 |
$plugin_library = ""; |
457 |
$plugin_libs = ""; |
434 |
$plugin_libs = ""; |
Lines 464-470
$plugin_defines = "";
Link Here
|
464 |
@plugin_extra = (); |
441 |
@plugin_extra = (); |
465 |
|
442 |
|
466 |
if ($config_staticplugin) { |
443 |
if ($config_staticplugin) { |
467 |
$molfile_dir = "$plugin_dir/$config_arch/molfile"; |
444 |
$molfile_dir = "$plugin_dir/compile/lib_LINUX/molfile"; |
468 |
$plugin_include .= " -I$molfile_dir"; |
445 |
$plugin_include .= " -I$molfile_dir"; |
469 |
$plugin_library .= " -L$molfile_dir"; |
446 |
$plugin_library .= " -L$molfile_dir"; |
470 |
$plugin_libs .= " -lmolfile_plugin"; |
447 |
$plugin_libs .= " -lmolfile_plugin"; |
Lines 564-571
$fltkopengl_defines = "-DVMDOPENGL -
Link Here
|
564 |
################ FLTK GUI |
541 |
################ FLTK GUI |
565 |
$fltk_defines = "-DVMDGUI -DVMDFLTK"; |
542 |
$fltk_defines = "-DVMDGUI -DVMDFLTK"; |
566 |
$fltk_dir = "$vmd_library_dir/fltk"; |
543 |
$fltk_dir = "$vmd_library_dir/fltk"; |
567 |
$fltk_include = "-I$fltk_dir/include"; |
544 |
$fltk_include = "-Igentoo-fltk-include"; |
568 |
$fltk_library = "-L$fltk_dir/$config_arch"; |
545 |
$fltk_library = "-Lgentoo-fltk-libs"; |
569 |
$fltk_libs = "-lfltk -lX11"; |
546 |
$fltk_libs = "-lfltk -lX11"; |
570 |
#@fltk_cc = ('forms_ui.c'); |
547 |
#@fltk_cc = ('forms_ui.c'); |
571 |
@fltk_cu = (); |
548 |
@fltk_cu = (); |
Lines 626-633
$tcl_include = "-I$stock_tcl_includ
Link Here
|
626 |
if ($config_tk) { $tcl_include .= " -I$stock_tk_include_dir"; } |
603 |
if ($config_tk) { $tcl_include .= " -I$stock_tk_include_dir"; } |
627 |
$tcl_library = "-L$stock_tcl_library_dir"; |
604 |
$tcl_library = "-L$stock_tcl_library_dir"; |
628 |
if ($config_tk) { $tcl_library .= " -L$stock_tk_library_dir"; } |
605 |
if ($config_tk) { $tcl_library .= " -L$stock_tk_library_dir"; } |
629 |
$tcl_libs = "-ltcl8.5"; |
606 |
$tcl_libs = "-ltcl"; |
630 |
if ($config_tk) { $tcl_libs = "-ltk8.5 -lX11 " . $tcl_libs; } |
607 |
if ($config_tk) { $tcl_libs = "-ltk -lX11 " . $tcl_libs; } |
631 |
|
608 |
|
632 |
@tcl_cc = (); |
609 |
@tcl_cc = (); |
633 |
@tcl_cu = (); |
610 |
@tcl_cu = (); |
Lines 1004-1011
$mpi_libs = "-L/usr/mpi/gcc/mvapi
Link Here
|
1004 |
####################### |
981 |
####################### |
1005 |
$netcdf_defines = ""; |
982 |
$netcdf_defines = ""; |
1006 |
$netcdf_dir = "$vmd_library_dir/netcdf"; |
983 |
$netcdf_dir = "$vmd_library_dir/netcdf"; |
1007 |
$netcdf_include = "-I$netcdf_dir/include"; |
984 |
$netcdf_include = "-Igentoo-netcdf-include"; |
1008 |
$netcdf_library = "-L$netcdf_dir/lib_$config_arch"; |
985 |
$netcdf_library = "-Lgentoo-netcdf-libs"; |
1009 |
$netcdf_libs = "-lnetcdf"; |
986 |
$netcdf_libs = "-lnetcdf"; |
1010 |
@netcdf_cc = (); |
987 |
@netcdf_cc = (); |
1011 |
@netcdf_cu = (); |
988 |
@netcdf_cu = (); |
Lines 1083-1091
$stock_numpy_include_dir=$ENV{"NUMPY_INC
Link Here
|
1083 |
$stock_numpy_library_dir=$ENV{"NUMPY_LIBRARY_DIR"} || "$vmd_library_dir/python/lib_$config_arch/lib/python2.5/site-packages/numpy/core/include"; |
1060 |
$stock_numpy_library_dir=$ENV{"NUMPY_LIBRARY_DIR"} || "$vmd_library_dir/python/lib_$config_arch/lib/python2.5/site-packages/numpy/core/include"; |
1084 |
|
1061 |
|
1085 |
$python_defines = "-DVMDPYTHON"; |
1062 |
$python_defines = "-DVMDPYTHON"; |
1086 |
$python_include = "-I$stock_python_include_dir -I$stock_numpy_include_dir -I$stock_numpy_library_dir"; |
1063 |
$python_include = "-Igentoo-python-include -Igentoo-numpy-include"; |
1087 |
$python_library = "-L$stock_python_library_dir"; |
1064 |
$python_library = "-Lgentoo-python-lib"; |
1088 |
$python_libs = "-lpython2.5 -lpthread"; |
1065 |
$python_libs = "-lgentoo-python-link -lpthread"; |
1089 |
@python_h = ('PythonTextInterp.h', |
1066 |
@python_h = ('PythonTextInterp.h', |
1090 |
'VMDTkinterMenu.h', |
1067 |
'VMDTkinterMenu.h', |
1091 |
'py_commands.h', |
1068 |
'py_commands.h', |
Lines 1807-1814
if ($config_arch eq "LINUX") {
Link Here
|
1807 |
|
1784 |
|
1808 |
# XFree 4.0 Direct Rendering Interface and GLX |
1785 |
# XFree 4.0 Direct Rendering Interface and GLX |
1809 |
$opengl_dir = "/usr/X11R6"; |
1786 |
$opengl_dir = "/usr/X11R6"; |
1810 |
$opengl_include = "-I$opengl_dir/include"; |
1787 |
$opengl_include = "-Igentoo-opengl-include"; |
1811 |
$opengl_library = "-L$opengl_dir/lib"; |
1788 |
$opengl_library = "-Lgentoo-opengl-libs"; |
1812 |
$opengl_libs = "-lGL -lGLU"; |
1789 |
$opengl_libs = "-lGL -lGLU"; |
1813 |
# $opengl_libs = "-L/usr/X11R6/lib -lGL -lGLU -lXext -lX11"; |
1790 |
# $opengl_libs = "-L/usr/X11R6/lib -lGL -lGLU -lXext -lX11"; |
1814 |
|
1791 |
|
Lines 1836-1850
if ($config_arch eq "LINUX") {
Link Here
|
1836 |
$arch_lopts .= "-i-static "; |
1813 |
$arch_lopts .= "-i-static "; |
1837 |
} else { |
1814 |
} else { |
1838 |
# compling with GCC |
1815 |
# compling with GCC |
1839 |
$arch_cc = "gcc"; |
1816 |
$arch_cc = "gentoo-gcc"; |
1840 |
$arch_ccpp = "g++"; |
1817 |
$arch_ccpp = "gentoo-g++"; |
1841 |
$arch_depend_flag = "-MM"; |
1818 |
$arch_depend_flag = "-MM"; |
1842 |
$arch_shld = "g++ -shared"; |
1819 |
$arch_shld = "gentoo-g++ -shared"; |
1843 |
$arch_shlibname = "so"; |
1820 |
$arch_shlibname = "so"; |
1844 |
$arch_shcppopts = "-fPIC"; |
1821 |
$arch_shcppopts = "-fPIC"; |
1845 |
$arch_shldopts = ""; |
1822 |
$arch_shldopts = "gentoo-ldflags"; |
1846 |
$arch_opt_flag = "-m32 -fno-for-scope -Wno-deprecated -Wall -O3"; |
1823 |
$arch_opt_flag = "gentoo-cflags"; |
1847 |
$arch_copts = "-m32 -Wall -O3"; |
1824 |
$arch_copts = "gentoo-cflags"; |
1848 |
|
1825 |
|
1849 |
if ($config_static) { |
1826 |
if ($config_static) { |
1850 |
$arch_lopts = "-static"; |
1827 |
$arch_lopts = "-static"; |
Lines 1955-1961
if ($config_arch eq "LINUXAMD64") {
Link Here
|
1955 |
$arch_template_repository = "foobar"; |
1932 |
$arch_template_repository = "foobar"; |
1956 |
$arch_shlibname = "so"; |
1933 |
$arch_shlibname = "so"; |
1957 |
$arch_shcppopts = "-fPIC"; |
1934 |
$arch_shcppopts = "-fPIC"; |
1958 |
$arch_shldopts = ""; |
1935 |
$arch_shldopts = "gentoo-ldflags"; |
1959 |
|
1936 |
|
1960 |
if ($config_static) { |
1937 |
if ($config_static) { |
1961 |
# link everything statically (this won't work due to libGL issues) |
1938 |
# link everything statically (this won't work due to libGL issues) |
Lines 2927-2937
LIBDIRS = $LIBDIRS
Link Here
|
2927 |
DEFINES = $DEFINES |
2904 |
DEFINES = $DEFINES |
2928 |
|
2905 |
|
2929 |
# compiler and compiler directives |
2906 |
# compiler and compiler directives |
2930 |
CC = $arch_cc |
2907 |
CC = gentoo-gcc |
2931 |
CFLAGS = $arch_copts -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) $rpm_optflags |
2908 |
CFLAGS = gentoo-cflags -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) $rpm_optflags |
2932 |
|
2909 |
|
2933 |
CCPP = $arch_ccpp |
2910 |
CCPP = gentoo-g++ |
2934 |
CPPFLAGS = $arch_opt_flag $arch_cppopts -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) $rpm_optflags |
2911 |
CPPFLAGS = gentoo-cxxflags $arch_cppopts -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) $rpm_optflags |
2935 |
|
2912 |
|
2936 |
NVCC = $arch_nvcc |
2913 |
NVCC = $arch_nvcc |
2937 |
NVCCFLAGS = $arch_nvccflags -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) |
2914 |
NVCCFLAGS = $arch_nvccflags -DARCH_$config_arch \$(DEFINES) \$(INCDIRS) |
Lines 2979-2985
$config_progname: y.tab.h \$(VMD_OBJS)
Link Here
|
2979 |
if [ ! -r ./$arch_template_repository ]; then \\ |
2956 |
if [ ! -r ./$arch_template_repository ]; then \\ |
2980 |
ln -s $vmd_src_dir/$arch_template_repository ./$arch_template_repository ; \\ |
2957 |
ln -s $vmd_src_dir/$arch_template_repository ./$arch_template_repository ; \\ |
2981 |
fi; \\ |
2958 |
fi; \\ |
2982 |
\$(CCPP) \$(CPPFLAGS) -I$vmd_src_dir -o \$\@ \$(VMD_OBJS) \$(LOADLIBES) ; |
2959 |
\$(CCPP) \$(LDFLAGS) \$(CPPFLAGS) -I$vmd_src_dir -o \$\@ \$(VMD_OBJS) \$(LOADLIBES) ; |
2983 |
\$(COMPILERC) \$(RCFLAGS) |
2960 |
\$(COMPILERC) \$(RCFLAGS) |
2984 |
|
2961 |
|
2985 |
install: |
2962 |
install: |
Lines 3017-3024
install:
Link Here
|
3017 |
-\$(COPY) ../data/.vmdrc ../data/.vmdsensors ../data/vmd_completion.dat "$install_library_dir" |
2994 |
-\$(COPY) ../data/.vmdrc ../data/.vmdsensors ../data/vmd_completion.dat "$install_library_dir" |
3018 |
\$(CD) $vmd_bin_dir ; \\ |
2995 |
\$(CD) $vmd_bin_dir ; \\ |
3019 |
if [ -f run_vmd_tmp ]; then \$(DELETE) run_vmd_tmp; fi ; \\ |
2996 |
if [ -f run_vmd_tmp ]; then \$(DELETE) run_vmd_tmp; fi ; \\ |
3020 |
if [ ! -x "/bin/csh" ]; then \\ |
2997 |
if [ -x "/bin/bash" ]; then \\ |
3021 |
\$(ECHO) "Info: /bin/csh shell not found, installing Bourne shell startup script instead" ; \\ |
|
|
3022 |
\$(ECHO) '#!/bin/sh' >> run_vmd_tmp ; \\ |
2998 |
\$(ECHO) '#!/bin/sh' >> run_vmd_tmp ; \\ |
3023 |
\$(ECHO) 'defaultvmddir="$install_library_dir"' >> run_vmd_tmp ; \\ |
2999 |
\$(ECHO) 'defaultvmddir="$install_library_dir"' >> run_vmd_tmp ; \\ |
3024 |
\$(ECHO) 'vmdbasename=vmd' >> run_vmd_tmp ; \\ |
3000 |
\$(ECHO) 'vmdbasename=vmd' >> run_vmd_tmp ; \\ |