# HG changeset patch # User John Donoghue # Date 1374602818 14400 # Node ID 4a5961b103e207663bab1c6ac555b881f006ceab # Parent 81ef4be24f2eecb73ebeccab731ee89b980e2297 Add openblas option to qrupdate build * src/qrupdate.mk: add openblas a dependancy when --enable-openblas used, and compile with openblas. diff -r 81ef4be24f2e -r 4a5961b103e2 src/qrupdate.mk --- a/src/qrupdate.mk Mon Jul 22 17:32:09 2013 -0400 +++ b/src/qrupdate.mk Tue Jul 23 14:06:58 2013 -0400 @@ -7,7 +7,15 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := qrupdate-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://sourceforge.net/projects/qrupdate/files/$($(PKG)_FILE) -$(PKG)_DEPS := blas lapack +ifeq ($(ENABLE_OPENBLAS),yes) + $(PKG)_DEPS := openblas lapack +else + $(PKG)_DEPS := blas lapack +endif + +ifeq ($(ENABLE_OPENBLAS),yes) + $(PKG)_BLAS_OPTION := --with-blas=openblas +endif ifeq ($(ENABLE_64),yes) $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := FFLAGS="-g -O2 -fdefault-integer-8" @@ -28,6 +36,7 @@ $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ + $($(PKG)_BLAS_OPTION) \ $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install