kfreebsd
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sat, 6 May 2017 13:22:06 +0000 (13:22 +0000)
committerSébastien Villemot <sebastien@debian.org>
Sat, 6 May 2017 13:22:06 +0000 (13:22 +0000)
Gbp-Pq: Name kfreebsd.patch

Makefile.install
Makefile.system
exports/Makefile

index 1b9388a8b50ee712629914f584d28bd526e4925c..60f9897929574e8ac226355f97544e1b137946e0 100644 (file)
@@ -64,17 +64,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))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS 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 b05177b6c383c99bd00c4a32700db8c606c78435..d24996cc69ade7b2f0453570cc03d16254c60829 100644 (file)
@@ -229,7 +229,7 @@ ifeq ($(OSNAME), NetBSD)
 MD5SUM = md5 -n
 endif
 
-ifeq ($(OSNAME), Linux)
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD))
 EXTRALIB       += -lm
 NO_EXPRECISION = 1
 endif
index 5632b6fff7e887a22f5dbaacb4d37167b061396f..db9883d17322004d869489bfe540d874ae0986ea 100644 (file)
@@ -118,7 +118,7 @@ endif
 dllinit.$(SUFFIX) : dllinit.c
        $(CC) $(CFLAGS) -c -o $(@F) -s $<
 
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS FreeBSD))
 
 so : ../$(LIBSONAME)
 
@@ -146,7 +146,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)