ports/math/R/files/patch-src_main_Makefile.in
Joseph Mingrone 2a131a985d
math/R: Update to 4.4.0
Changes:	https://hypatia.math.ethz.ch/pipermail/r-announce/2024/000701.html
Sponsored by:	The FreeBSD Foundation
2024-05-02 00:32:43 -03:00

20 lines
956 B
Text

--- src/main/Makefile.in.orig 2024-05-01 21:07:24 UTC
+++ src/main/Makefile.in
@@ -115,7 +115,7 @@ libR_la_DEPENDENCIES = $(STATIC_LIBS) $(R_TZONE) @WANT
libR_la_DEPENDENCIES = $(STATIC_LIBS) $(R_TZONE) @WANT_R_SHLIB_TRUE@ @USE_EXPORTFILES_TRUE@ $(top_builddir)/etc/R.exp
## The next is needed for macOS only at present
-LIBR_LDFLAGS = @LIBR_LDFLAGS@
+LIBR_LDFLAGS = @LIBR_LDFLAGS@ -Wl,-soname,libR.so.%%MAJORVER%%
all: R
@@ -203,6 +203,8 @@ install-lib: installdirs
install-lib: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)"
@$(SHELL) $(top_srcdir)/tools/copy-if-change $(libR_la) "$(DESTDIR)$(Rexeclibdir)/$(libR_la)"
+ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(libR_la) libR.so.%%MAJORVER%%
+ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(libR_la) libR.so.%%FULLVER%%
install-static: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)"
@$(SHELL) $(top_srcdir)/tools/copy-if-change libR.a "$(DESTDIR)$(Rexeclibdir)/libR.a"