namd-2.10-gentoo.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. diff -Naur NAMD_2.10_Source.orig/arch/Linux-x86_64.fftw NAMD_2.10_Source/arch/Linux-x86_64.fftw
  2. --- NAMD_2.10_Source.orig/arch/Linux-x86_64.fftw 2015-03-06 17:53:44.170416075 -0700
  3. +++ NAMD_2.10_Source/arch/Linux-x86_64.fftw 2015-03-06 17:54:46.641162629 -0700
  4. @@ -1,7 +1,7 @@
  5. -FFTDIR=/Projects/namd2/fftw/linux-x86_64
  6. +FFTDIR=/usr
  7. FFTINCL=-I$(FFTDIR)/include
  8. -FFTLIB=-L$(FFTDIR)/lib -lsrfftw -lsfftw
  9. +FFTLIB=-L$(FFTDIR)/gentoo-libdir -lsrfftw -lsfftw
  10. FFTFLAGS=-DNAMD_FFTW
  11. FFT=$(FFTINCL) $(FFTFLAGS)
  12. diff -Naur NAMD_2.10_Source.orig/arch/Linux-x86_64.tcl NAMD_2.10_Source/arch/Linux-x86_64.tcl
  13. --- NAMD_2.10_Source.orig/arch/Linux-x86_64.tcl 2015-03-06 17:53:44.170416075 -0700
  14. +++ NAMD_2.10_Source/arch/Linux-x86_64.tcl 2015-03-06 17:54:46.641162629 -0700
  15. @@ -1,9 +1,9 @@
  16. #TCLDIR=/Projects/namd2/tcl/tcl8.5.9-linux-x86_64
  17. -TCLDIR=/Projects/namd2/tcl/tcl8.5.9-linux-x86_64-threaded
  18. +TCLDIR=/usr
  19. TCLINCL=-I$(TCLDIR)/include
  20. #TCLLIB=-L$(TCLDIR)/lib -ltcl8.5 -ldl
  21. -TCLLIB=-L$(TCLDIR)/lib -ltcl8.5 -ldl -lpthread
  22. +TCLLIB=-L$(TCLDIR)/gentoo-libdir -ltcl8.5 -ldl -lpthread
  23. TCLFLAGS=-DNAMD_TCL
  24. TCL=$(TCLINCL) $(TCLFLAGS)
  25. diff -Naur NAMD_2.10_Source.orig/Makefile NAMD_2.10_Source/Makefile
  26. --- NAMD_2.10_Source.orig/Makefile 2015-03-06 17:53:44.170416075 -0700
  27. +++ NAMD_2.10_Source/Makefile 2015-03-06 18:01:32.645966590 -0700
  28. @@ -389,10 +389,10 @@
  29. $(DSTDIR)/stringhash.o
  30. # definitions for Charm routines
  31. -CHARMC = $(CHARM)/bin/charmc
  32. -CHARMXI = $(CHARM)/bin/charmc
  33. -CHARMINC = $(CHARM)/include $(COPTD)CMK_OPTIMIZE=1
  34. -CHARMLIB = $(CHARM)/lib
  35. +CHARMC = /usr/bin/charmc
  36. +CHARMXI = /usr/bin/charmc
  37. +CHARMINC = /usr/include/gentoo-charm $(COPTD)CMK_OPTIMIZE=1
  38. +CHARMLIB = /usr/gentoo-libdir
  39. CHARM_MODULES = -module NeighborLB -module HybridLB -module RefineLB -module GreedyLB -module CkMulticast
  40. #CHARM_MODULES = -module NeighborLB -module HybridLB -module RefineLB -module GreedyLB
  41. #CHARM_MODULES = -module msa -module NeighborLB -module HybridLB -module RefineLB -module GreedyLB
  42. @@ -418,7 +418,7 @@
  43. # Add new executables here.
  44. -BINARIES = namd2 psfgen sortreplicas flipdcd flipbinpdb charmrun
  45. +BINARIES = namd2 psfgen sortreplicas flipdcd flipbinpdb
  46. # This should be rebuilt at every compile, but not on Win32.
  47. BUILDINFO = $(DSTDIR)/buildinfo
  48. @@ -434,7 +434,7 @@
  49. namd2: $(MKINCDIR) $(MKDSTDIR) $(OBJS) $(LIBS)
  50. $(MAKEBUILDINFO)
  51. - $(CHARMC) -verbose -ld++-option \
  52. + $(CHARMC) $(LDFLAGS) -verbose -ld++-option \
  53. '$(COPTI)$(CHARMINC) $(COPTI)$(INCDIR) $(COPTI)$(SRCDIR) $(CXXOPTS) $(CXXMICOPTS)' \
  54. "$(CHARM_MODULES)" -language charm++ \
  55. $(BUILDINFO).o \
  56. @@ -484,11 +484,8 @@
  57. charmd_faceless.exe:
  58. $(COPY) $(CHARM)/bin/charmd_faceless.exe charmd_faceless.exe
  59. -charmrun.exe:
  60. - $(COPY) $(CHARM)/bin/charmrun.exe charmrun.exe
  61. -
  62. psfgen: $(MKDSTDIR) $(SBOBJS) $(PLUGINOBJS)
  63. - $(CC) $(SBCFLAGS) -o psfgen $(SBOBJS) $(PLUGINOBJS) $(TCLLIB) $(TCLAPPLIB) -lm
  64. + $(CC) $(SBCFLAGS) $(LDFLAGS) -o psfgen $(SBOBJS) $(PLUGINOBJS) $(TCLLIB) $(TCLAPPLIB) -lm
  65. psfgen.exe: $(MKDSTDIR) $(SBOBJS) $(PLUGINOBJS) $(TCLDLL)
  66. $(CC) $(SBCFLAGS) -o psfgen $(SBOBJS) $(PLUGINOBJS) $(TCLLIB) $(TCLAPPLIB) -lm
  67. @@ -506,7 +503,7 @@
  68. $(CC) $(CFLAGS) -o diffbinpdb $(SRCDIR)/diffbinpdb.c -lm
  69. flipdcd: $(SRCDIR)/flipdcd.c
  70. - $(CC) $(CFLAGS) -o $@ $(SRCDIR)/flipdcd.c || \
  71. + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRCDIR)/flipdcd.c || \
  72. echo "#!/bin/sh\necho unavailable on this platform" > $@; \
  73. chmod +x $@
  74. @@ -516,7 +513,7 @@
  75. chmod +x $@
  76. fixdcd: $(SRCDIR)/fixdcd.c
  77. - $(CC) $(CFLAGS) -o fixdcd $(SRCDIR)/fixdcd.c
  78. + $(CC) $(CFLAGS) $(LDFLAGS) -o fixdcd $(SRCDIR)/fixdcd.c
  79. dumpdcd: $(SRCDIR)/dumpdcd.c
  80. $(CC) $(CFLAGS) -o dumpdcd $(SRCDIR)/dumpdcd.c
  81. @@ -711,9 +708,7 @@
  82. DOC_FILES = README.txt announce.txt license.txt notes.txt
  83. -RELEASE_FILES = $(LIBCUDARTSO) flipdcd flipbinpdb sortreplicas psfgen charmrun namd2
  84. -
  85. -WINDOWS_RELEASE_FILES = $(LIBCUDARTSO) $(WINDOWSBINARIES) $(TCLDLL)
  86. +RELEASE_FILES = $(LIBCUDARTSO) flipdcd flipbinpdb sortreplicas psfgen namd2
  87. release: all
  88. $(ECHO) Creating release $(RELEASE_DIR_NAME)
  89. @@ -724,17 +719,9 @@
  90. for f in `find $(RELEASE_DIR_NAME)/lib -name CVS`; do \
  91. /bin/rm -rf $$f; \
  92. done
  93. - if [ -r $(CHARM)/bin/charmd ]; then \
  94. - $(COPY) $(CHARM)/bin/charmd $(RELEASE_DIR_NAME); \
  95. - fi
  96. - if [ -r $(CHARM)/bin/charmd_faceless ]; then \
  97. - $(COPY) $(CHARM)/bin/charmd_faceless $(RELEASE_DIR_NAME); \
  98. - fi
  99. chmod -R a+rX $(RELEASE_DIR_NAME)
  100. tar cf $(RELEASE_DIR_NAME).tar $(RELEASE_DIR_NAME)
  101. gzip $(RELEASE_DIR_NAME).tar
  102. - echo $(CHARM)
  103. - ls -l $(CHARM)/lib
  104. -for f in $(RELEASE_FILES); do echo $$f; $(LDD) $(RELEASE_DIR_NAME)/$$f; done
  105. winrelease: winall