Ticket #43883: sparky-build.diff
File sparky-build.diff, 6.8 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
Makefile
old new 25 25 INSTALL = \cp 26 26 INSTALLDIR = \cp -R 27 27 28 SPARKY = /usr/local/src/sparky28 SPARKY = @BUILDDIR@ 29 29 SPARKY_SRC = $(SPARKY)/c++ 30 30 SPARKY_OBJ = $(SPARKY)/c++ 31 SPARKY_INSTALL = /usr/local/sparky31 SPARKY_INSTALL = @DESTDIR@@PREFIX@/lib/sparky 32 32 SPARKY_SCRIPT = sparky 33 33 SCRIPT_SUFFIX = 34 34 … … 38 38 bruk2ucsf$(EXE_SUFFIX) peaks2ucsf$(EXE_SUFFIX) \ 39 39 matrix2ucsf$(EXE_SUFFIX) 40 40 41 PYTHON_VERSION = 2. 541 PYTHON_VERSION = 2.7 42 42 PYTHON_DIR = 43 43 44 44 PYMOD_SUFFIX = .so … … 51 51 Makefile.dep TAGS: force 52 52 cd $(SPARKY_SRC) && $(MAKE) -f Makefile -e $@ 53 53 54 install: install-nopython $(SPARKY_INSTALL) install-python54 install: install-nopython $(SPARKY_INSTALL) 55 55 cd $(SPARKY_OBJ) && \ 56 56 $(MAKE) -f $(SPARKY_SRC)/Makefile -e install-python 57 57 cd $(SPARKY)/python && $(MAKE) -f Makefile -e install 58 cp $(SPARKY_SRC)/_tkinter.so $(SPARKY_INSTALL)/python/lib-tk 59 cp $(SPARKY_SRC)/spy.so $(SPARKY_INSTALL)/python/sparky 58 60 59 61 install-nopython: install-bin install-example install-lib \ 60 62 install-man install-misc … … 79 81 cd $(SPARKY) ; $(INSTALL) LICENSE README $(SPARKY_INSTALL) 80 82 cd $(SPARKY_INSTALL) ; chmod 644 LICENSE README 81 83 82 install-python: $(SPARKY_INSTALL) $(SPARKY_INSTALL)/python$(PYTHON_VERSION)83 ifdef PYTHON_DIR84 $(INSTALLDIR) $(PYTHON_DIR)/* $(SPARKY_INSTALL)/python$(PYTHON_VERSION)85 else86 echo "Not packaging Python with Sparky."87 endif88 89 84 install-mac: 90 85 cd $(SPARKY)/mac && $(MAKE) -f Makefile -e install 91 86 92 $(SPARKY_INSTALL) $(SPARKY_INSTALL)/bin $(SPARKY_INSTALL)/python$(PYTHON_VERSION):87 $(SPARKY_INSTALL) $(SPARKY_INSTALL)/bin: 93 88 mkdir $@ 94 89 chmod 755 $@ 95 90 -
bin/sparky
old new 25 25 # If Python is available start Sparky as a Python extension. 26 26 # Otherwise the standalone version of Sparky is started. 27 27 # 28 set PYTHON = " $SPARKY_INSTALL/python2.5/bin/python2.5"28 set PYTHON = "@PREFIX@/bin/python2.7" 29 29 if (! -e "$PYTHON") then 30 set PYTHON = python2. 530 set PYTHON = python2.7 31 31 endif 32 32 33 33 # ----------------------------------------------------------------------------- 34 34 # Where to find Tcl/Tk shared libraries and resources. 35 35 # 36 setenv TCLTK_LIB " $SPARKY_INSTALL/lib"36 setenv TCLTK_LIB "@PREFIX@/lib" 37 37 setenv LD_LIBRARY_PATH "$TCLTK_LIB" 38 38 setenv LD_LIBRARYN32_PATH "$TCLTK_LIB" 39 39 setenv DYLD_LIBRARY_PATH "$TCLTK_LIB" 40 setenv TK_LIBRARY "$TCLTK_LIB/tk8. 4"41 setenv TCL_LIBRARY "$TCLTK_LIB/tcl8. 4"40 setenv TK_LIBRARY "$TCLTK_LIB/tk8.6" 41 setenv TCL_LIBRARY "$TCLTK_LIB/tcl8.6" 42 42 43 43 # ----------------------------------------------------------------------------- 44 44 # Other programs Sparky can use. -
c++/Makefile
old new 15 15 INSTALL = \cp 16 16 REMOVE = \rm -f 17 17 18 SPARKY = /usr/local/src/sparky18 SPARKY = @BUILDDIR@ 19 19 SPARKY_SRC = $(SPARKY)/c++ 20 PYTHON_VERSION = 2.5 21 PY_VER_WIN32 = 25 22 PYTHON_PREFIX = /usr/local 20 SPARKY_INSTALL = @DESTDIR@@PREFIX@/lib/sparky 21 PYTHON_VERSION = 2.7 22 PY_VER_WIN32 = 27 23 PYTHON_PREFIX = @PREFIX@/Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) 23 24 PYTHON_LIB = $(PYTHON_PREFIX)/lib/python$(PYTHON_VERSION) 24 25 PYTHON_INC = $(PYTHON_PREFIX)/include/python$(PYTHON_VERSION) 25 TCLTK_VERSION = 8. 426 TCLTK_VER_WIN32 = 8 427 TK_PREFIX = /usr/local26 TCLTK_VERSION = 8.6 27 TCLTK_VER_WIN32 = 86 28 TK_PREFIX = @PREFIX@ 28 29 TK_LIBNAME = tk$(TCLTK_VERSION) 29 30 TCL_LIBNAME = tcl$(TCLTK_VERSION) 30 31 PLATFORM = unix 31 32 32 33 CXX = g++ 33 CXXFLAGS = 34 CXXFLAGS = -O3 -ffast-math -fno-common 34 35 CC = gcc 35 CFLAGS = 36 CFLAGS = -O3 -ffast-math -fno-common 36 37 PYFLAGS = -I$(PYTHON_INC) -I$(PYTHON_LIB)/config 37 TKFLAGS = -I$(TK_PREFIX)/include38 TKLIBS = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) - lX1138 TKFLAGS = -I$(TK_PREFIX)/include -I@PREFIX@/include 39 TKLIBS = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) -L@PREFIX@/lib -lX11 39 40 EXTRALIBS = 40 41 SYSLIBS = -lm 41 42 LDLIBS = $(TKLIBS) $(SYSLIBS) $(EXTRALIBS) 42 43 LDFLAGS = 43 LDSHARED = - shared44 LDSHARED = -bundle -flat_namespace -undefined suppress 44 45 DEPEND = -MM 45 46 46 47 CXX_RULE_PREFIX = -
lib/Makefile
old new 6 6 INSTALL = \cp 7 7 INSTALLDIR = \cp -r 8 8 9 SPARKY_INSTALL = /usr/local/sparky9 SPARKY_INSTALL = @DESTDIR@@PREFIX@/lib/sparky 10 10 11 TCLTK_VERSION = 8. 411 TCLTK_VERSION = 8.6 12 12 TK_VERSION = tk$(TCLTK_VERSION) 13 13 TCL_VERSION = tcl$(TCLTK_VERSION) 14 TK_PREFIX = /usr/local14 TK_PREFIX = @PREFIX@ 15 15 TCL_TK_LIB = $(TK_PREFIX)/lib 16 16 TCL_TK_SHLIB = $(TCL_TK_LIB) 17 TCLTK_SHLIB_SUFFIX = . so17 TCLTK_SHLIB_SUFFIX = .dylib 18 18 TCL_SHLIB = lib$(TCL_VERSION)$(TCLTK_SHLIB_SUFFIX) 19 19 TK_SHLIB = lib$(TK_VERSION)$(TCLTK_SHLIB_SUFFIX) 20 20 21 install: $(SPARKY_INSTALL)/lib install-tcl-tk21 install: $(SPARKY_INSTALL)/lib 22 22 $(INSTALL) Sparky print-prolog.ps $(SPARKY_INSTALL)/lib 23 23 cd $(SPARKY_INSTALL)/lib ; \ 24 24 chmod 644 Sparky print-prolog.ps 25 25 26 install-tcl-tk: $(SPARKY_INSTALL)/lib27 $(INSTALL) $(TCL_TK_SHLIB)/$(TCL_SHLIB) $(SPARKY_INSTALL)/lib28 $(INSTALL) $(TCL_TK_SHLIB)/$(TK_SHLIB) $(SPARKY_INSTALL)/lib29 chmod 755 $(SPARKY_INSTALL)/lib/$(TCL_SHLIB)30 chmod 755 $(SPARKY_INSTALL)/lib/$(TK_SHLIB)31 $(INSTALLDIR) $(TCL_TK_LIB)/$(TCL_VERSION) $(TCL_TK_LIB)/$(TK_VERSION) \32 $(SPARKY_INSTALL)/lib33 34 26 $(SPARKY_INSTALL)/lib: 35 27 mkdir $@ 36 28 chmod 755 $@ -
manual/Makefile
old new 11 11 12 12 INSTALL = \cp 13 13 14 SPARKY_INSTALL = /usr/local/sparky14 SPARKY_INSTALL = @DESTDIR@@PREFIX@/lib/sparky 15 15 MANUAL_WWW = /usr/local/html/cgl/sparky/manual 16 16 17 17 MANUAL_SECTIONS = overview.html intro.html views.html peaks.html \ -
python/Makefile
old new 4 4 5 5 INSTALL = \cp 6 6 7 SPARKY_INSTALL = /usr/local/sparky8 PYTHON_ PREFIX = /usr/local9 PYTHON_ VERSION = 2.57 SPARKY_INSTALL = @DESTDIR@@PREFIX@/lib/sparky 8 PYTHON_VERSION = 2.7 9 PYTHON_PREFIX = @PREFIX@/Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) 10 10 PYTHON = $(PYTHON_PREFIX)/bin/python$(PYTHON_VERSION) 11 11 PYTHON_LIB = $(PYTHON_PREFIX)/lib/python$(PYTHON_VERSION) 12 12 … … 35 35 chmod 644 $(SPARKY_INSTALL)/python/README 36 36 cd $(SPARKY_INSTALL)/python/sparky ; chmod 644 $(PYTHON_CODE) 37 37 chmod 644 $(SPARKY_INSTALL)/python/lib-tk/*.py 38 $(PYTHON) $(PYTHON_LIB)/compileall.py $(SPARKY_INSTALL)/python/sparky39 $(PYTHON) $(PYTHON_LIB)/compileall.py $(SPARKY_INSTALL)/python/lib-tk38 $(PYTHON) $(PYTHON_LIB)/compileall.py -d @PREFIX@/lib/sparky/python/sparky $(SPARKY_INSTALL)/python/sparky 39 $(PYTHON) $(PYTHON_LIB)/compileall.py -d @PREFIX@/lib/sparky/python/lib-tk $(SPARKY_INSTALL)/python/lib-tk 40 40 41 41 $(SPARKY_INSTALL)/python $(SPARKY_INSTALL)/python/sparky \ 42 42 $(SPARKY_INSTALL)/python/lib-tk: