kfreebsd
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 19 Sep 2017 12:51:23 +0000 (13:51 +0100)
committerSébastien Villemot <sebastien@debian.org>
Tue, 19 Sep 2017 12:51:23 +0000 (13:51 +0100)
Gbp-Pq: Name kfreebsd.patch

Makefile.install
Makefile.system
exports/Makefile

index 24fe8c820b368c4ddcc8d9e4868354c60c0246e5..e9e2b773e7e269f98797e3824393e1ae76b3afd0 100644 (file)
@@ -66,17 +66,12 @@ endif
 #for install shared library
 ifndef NO_SHARED
        @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android 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)" ; \
index bd361a1a20809a17a98ce51788f091a8ff5d0df7..7772cedd81c34bf83f20b9912e0a6bd075a9f173 100644 (file)
@@ -237,7 +237,7 @@ ifeq ($(OSNAME), NetBSD)
 MD5SUM = md5 -n
 endif
 
-ifeq ($(OSNAME), Linux)
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD))
 EXTRALIB       += -lm
 NO_EXPRECISION = 1
 endif
index c05389573938994e78d42ec5c46bdffd7021be78..5bada5216b072875f860ed67d0bb5c5023bb36d9 100644 (file)
@@ -118,7 +118,7 @@ endif
 dllinit.$(SUFFIX) : dllinit.c
        $(CC) $(CFLAGS) -c -o $(@F) -s $<
 
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android FreeBSD))
 
 so : ../$(LIBSONAME)
 
@@ -152,7 +152,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)