diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-07 02:07:58 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-07 02:07:58 +0000 |
commit | 6755309ed2af9241d049630ced8b7d8274d79758 (patch) | |
tree | c558fdaf8e9704fee208ea9b26d7b4edac03241b | |
parent | afd7f2413151264c945985dd2672714e5d48e034 (diff) | |
download | ports-6755309ed2af9241d049630ced8b7d8274d79758.tar.gz ports-6755309ed2af9241d049630ced8b7d8274d79758.zip |
- Link with atlas version of lapack
- Make mkoctfile accept -pthread
- Don't hardcode path to lib symlink
PR: ports/56621, ports/58555
Submitted by: John E. Hein <jhein@timing.com>
AMAKAWA Shuhei <sa264@cam.ac.uk>
Notes
Notes:
svn path=/head/; revision=95230
-rw-r--r-- | math/octave-devel/Makefile | 12 | ||||
-rw-r--r-- | math/octave-devel/files/patch-mkoctfile.in | 11 | ||||
-rw-r--r-- | math/octave-devel/pkg-plist | 2 | ||||
-rw-r--r-- | math/octave/Makefile | 12 | ||||
-rw-r--r-- | math/octave/files/patch-mkoctfile.in | 11 | ||||
-rw-r--r-- | math/octave/pkg-plist | 2 |
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 |