ports/100330: [patch] Make it possible to build math/octave w/o math/atlas.
trasz
trasz at pin.if.uz.zgora.pl
Sat Jul 15 08:00:39 UTC 2006
>Number: 100330
>Category: ports
>Synopsis: [patch] Make it possible to build math/octave w/o math/atlas.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 15 08:00:37 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: trasz
>Release:
>Organization:
>Environment:
>Description:
Right now math/octave depends on math/atlas, which takes enormous time
to build and is marked NO_PACKAGE, making quick installation of octave impossible.
This patch should make it possible to build package for octave.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/octave/Makefile,v
retrieving revision 1.58
diff -u -r1.58 Makefile
--- Makefile 9 Jul 2006 02:02:26 -0000 1.58
+++ Makefile 14 Jul 2006 21:03:52 -0000
@@ -16,8 +16,7 @@
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
-LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
- atlas.1:${PORTSDIR}/math/atlas
+LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
USE_BZIP2= yes
USE_PERL5_BUILD=yes
@@ -38,8 +37,6 @@
F77="${F77}" \
FFLAGS="${FFLAGS}"
CONFIGURE_ARGS= --host=${GNU_HOST} \
- --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \
- --with-lapack=-lalapack \
--enable-shared
SUB_FILES= octave
@@ -55,6 +52,14 @@
CONFIGURE_ARGS+= --disable-readline
.endif
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
+CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \
+ --with-lapack=-lalapack
+.else
+CONFIGURE_ARGS+= --without-blas --without-lapack
+.endif
+
post-install:
${MV} ${PREFIX}/bin/octave-${OCTAVE_VERSION} ${PREFIX}/libexec/octave/${OCTAVE_VERSION}
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list