aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-07 02:07:58 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-07 02:07:58 +0000
commit6755309ed2af9241d049630ced8b7d8274d79758 (patch)
treec558fdaf8e9704fee208ea9b26d7b4edac03241b /math
parentafd7f2413151264c945985dd2672714e5d48e034 (diff)
downloadports-6755309ed2af9241d049630ced8b7d8274d79758.tar.gz
ports-6755309ed2af9241d049630ced8b7d8274d79758.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/octave-devel/Makefile12
-rw-r--r--math/octave-devel/files/patch-mkoctfile.in11
-rw-r--r--math/octave-devel/pkg-plist2
-rw-r--r--math/octave/Makefile12
-rw-r--r--math/octave/files/patch-mkoctfile.in11
-rw-r--r--math/octave/pkg-plist2
6 files changed, 36 insertions, 14 deletions
diff --git a/math/octave-devel/Makefile b/math/octave-devel/Makefile
index ec35ed086b07..29c5cd5161b2 100644
--- a/math/octave-devel/Makefile
+++ b/math/octave-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= octave
PORTVERSION= 2.1.50
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ftp://ftp.octave.org/pub/octave/bleeding-edge/ \
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/
@@ -18,8 +18,7 @@ COMMENT= High-level interactive language for numerical computations
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
- f77blas.1:${PORTSDIR}/math/atlas \
- lapack.3:${PORTSDIR}/math/lapack
+ f77blas.1:${PORTSDIR}/math/atlas
USE_BZIP2= yes
@@ -33,17 +32,18 @@ GNU_HOST= ${ARCH}-portbld-freebsdaout${OSREL}
OCTAVE_VERSION= ${PORTVERSION}
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
-BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -latlas"
+BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -lcblas -latlas"
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --host=${GNU_HOST} \
- --with-fftw --with-blas=${BLAS_LIBS} --with-lpack \
+ --with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack \
--enable-shared
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
- CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ FFLAGS="${FFLAGS}"
.if ${OSVERSION} < 400004
CONFIGURE_ARGS+= --with-f2c
diff --git a/math/octave-devel/files/patch-mkoctfile.in b/math/octave-devel/files/patch-mkoctfile.in
new file mode 100644
index 000000000000..0eb4c4c552b4
--- /dev/null
+++ b/math/octave-devel/files/patch-mkoctfile.in
@@ -0,0 +1,11 @@
+--- mkoctfile.in.orig Thu Jan 2 22:55:47 2003
++++ mkoctfile.in Wed Oct 22 10:04:01 2003
+@@ -182,7 +182,7 @@
+ -D*)
+ defs="$defs $1"
+ ;;
+- -[lL]*)
++ -[lL]* | -pthread)
+ ldflags="$ldflags $1"
+ ;;
+ -M | --depend)
diff --git a/math/octave-devel/pkg-plist b/math/octave-devel/pkg-plist
index 20a7c1c62894..3ff9792cf4d2 100644
--- a/math/octave-devel/pkg-plist
+++ b/math/octave-devel/pkg-plist
@@ -306,7 +306,7 @@ lib/octave-%%OCTAVE_VERSION%%/liboctinterp.a
lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so
lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so.%%OCTAVE_VERSION%%
@unexec /bin/rm -f %D/lib/octave
-@exec /bin/ln -sf %D/lib/octave-%%OCTAVE_VERSION%% %D/lib/octave
+@exec /bin/ln -sf octave-%%OCTAVE_VERSION%% %D/lib/octave
libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-info
libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-octave-help
libexec/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/airy.oct
diff --git a/math/octave/Makefile b/math/octave/Makefile
index ec35ed086b07..29c5cd5161b2 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -7,7 +7,7 @@
PORTNAME= octave
PORTVERSION= 2.1.50
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ftp://ftp.octave.org/pub/octave/bleeding-edge/ \
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/
@@ -18,8 +18,7 @@ COMMENT= High-level interactive language for numerical computations
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
- f77blas.1:${PORTSDIR}/math/atlas \
- lapack.3:${PORTSDIR}/math/lapack
+ f77blas.1:${PORTSDIR}/math/atlas
USE_BZIP2= yes
@@ -33,17 +32,18 @@ GNU_HOST= ${ARCH}-portbld-freebsdaout${OSREL}
OCTAVE_VERSION= ${PORTVERSION}
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
-BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -latlas"
+BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -lcblas -latlas"
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --host=${GNU_HOST} \
- --with-fftw --with-blas=${BLAS_LIBS} --with-lpack \
+ --with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack \
--enable-shared
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
- CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ FFLAGS="${FFLAGS}"
.if ${OSVERSION} < 400004
CONFIGURE_ARGS+= --with-f2c
diff --git a/math/octave/files/patch-mkoctfile.in b/math/octave/files/patch-mkoctfile.in
new file mode 100644
index 000000000000..0eb4c4c552b4
--- /dev/null
+++ b/math/octave/files/patch-mkoctfile.in
@@ -0,0 +1,11 @@
+--- mkoctfile.in.orig Thu Jan 2 22:55:47 2003
++++ mkoctfile.in Wed Oct 22 10:04:01 2003
+@@ -182,7 +182,7 @@
+ -D*)
+ defs="$defs $1"
+ ;;
+- -[lL]*)
++ -[lL]* | -pthread)
+ ldflags="$ldflags $1"
+ ;;
+ -M | --depend)
diff --git a/math/octave/pkg-plist b/math/octave/pkg-plist
index 20a7c1c62894..3ff9792cf4d2 100644
--- a/math/octave/pkg-plist
+++ b/math/octave/pkg-plist
@@ -306,7 +306,7 @@ lib/octave-%%OCTAVE_VERSION%%/liboctinterp.a
lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so
lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so.%%OCTAVE_VERSION%%
@unexec /bin/rm -f %D/lib/octave
-@exec /bin/ln -sf %D/lib/octave-%%OCTAVE_VERSION%% %D/lib/octave
+@exec /bin/ln -sf octave-%%OCTAVE_VERSION%% %D/lib/octave
libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-info
libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-octave-help
libexec/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/airy.oct