Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/openspecfun/files/
Date: Tue, 04 Jan 2022 19:11:15
Message-Id: 1641323465.e43d09e935ef6867fccf383eb047f792da441798.tamiko@gentoo
1 commit: e43d09e935ef6867fccf383eb047f792da441798
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 4 19:09:58 2022 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 4 19:11:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e43d09e9
7
8 dev-libs/openspecfun: add patch
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 .../files/openspecfun-0.5.5-Makefile.patch | 68 ++++++++++++++++++++++
14 1 file changed, 68 insertions(+)
15
16 diff --git a/dev-libs/openspecfun/files/openspecfun-0.5.5-Makefile.patch b/dev-libs/openspecfun/files/openspecfun-0.5.5-Makefile.patch
17 new file mode 100644
18 index 000000000000..3544d8197a2e
19 --- /dev/null
20 +++ b/dev-libs/openspecfun/files/openspecfun-0.5.5-Makefile.patch
21 @@ -0,0 +1,68 @@
22 +--- a/Make.inc
23 ++++ b/Make.inc
24 +@@ -14,41 +14,18 @@ bindir = $(prefix)/bin
25 + libdir = $(prefix)/lib
26 + includedir = $(prefix)/include
27 +
28 +-FC = gfortran
29 + # CFLAGS_add and FFLAGS_add are flags that we always want to include
30 + # They are not overridable by the user, whereas CFLAGS and FFLAGS are
31 + # simply defaults and are overridable via environment variables or
32 + # `make CFLAGS="foo"` on the command line
33 +
34 +-FFLAGS = -O3 -fno-optimize-sibling-calls
35 +-CFLAGS = -std=c99 -O3
36 +-CPPFLAGS =
37 ++CFLAGS += -std=c99 -Wall
38 +
39 + override FFLAGS_add =
40 + override CFLAGS_add =
41 + override CPPFLAGS_add =
42 + override LDFLAGS_add =
43 +
44 +-USEGCC = 1
45 +-USECLANG = 0
46 +-
47 +-ifneq (,$(findstring $(OS),FreeBSD Darwin))
48 +-USEGCC = 0
49 +-USECLANG = 1
50 +-endif
51 +-
52 +-AR = ar
53 +-
54 +-ifeq ($(USECLANG),1)
55 +-USEGCC = 0
56 +-CC = clang
57 +-override CFLAGS_add += -fno-builtin
58 +-endif
59 +-
60 +-ifeq ($(USEGCC),1)
61 +-CC = gcc
62 +-override CFLAGS_add += -fno-gnu89-inline -std=c99
63 +-endif
64 +
65 + ARCH := $(shell $(CC) -dumpmachine | sed "s/\([^-]*\).*$$/\1/")
66 + ifeq ($(ARCH),mingw32)
67 +diff --git a/Makefile b/Makefile
68 +index 7b028b8..c30ed98 100644
69 +--- a/Makefile
70 ++++ b/Makefile
71 +@@ -35,9 +35,7 @@ OSF_MAJOR_SHLIB_EXT := $(SHLIB_EXT).$(SOMAJOR)
72 + endif
73 + endif
74 +
75 +-all: libopenspecfun.a libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT)
76 +-libopenspecfun.a: $(OBJS)
77 +- $(AR) -rcs libopenspecfun.a $(OBJS)
78 ++all: libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT)
79 + libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT): $(OBJS)
80 + $(FC) -shared $(OBJS) $(LDFLAGS) $(LDFLAGS_add) -Wl,$(SONAME_FLAG),libopenspecfun.$(OSF_MAJOR_SHLIB_EXT) -o $@
81 + ifneq ($(OS),WINNT)
82 +@@ -50,7 +48,6 @@ install: all
83 + mkdir -p $(DESTDIR)$(libdir)
84 + mkdir -p $(DESTDIR)$(includedir)
85 + cp -a libopenspecfun.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
86 +- cp -a libopenspecfun.a $(DESTDIR)$(libdir)/
87 + cp -a Faddeeva/Faddeeva.h $(DESTDIR)$(includedir)
88 +
89 + clean: