From e9114d71343841dcc33d6b20eff00f7146c700bc Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 6 Jan 2006 17:42:01 +0000 Subject: [PATCH] SHARED_LIBS --- math/R/Makefile | 9 ++++++--- math/R/patches/patch-src_modules_lapack_Makefile_in | 12 ++++++++++++ math/R/pkg/PLIST | 4 ++-- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 math/R/patches/patch-src_modules_lapack_Makefile_in diff --git a/math/R/Makefile b/math/R/Makefile index 62679d22187..41c326337c8 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.13 2005/10/08 09:47:36 mbalmer Exp $ +# $OpenBSD: Makefile,v 1.14 2006/01/06 17:42:01 steven Exp $ SHARED_ONLY= Yes COMMENT= "clone of S, a powerful math/statistics/graphics language" DISTNAME= R-2.1.1 +SHARED_LIBS= Rlapack 21.1 CATEGORIES= math HOMEPAGE= http://www.r-project.org/ @@ -39,9 +40,11 @@ CONFIGURE_ENV= FFLAGS="${FFLAGS}" MAKE_FLAGS= INSTALL='install -c' \ INSTALL_DATA='install -c -m 644' \ INSTALL_PROGRAM='install -c -s -m 555' \ - INSTALL_SCRIPT='install -c -m 555' + INSTALL_SCRIPT='install -c -m 555' \ + LIBRlapack_VERSION=${LIBRlapack_VERSION} -FAKE_FLAGS= PREFIX=${PREFIX} DESTDIR=${WRKINST} +FAKE_FLAGS= PREFIX=${PREFIX} DESTDIR=${WRKINST} \ + LIBRlapack_VERSION=${LIBRlapack_VERSION} post-install: perl -i -pe 's:^R_HOME_DIR=.*:R_HOME_DIR=${TRUEPREFIX}/lib/R:' \ diff --git a/math/R/patches/patch-src_modules_lapack_Makefile_in b/math/R/patches/patch-src_modules_lapack_Makefile_in new file mode 100644 index 00000000000..3225b571e26 --- /dev/null +++ b/math/R/patches/patch-src_modules_lapack_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_modules_lapack_Makefile_in,v 1.1 2006/01/06 17:42:01 steven Exp $ +--- src/modules/lapack/Makefile.in.orig Mon Apr 18 13:34:36 2005 ++++ src/modules/lapack/Makefile.in Fri Jan 6 17:49:04 2006 +@@ -11,6 +11,8 @@ R_HOME = $(top_builddir) + + include $(top_builddir)/Makeconf + ++DYLIB_EXT=.so.$(LIBRlapack_VERSION) ++ + SOURCES_C = Lapack.c + SOURCES_F = @USE_EXTERNAL_LAPACK_FALSE@ rgeev.f rsyev.f + diff --git a/math/R/pkg/PLIST b/math/R/pkg/PLIST index bdcc2860f59..ebb07392348 100644 --- a/math/R/pkg/PLIST +++ b/math/R/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.8 2005/10/08 09:47:37 mbalmer Exp $ +@comment $OpenBSD: PLIST,v 1.9 2006/01/06 17:42:01 steven Exp $ bin/R lib/R/ lib/R/AUTHORS @@ -112,7 +112,7 @@ lib/R/include/Rmath.h lib/R/include/Rversion.h lib/R/include/S.h lib/R/lib/ -@lib lib/R/lib/libRlapack.so.21.1 +@lib lib/R/lib/libRlapack.so.${LIBRlapack_VERSION} lib/R/library/ lib/R/library/KernSmooth/ lib/R/library/KernSmooth/CONTENTS