aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2009-05-26 10:03:38 +0800
committermaho <maho@FreeBSD.org>2009-05-26 10:03:38 +0800
commit7a58d2a05db54cc50a2eb14fa9a94c663d27dbaf (patch)
treedaa667d5dbd15ccb420464da1789089acc0e307f
parentc126e8c5f0588b1e44e03ff5989571c2c9d75f58 (diff)
downloadfreebsd-ports-gnome-7a58d2a05db54cc50a2eb14fa9a94c663d27dbaf.tar.gz
freebsd-ports-gnome-7a58d2a05db54cc50a2eb14fa9a94c663d27dbaf.tar.zst
freebsd-ports-gnome-7a58d2a05db54cc50a2eb14fa9a94c663d27dbaf.zip
Fix a commit for prior than FBSD7.
Original patch has been slighlty modified. PR: 127491 Submitted by: Stephen Montgomery-Smith
-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}