Skip site navigation (1)Skip section navigation (2)
Date:      15 Jun 2003 18:09:43 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53352: [PATCH] math/blitz++: unbreak and fix bento build
Message-ID:  <20030615180943.27672.qmail@kolobov.com>
Resent-Message-ID: <200306151810.h5FIAFZo095628@freefall.freebsd.org>

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

>Number:         53352
>Category:       ports
>Synopsis:       [PATCH] math/blitz++: unbreak and fix bento build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 15 11:10:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD elf.chetwood.ru 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Thu Jun  5 02:19:41 MSD
>Description:
- Unbreak: remove unnecessary check for file descriptor 0 to fix build 
  on bento
- Remove unnecessary dependency on math/blas - quoting blitz++ configure:
  "  (If so, Blitz++ will use BLAS library to run benchmarks against "
  "   if you build the benchmarks.  Blitz++ itself does NOT use BLAS.)"
  We do NOT build benchmarks with this port, so this dependency is unused.

Added file:
- files/patch-bzconfig

>How-To-Repeat:
>Fix:

--- blitz++-0.6.patch begins here ---
diff -ruN --exclude=CVS blitz++.cvs/Makefile blitz++/Makefile
--- blitz++.cvs/Makefile	Tue May  6 10:55:35 2003
+++ blitz++/Makefile	Sun Jun 15 21:57:45 2003
@@ -15,16 +15,11 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A C++ class library for scientific computing
 
-BROKEN=		"Does not compile"
-
-LIB_DEPENDS=	blas.1:${PORTSDIR}/math/blas
-
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV=	LDFLAGS="-lg2c"
-CONFIGURE_ARGS=	--with-cxx=gcc --disable-debug --with-blas=${LOCALBASE}/lib
+CONFIGURE_ARGS=	--with-cxx=gcc --enable-optimize --disable-debug
 MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
 		AUTOHEADER="${TRUE}"
 
diff -ruN --exclude=CVS blitz++.cvs/files/patch-bzconfig blitz++/files/patch-bzconfig
--- blitz++.cvs/files/patch-bzconfig	Thu Jan  1 03:00:00 1970
+++ blitz++/files/patch-bzconfig	Thu May 22 15:07:43 2003
@@ -0,0 +1,14 @@
+--- compiler/bzconfig.orig	Thu May 22 15:06:34 2003
++++ compiler/bzconfig	Thu May 22 15:07:00 2003
+@@ -37,11 +37,6 @@
+ # to edit the next line
+ objextension='o'
+ 
+-if test ! -t 0; then
+-    echo "Use 'sh bzconfig', not 'sh < bzconfig'"
+-    exit 1
+-fi
+-
+ # clean="rm -f a.out core bztemp bztest bzjunk.cpp bzjunk.o bzjunk.ii bzjunk.int.c bzjunk.s"
+ clean="rm -f core"
+ trap '$clean; exit 1' 1 2 3 15
--- blitz++-0.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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