From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 15 08:00:39 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14A2016A4E7 for ; Sat, 15 Jul 2006 08:00:39 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D429943D55 for ; Sat, 15 Jul 2006 08:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6F80bDB089625 for ; Sat, 15 Jul 2006 08:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6F80bWx089624; Sat, 15 Jul 2006 08:00:37 GMT (envelope-from gnats) Resent-Date: Sat, 15 Jul 2006 08:00:37 GMT Resent-Message-Id: <200607150800.k6F80bWx089624@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, trasz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C249B16A4DD for ; Sat, 15 Jul 2006 07:58:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6821843D46 for ; Sat, 15 Jul 2006 07:58:22 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6F7wLIP018302 for ; Sat, 15 Jul 2006 07:58:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6F7wLk9018301; Sat, 15 Jul 2006 07:58:21 GMT (envelope-from nobody) Message-Id: <200607150758.k6F7wLk9018301@www.freebsd.org> Date: Sat, 15 Jul 2006 07:58:21 GMT From: trasz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/100330: [patch] Make it possible to build math/octave w/o math/atlas. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jul 2006 08:00:39 -0000 >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: