From 06e208c5c39911009f388275afe4097013d1abd2 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Sun, 13 May 2012 11:43:29 +0800 Subject: [PATCH] Refs #106. Fixed wget and md5 bug on FreeBSD and NetBSD. --- Makefile | 3 ++- Makefile.system | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d78a84..905d686 100644 --- a/Makefile +++ b/Makefile @@ -256,7 +256,8 @@ LAPACK_URL=http://www.netlib.org/lapack/lapack-3.4.1.tgz lapack-3.4.1.tgz : ifndef NOFORTRAN -ifeq ($(OSNAME), Darwin) +#http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or +ifeq ($(OSNAME), $(filter $(OSNAME),Darwin FreeBSD NetBSD)) curl -O $(LAPACK_URL) else wget $(LAPACK_URL) diff --git a/Makefile.system b/Makefile.system index ef2e8fc..c9e74fa 100644 --- a/Makefile.system +++ b/Makefile.system @@ -108,6 +108,14 @@ export MACOSX_DEPLOYMENT_TARGET=10.2 MD5SUM = md5 -r endif +ifeq ($(OSNAME), FreeBSD) +MD5SUM = md5 -r +endif + +ifeq ($(OSNAME), NetBSD) +MD5SUM = md5 -r +endif + ifeq ($(OSNAME), Linux) EXTRALIB += -lm endif -- 2.7.4