aboutsummaryrefslogtreecommitdiff
path: root/science/mpqc
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2009-10-09 02:02:09 +0000
committerMaho Nakata <maho@FreeBSD.org>2009-10-09 02:02:09 +0000
commitdf2a6060e16c4ec80c6314dc74d8aef03e613ea0 (patch)
tree25ac0ad206713ea0fdefc99500a52bf56afe7919 /science/mpqc
parente8e6e5b1f7fae856902941b5373d565c2ca6a182 (diff)
downloadports-df2a6060e16c4ec80c6314dc74d8aef03e613ea0.tar.gz
ports-df2a6060e16c4ec80c6314dc74d8aef03e613ea0.zip
Notes
Diffstat (limited to 'science/mpqc')
-rw-r--r--science/mpqc/Makefile8
-rw-r--r--science/mpqc/files/patch-LocalMakefile.in14
2 files changed, 21 insertions, 1 deletions
diff --git a/science/mpqc/Makefile b/science/mpqc/Makefile
index 95b57120b47c..eb94e529e2ec 100644
--- a/science/mpqc/Makefile
+++ b/science/mpqc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mpqc
PORTVERSION= 2.3.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= science parallel
MASTER_SITES= SF
@@ -92,6 +92,12 @@ CFLAGS+= -O2 -ffast-math
CXXFLAGS+= -O2 -ffast-math
.endif
+EXTRARPATH= -Wl,-rpath=`${CAT} ${WRKSRC}/LIBDIR`
+
+post-patch:
+ @${DIRNAME} `${CC} -print-file-name=libstdc++.so` > ${WRKSRC}/LIBDIR
+ @${REINPLACE_CMD} -e 's|%%EXTRARPATH%%|${EXTRARPATH}|g' ${WRKSRC}/lib/LocalMakefile.in
+
pre-configure:
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
diff --git a/science/mpqc/files/patch-LocalMakefile.in b/science/mpqc/files/patch-LocalMakefile.in
new file mode 100644
index 000000000000..c16457ad0ee4
--- /dev/null
+++ b/science/mpqc/files/patch-LocalMakefile.in
@@ -0,0 +1,14 @@
+--- lib/LocalMakefile.in~ 2005-07-01 07:19:39.000000000 +0900
++++ lib/LocalMakefile.in 2009-10-09 09:58:51.000000000 +0900
+@@ -41,9 +41,9 @@
+ LIBTOOL= $(SHELL) $(TOPDIR)/libtool
+ LTLINK = $(LIBTOOL) --mode=link
+ ifneq ($(BUILDID),)
+- LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION)
++ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION)
+ else
+- LTLINKLIBOPTS = -rpath $(libdir) -version-info $(SC_SO_VERSION)
++ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -version-info $(SC_SO_VERSION)
+ endif
+ LTLINKBINOPTS =
+ LTCOMP = $(LIBTOOL) --mode=compile