changeset 1383:642e99b3b4fb

merge
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 16 Nov 2010 23:13:10 +0100
parents 948166ab4657 (diff) 4e3a7c1b75ea (current diff)
children 1a256899c0aa
files src/vmime-1-fastforward.patch
diffstat 6 files changed, 234 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/atlas.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,25 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# ATLAS
+PKG             := atlas
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 3.8.3
+$(PKG)_CHECKSUM := c7546210df4796457d9e96a00444adc4c0f2e77f
+$(PKG)_SUBDIR   := ATLAS
+$(PKG)_FILE     := $(PKG)$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE  := http://math-atlas.sourceforge.net/
+$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/math-atlas/Stable/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+    # seems to use even/odd development versioning
+endef
+
+define $(PKG)_BUILD
+    mkdir '$(1).build'
+    cd '$(1).build' && '$(1)'/configure \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --cc='$(TARGET)-gcc'
+    $(MAKE) -C '$(1).build' -j 1 install
+endef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/blas.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,31 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+# 
+#
+
+# blas
+PKG             := blas
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 
+$(PKG)_CHECKSUM := 0aeca4ed45f2e5519977747ed6bcf80d1b0335d2
+$(PKG)_SUBDIR   := BLAS
+$(PKG)_FILE     := blas.tgz
+$(PKG)_WEBSITE  := http://www.netlib.org/
+$(PKG)_URL      := http://www.netlib.org/blas/blas.tgz
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+endef
+
+define $(PKG)_BUILD
+    
+    $(SED) -i 's,$$(FORTRAN),$(TARGET)-gfortran,g'   '$(1)/Makefile'
+    make -C $(1) 
+    cd $(1) && $(TARGET)-ar cr libblas.a *.o 
+
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m664 '$(1)/libblas.a' '$(PREFIX)/$(TARGET)/lib/'
+
+endef
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cblas.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,34 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# cblas
+PKG             := cblas
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 
+$(PKG)_CHECKSUM := a8a765ebb8d753c7ad161ccd9191be42d3dc8bd9
+$(PKG)_SUBDIR   := CBLAS
+$(PKG)_FILE     := cblas.tgz
+$(PKG)_WEBSITE  := http://www.netlib.org/blas
+$(PKG)_URL      := http://www.netlib.org/blas/blast-forum/cblas.tgz
+$(PKG)_DEPS     := gcc
+
+
+define $(PKG)_BUILD
+
+    cp $(1)/Makefile.LINUX $(1)/Makefile.MINGW32
+    $(SED) -i 's,CBDIR = $$(HOME)/CBLAS,CBDIR = $(1),g'   '$(1)/Makefile.MINGW32'
+    $(SED) -i 's,FC = g77,FC = $(TARGET)-gfortran,g'   '$(1)/Makefile.MINGW32'
+    ln -s $(1)/Makefile.MINGW32 $(1)/Makefile.in
+    mkdir $(1)/MINGW32
+    make  -C $(1) alllib
+    cd $(1) && $(TARGET)-ar cr libcblas.a src/*.o 
+    	
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m664 '$(1)/libcblas.a' '$(PREFIX)/$(TARGET)/lib/'
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
+    $(INSTALL) -m664 '$(1)/src/cblas.h' '$(PREFIX)/$(TARGET)/include/'
+    $(INSTALL) -m664 '$(1)/src/cblas_f77.h' '$(PREFIX)/$(TARGET)/include/'
+
+endef
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lapack.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,38 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+
+# lapack
+PKG             := lapack
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 3.2.2
+$(PKG)_CHECKSUM := a434c45932f6affb654b3abde21dd669f5751633
+$(PKG)_SUBDIR   := lapack-$($(PKG)_VERSION)
+$(PKG)_FILE     := lapack-$($(PKG)_VERSION).tgz
+$(PKG)_WEBSITE  := http://www.netlib.org/lapack
+$(PKG)_URL      := http://www.netlib.org/lapack/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://www.netlib.org/lapack/' | \
+    $(SED) -n 's_for  LAPACK, version \([0-9]\.[0-9]\.[0-9]\)_\1_ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    cp $(1)/make.inc.example  $(1)/make.inc	
+    $(SED) -i 's,PLAT = _LINUX,PLAT = _MINGW32,g'   '$(1)/make.inc'
+    $(SED) -i 's,gfortran,$(TARGET)-gfortran,g'   '$(1)/make.inc'
+    $(SED) -i 's, ar, $(TARGET)-ar,g'   '$(1)/make.inc'
+    $(SED) -i 's, ranlib, $(TARGET)-ranlib,g'   '$(1)/make.inc'
+
+    ## build Blas and Lapack 	
+    make -C $(1) lapacklib blaslib
+    cp $(1)/lapack_MINGW32.a $(1)/liblapack.a
+    cp $(1)/blas_MINGW32.a $(1)/libblas.a
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m664 '$(1)/libblas.a' '$(PREFIX)/$(TARGET)/lib/'
+    $(INSTALL) -m664 '$(1)/liblapack.a' '$(PREFIX)/$(TARGET)/lib/'
+endef
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/metis.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,35 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# metis
+PKG             := metis
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 4.0
+$(PKG)_CHECKSUM := 580568308e1fa40e5a7a77cacbf27f865d6c01af
+$(PKG)_SUBDIR   := metis-4.0
+$(PKG)_FILE     := metis-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE  := http://glaros.dtc.umn.edu
+$(PKG)_URL      := http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz
+$(PKG)_DEPS     := gcc
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://www.cise.ufl.edu/research/sparse/SuiteSparse/' | \
+    $(SED) -n 's,.*metis-\([0-9]\.[0-9]\)\.tar.gz,\1,ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    $(SED) -i 's,cc,$(TARGET)-gcc,'        $(1)/Makefile.in
+    $(SED) -i 's,ar ,$(TARGET)-ar ,'       $(1)/Makefile.in
+    $(SED) -i 's,ranlib,$(TARGET)-ranlib,' $(1)/Makefile.in
+    $(MAKE) -C '$(1)/Lib'
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+    $(INSTALL) -m664 '$(1)/libmetis.a'   '$(PREFIX)/$(TARGET)/lib/libmetis.a'
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/metis/Lib'
+    $(INSTALL) -m664 '$(1)/Lib/metis.h'  '$(PREFIX)/$(TARGET)/include/metis/Lib/metis.h'
+    $(INSTALL) -m664 '$(1)/Lib/defs.h'   '$(PREFIX)/$(TARGET)/include/metis/Lib/defs.h'
+    $(INSTALL) -m664 '$(1)/Lib/struct.h' '$(PREFIX)/$(TARGET)/include/metis/Lib/struct.h'
+    $(INSTALL) -m664 '$(1)/Lib/macros.h' '$(PREFIX)/$(TARGET)/include/metis/Lib/macros.h'
+    $(INSTALL) -m664 '$(1)/Lib/rename.h' '$(PREFIX)/$(TARGET)/include/metis/Lib/rename.h'
+    $(INSTALL) -m664 '$(1)/Lib/proto.h'  '$(PREFIX)/$(TARGET)/include/metis/Lib/proto.h'
+endef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/suitesparse.mk	Tue Nov 16 23:13:10 2010 +0100
@@ -0,0 +1,71 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# SuiteSparse
+PKG             := suitesparse
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 3.4.0
+$(PKG)_CHECKSUM := 6de027d48a573659b40ddf57c10e32b39ab034c6
+$(PKG)_SUBDIR   := SuiteSparse
+$(PKG)_FILE     := SuiteSparse-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE  := http://www.cise.ufl.edu/
+$(PKG)_URL      := http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-$($(PKG)_VERSION).tar.gz
+$(PKG)_DEPS     := gcc metis lapack
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://www.cise.ufl.edu/research/sparse/SuiteSparse/' | \
+    $(SED) -n 's,.*SuiteSparse-\([0-9]\.[0-9]\.[0-9]\)\.tar.*,\1,ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    
+    # change the config to find metis
+    $(SED) -i 's,\(METIS_PATH = \)\(.    $(INSTALL) -m664 '$(1)/.    $(INSTALL) -m664 '$(1)/metis-4.0\),\1'$(PREFIX)/$(TARGET)/include/metis',' $(1)/UFconfig/UFconfig.mk
+    $(SED) -i 's,\(METIS = \)\(.    $(INSTALL) -m664 '$(1)/.    $(INSTALL) -m664 '$(1)/metis-4.0/libmetis.a\),\1'$(PREFIX)/$(TARGET)/lib/libmetis.a',' $(1)/UFconfig/UFconfig.mk
+    
+    # use cross tools
+    $(SED) -i 's,cc,$(TARGET)-gcc,'        $(1)/UFconfig/UFconfig.mk
+    $(SED) -i 's,g++,$(TARGET)-g++,'       $(1)/UFconfig/UFconfig.mk
+    $(SED) -i 's,f77,$(TARGET)-gfortran,'  $(1)/UFconfig/UFconfig.mk
+    $(SED) -i 's,ar ,$(TARGET)-ar ,'       $(1)/UFconfig/UFconfig.mk
+    $(SED) -i 's,ranlib,$(TARGET)-ranlib,' $(1)/UFconfig/UFconfig.mk
+
+    # gfortran does not need libg2c 
+    $(SED) -i 's,-lblas -lgfortran -lgfortranbegin -lg2c,-lblas -lgfortran -lgfortranbegin,' $(1)/UFconfig/UFconfig.mk
+    
+    # Missing _drand48 and _srand48 cause problems in demos 	
+    #$(TARGET)-gcc -c $(1)/CHOLMOD/MATLAB/Windows/rand48.c -o $(1)/CHOLMOD/Lib/rand48.o 
+    #$(SED) -i 's,libcholmod.a: $$(OBJ),libcholmod.a: $$(OBJ) rand48.o,' $(1)/CHOLMOD/Lib/Makefile
+    #$(SED) -i 's,$$(AR) libcholmod.a $$(OBJ),$$(AR) libcholmod.a $$(OBJ) rand48.o,' $(1)/CHOLMOD/Lib/Makefile
+    # Here we choose to exclude the demos from building in order to avoid the _rand48 problems
+    $(SED) -i 's,( cd Demo ; $$(MAKE) ),#( cd Demo ; $$(MAKE) ),' $(1)/CHOLMOD/Makefile
+    $(SED) -i 's,( cd Demo ; $$(MAKE) ),#( cd Demo ; $$(MAKE) ),' $(1)/SPQR/Makefile
+
+    # Built all
+    $(MAKE) -C '$(1)' -j '$(JOBS)'
+
+    # Install library files 
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+    for i in `cd $(1) && find . -name *.a`; do \
+    	$(INSTALL) -m664 '$(1)/'$$i '$(PREFIX)/$(TARGET)/lib/' ; \
+    done;
+
+    # Install include files 
+    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/AMD/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/BTF/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/CAMD/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/CCOLAMD/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/CHOLMOD/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/COLAMD/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/CXSparse/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/KLU/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/LDL/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/SPQR/Include/'* '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/UFconfig/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+    $(INSTALL) -m664 '$(1)/UMFPACK/Include/'*.h '$(PREFIX)/$(TARGET)/include/suitesparse/'
+
+endef
+
+