Ticket #25498: pymol-build.patch2

File pymol-build.patch2, 3.2 KB (added by howarth@…, 14 years ago)

new patch for pymol 1.3 specific issues

Line 
1--- Makefile.delsci.orig        2010-07-02 17:29:57.000000000 -0400
2+++ Makefile.delsci     2010-07-02 17:35:04.000000000 -0400
3@@ -61,15 +61,15 @@
4        /bin/rm -f .update .includes
5        cd contrib;$(MAKE) -f Makefile.delsci
6        cd contrib/uiuc/plugins/molfile_plugin/src;$(MAKE) -f Makefile.delsci
7-       cd modules/cealign/src; g++ -c ccealignmodule.cpp -o ccealignmodule.o -Itnt -I. $(PYTHON_INC_DIR) -I$(PYMOL_PATH)/layer0 -I$(PYMOL_PATH)/ov/src
8-       $(CC) $(BUILD) $(DEST) */*.o ov/src/*.o contrib/uiuc/plugins/molfile_plugin/src/*.o $(CFLAGS)  $(LIB_DIRS) $(LIBS)     
9+       cd modules/cealign/src; $(CXX) -c ccealignmodule.cpp -o ccealignmodule.o -Itnt -I. $(PYTHON_INC_DIR) -I../../../layer0 -I../../../ov/src
10+       $(CC) $(BUILD) $(DEST) */*.o ov/src/*.o contrib/uiuc/plugins/molfile_plugin/src/*.o modules/cealign/src/*.o $(CFLAGS)  $(LIB_DIRS) $(LIBS)     
11 
12 semistatic: .includes .depends .update
13        /bin/rm -f .update .includes
14        cd contrib;$(MAKE) -f Makefile.delsci static
15        cd contrib/uiuc/plugins/molfile_plugin/src;$(MAKE) -f Makefile.delsci
16-       cd modules/cealign/src; g++ -c ccealignmodule.cpp -o ccealignmodule.o -Itnt -I. $(PYTHON_INC_DIR) -I$(PYMOL_PATH)/layer0 -I$(PYMOL_PATH)/ov/src
17-       g++ $(BUILD) $(DEST) */*.o ov/src/*.o contrib/uiuc/plugins/molfile_plugin/src/*.o $(CFLAGS) $(LIB_DIRS) $(LIBS)
18+       cd modules/cealign/src; $(CXX) -c ccealignmodule.cpp -o ccealignmodule.o -Itnt -I. $(PYTHON_INC_DIR) -I../../../layer0 -I../../../ov/src
19+       $(CXX) $(BUILD) $(DEST) */*.o ov/src/*.o contrib/uiuc/plugins/molfile_plugin/src/*.o modules/cealign/src/*.o $(CFLAGS) $(LIB_DIRS) $(LIBS)     
20 
21 free:
22        /bin/rm -rf freemol
23--- layer4/Makefile.delsci.orig 2010-07-02 17:37:56.000000000 -0400
24+++ layer4/Makefile.delsci      2010-07-02 17:38:17.000000000 -0400
25@@ -3,7 +3,7 @@
26 
27 include ../Rules.delsci
28 
29-CFLAGS = $(PYMOL_INC_DIRS) $(C_FLAGS) -I../ov/src
30+CFLAGS = $(PYMOL_INC_DIRS) $(C_FLAGS) -I../ov/src -I../modules/cealign/src
31 
32 all: layer
33 
34--- modules/pmg_tk/startup/apbs_tools.py.orig   2010-07-02 18:40:05.000000000 -0400
35+++ modules/pmg_tk/startup/apbs_tools.py        2010-07-02 18:41:40.000000000 -0400
36@@ -183,6 +183,11 @@
37         searchDirs.append("/tmp")
38         searchDirs.append(".")
39 
40+    # This must come before /opt/local/bin (which may also be in PATH) in
41+    # order for our pdb2pqr importing to work
42+    # correctly. /opt/local/bin/pdb2pqr just calls through to this.
43+    searchDirs.append(os.path.join("/opt", "local", "share", "pdb2pqr"))
44+
45     searchDirs.extend(string.split(os.environ["PATH"], ":"))
46     searchDirs.append(os.path.join("/usr", "local", "bin"))
47     searchDirs.append(os.path.join("/opt", "local", "bin"))
48@@ -787,7 +792,7 @@
49                                      label_pyclass = FileDialogButtonClassFactory.get(self.setPsizeLocation),
50                                      validate = {'validator':quickFileValidation,},
51                                      #value = '/usr/local/apbs-0.3.1/tools/manip/psize.py',
52-                                     value = get_default_location('psize.py'),
53+                                     value = get_default_location('apbs-psize.py'),
54                                      label_text = 'APBS psize.py location:',
55                                      )
56         self.psize.pack(fill = 'x', padx = 20, pady = 10)