freebsd-ports/math/R/files/patch-src_main_Makefile.in
Joseph Mingrone a0a98863ca math/R: Update to version 4.0.0
Upstream changes:
https://stat.ethz.ch/pipermail/r-announce/2020/000653.html

Also bump PORTREVISION of ports that depend on math/R.

Submitted by:	wen (in part)
Reviewed by:	jwb, Rainer Hurling <rhurlin@gwdg.de>, thierry
Differential Revision:	https://reviews.freebsd.org/D24572
2020-05-05 16:07:53 +00:00

27 lines
1.3 KiB
Text

--- src/main/Makefile.in.orig 2020-05-05 02:47:09 UTC
+++ src/main/Makefile.in
@@ -105,13 +105,13 @@ R_bin_OBJECTS = Rmain.o @WANT_R_SHLIB_FALSE@$(OBJECTS)
@WANT_R_SHLIB_TRUE@R_bin_LDADD = -lR @BLAS_SHLIB_TRUE@-lRblas
@BUILD_LTO_FALSE@R_bin_DEPENDENCIES =@WANT_R_SHLIB_FALSE@ libR.a @USE_EXPORTFILES_TRUE@ $(top_builddir)/etc/R.exp
-libR_la = libR$(R_DYLIB_EXT)
+libR_la = libR$(R_DYLIB_EXT).%%FULLVER%%
libR_la_OBJECTS = $(OBJECTS)
libR_la_LIBADD = $(MAIN_OBJS) $(EXTRA_STATIC_LIBS) $(EXTRA_LIBS) @WANT_R_SHLIB_TRUE@ @USE_EXPORTFILES_TRUE@ -Wl,-bE:$(top_builddir)/etc/R.exp
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 = -Wl,-soname,libR.so.4
all: R
@@ -201,6 +201,8 @@ install-bin: 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
install-static: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)"
@$(SHELL) $(top_srcdir)/tools/copy-if-change libR.a "$(DESTDIR)$(Rexeclibdir)/libR.a"