From ebee832ff6b5aabe6f06091699abcf060619c7f1 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 26 Oct 2014 09:42:29 +0000 Subject: [PATCH] kfreebsd Gbp-Pq: Name kfreebsd.patch --- Makefile.install | 7 +------ Makefile.system | 2 +- exports/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile.install b/Makefile.install index c7d1d0d..fcb3b48 100644 --- a/Makefile.install +++ b/Makefile.install @@ -60,17 +60,12 @@ endif #for install shared library ifndef NO_SHARED @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) -ifeq ($(OSNAME), Linux) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD)) @install -pm755 $(LIBSONAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) @cd $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION) endif -ifeq ($(OSNAME), FreeBSD) - @cp $(LIBSONAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) - @cd $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) ; \ - ln -fs $(LIBSONAME) $(LIBPREFIX).so -endif ifeq ($(OSNAME), NetBSD) @cp $(LIBSONAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) @cd $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) ; \ diff --git a/Makefile.system b/Makefile.system index d2ff741..a661268 100644 --- a/Makefile.system +++ b/Makefile.system @@ -204,7 +204,7 @@ ifeq ($(OSNAME), NetBSD) MD5SUM = md5 -n endif -ifeq ($(OSNAME), Linux) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD)) EXTRALIB += -lm NO_EXPRECISION = 1 endif diff --git a/exports/Makefile b/exports/Makefile index c798bc7..07195a0 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -99,7 +99,7 @@ $(LIBDYNNAME) : ../$(LIBNAME) osx.def dllinit.$(SUFFIX) : dllinit.c $(CC) $(CFLAGS) -c -o $(@F) -s $< -ifeq ($(OSNAME), Linux) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD)) so : ../$(LIBSONAME) @@ -121,7 +121,7 @@ endif endif #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or -ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD)) +ifeq ($(OSNAME), $(filter $(OSNAME),NetBSD)) so : ../$(LIBSONAME) -- 2.30.2