Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2006 07:58:21 GMT
From:      trasz <trasz@pin.if.uz.zgora.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/100330: [patch] Make it possible to build math/octave w/o math/atlas.
Message-ID:  <200607150758.k6F7wLk9018301@www.freebsd.org>
Resent-Message-ID: <200607150800.k6F80bWx089624@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607150758.k6F7wLk9018301>