comparison src/suitesparse.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents fcf98b1d15f1
children 8d35ad88beed
comparison
equal deleted inserted replaced
3292:fda357ce9f64 3293:cf6f40cededb
63 RANLIB='$(MXE_RANLIB)' \ 63 RANLIB='$(MXE_RANLIB)' \
64 BLAS='-l$($(PKG)_BLAS_LIB) -lgfortran -lgfortranbegin' \ 64 BLAS='-l$($(PKG)_BLAS_LIB) -lgfortran -lgfortranbegin' \
65 CHOLMOD_CONFIG='-DNPARTITION' 65 CHOLMOD_CONFIG='-DNPARTITION'
66 66
67 # install library files 67 # install library files
68 $(INSTALL) -d '$(HOST_LIBDIR)' 68 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'
69 69
70 for f in $(addprefix $(1)/, $($(PKG)_STATICLIBS_1)); do \ 70 for f in $(addprefix $(1)/, $($(PKG)_STATICLIBS_1)); do \
71 if [ $(BUILD_SHARED) = yes ]; then \ 71 if [ $(BUILD_SHARED) = yes ]; then \
72 lib=`basename $$f .a`; \ 72 lib=`basename $$f .a`; \
73 dir=`dirname $$f`; \ 73 dir=`dirname $$f`; \
91 ;; \ 91 ;; \
92 esac; \ 92 esac; \
93 if [ -n "$deplibs" ]; then \ 93 if [ -n "$deplibs" ]; then \
94 echo " deplibs = $$deplibs"; \ 94 echo " deplibs = $$deplibs"; \
95 fi; \ 95 fi; \
96 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $$f --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' $$deplibs; \ 96 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $$f --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' $$deplibs; \
97 fi; \ 97 fi; \
98 done 98 done
99 99
100 # install include files 100 # install include files
101 $(INSTALL) -d '$(HOST_INCDIR)/suitesparse/' 101 $(INSTALL) -d '$(3)$(HOST_INCDIR)/suitesparse/'
102 $(INSTALL) -m644 '$(1)/SuiteSparse_config/'*.h '$(HOST_INCDIR)/suitesparse/' 102 $(INSTALL) -m644 '$(1)/SuiteSparse_config/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
103 $(INSTALL) -m644 '$(1)/AMD/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 103 $(INSTALL) -m644 '$(1)/AMD/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
104 $(INSTALL) -m644 '$(1)/BTF/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 104 $(INSTALL) -m644 '$(1)/BTF/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
105 $(INSTALL) -m644 '$(1)/CAMD/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 105 $(INSTALL) -m644 '$(1)/CAMD/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
106 $(INSTALL) -m644 '$(1)/CCOLAMD/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 106 $(INSTALL) -m644 '$(1)/CCOLAMD/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
107 $(INSTALL) -m644 '$(1)/CHOLMOD/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 107 $(INSTALL) -m644 '$(1)/CHOLMOD/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
108 $(INSTALL) -m644 '$(1)/COLAMD/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 108 $(INSTALL) -m644 '$(1)/COLAMD/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
109 $(INSTALL) -m644 '$(1)/CSparse/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 109 $(INSTALL) -m644 '$(1)/CSparse/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
110 $(INSTALL) -m644 '$(1)/CXSparse/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 110 $(INSTALL) -m644 '$(1)/CXSparse/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
111 $(INSTALL) -m644 '$(1)/KLU/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 111 $(INSTALL) -m644 '$(1)/KLU/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
112 $(INSTALL) -m644 '$(1)/LDL/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 112 $(INSTALL) -m644 '$(1)/LDL/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
113 $(INSTALL) -m644 '$(1)/SPQR/Include/'* '$(HOST_INCDIR)/suitesparse/' 113 $(INSTALL) -m644 '$(1)/SPQR/Include/'* '$(3)$(HOST_INCDIR)/suitesparse/'
114 $(INSTALL) -m644 '$(1)/UMFPACK/Include/'*.h '$(HOST_INCDIR)/suitesparse/' 114 $(INSTALL) -m644 '$(1)/UMFPACK/Include/'*.h '$(3)$(HOST_INCDIR)/suitesparse/'
115 endef 115 endef