aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2009-05-26 02:03:38 +0000
committerMaho Nakata <maho@FreeBSD.org>2009-05-26 02:03:38 +0000
commit35140773e6c74d16b1445e3820abc8d565a75403 (patch)
tree45022d98cd194aa192b9e86affdf38e177fb9f59 /math
parentef97950f144389ba0c64f8ba0575c4f20d1aae63 (diff)
Notes
Diffstat (limited to 'math')
-rw-r--r--math/octave/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index ab73f2433ce4..bed3be1e4927 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -86,6 +86,15 @@ CONFIGURE_ARGS= --host=${GNU_HOST} \
SUB_FILES= octave
SUB_LIST= OCTAVE_VERSION="${OCTAVE_VERSION}" GNU_HOST="${GNU_HOST}"
+.if (${OSVERSION} <= 700000)
+WITH_PTMALLOC=yes
+.endif
+
+.if defined(WITH_PTMALLOC)
+LIB_DEPENDS+= ptmalloc:${PORTSDIR}/devel/ptmalloc
+CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lptmalloc"
+.endif
+
pre-configure:
@cd ${WRKSRC}/scripts ; ${AUTOCONF}