From owner-freebsd-ports Wed Jul 17 3:18:22 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7811F37B400; Wed, 17 Jul 2002 03:18:17 -0700 (PDT) Received: from quanta.synchem.kyoto-u.ac.jp (quanta.synchem.kyoto-u.ac.jp [130.54.33.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6383943E42; Wed, 17 Jul 2002 03:18:16 -0700 (PDT) (envelope-from chat95@mbox.kyoto-inet.or.jp) Received: from localhost (quanth.synchem.kyoto-u.ac.jp [130.54.33.130]) by quanta.synchem.kyoto-u.ac.jp (8.12.5/3.7W/00091819) with ESMTP id g6HAHeOx065765; Wed, 17 Jul 2002 19:17:40 +0900 (JST) Date: Wed, 17 Jul 2002 19:15:44 +0900 (JST) Message-Id: <20020717.191544.640949471.maho@scarlatti.synchem.kyoto-u.ac.jp> To: ijliao@FreeBSD.ORG Cc: chat95@mbox.kyoto-inet.or.jp, glennpj@charter.net, freebsd-ports@FreeBSD.ORG Subject: Re: ports/40631: Update port science/mpqc and new slave port science/mpqc-mpich From: chat95@mbox.kyoto-inet.or.jp (Nakata Maho) Reply-To: chat95@mbox.kyoto-inet.or.jp In-Reply-To: <20020717062137.GA59796@terry.dragon2.net> References: <20020717024506.GA1554@gforce.johnson.home> <20020717.123415.884045463.maho@scarlatti.synchem.kyoto-u.ac.jp> <20020717062137.GA59796@terry.dragon2.net> X-Mailer: Mew version 2.2 on XEmacs 21.1.14 (Cuyahoga Valley) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, Glenn Johnson and Ying-Chieh Liao, > just add '--prefix="${PREFIX}" ' to CONFIGURE_ARGS, isnt it ? > > but take a look on ports/Mk/bsd.port.mk > by default, we always add this if GNU_CONFIGURE is enabled Thanks. I was misunderstanding. I found the reason. CONFIGURE_ARGS are overrided by slave port, so in this case, mpqc-mpich was configured with (from 7th line of config.stats) # ./configure '--with-libdirs=-L/usr/local/lib -L/usr/local/mpich/lib' '--with-blas=-lf77blas -latlas' '--with-lapack=-lalapack -lcblas' '--with-coptflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro ' '--with-cxxoptflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro ' '--with-f77optflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro -fstrength-reduce -funroll-loops -fexpensive-optimizations -ffast-math -malign-double' --with-include=-I/usr/local/mpich/include --enable-always-use-mpi --enable-threads=no however, configure args of master port is: # ./configure --with-libdirs=-L/usr/local/lib '--with-blas=-lf77blas -latlas' '--with-lapack=-lalapack -lcblas' '--with-coptflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro ' '--with-cxxoptflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro ' '--with-f77optflags=-pipe -O4 -mcpu=pentiumpro -march=pentiumpro -fstrength-reduce -funroll-loops -fexpensive-optimizations -ffast-math -malign-double' --prefix=/usr/local i386-portbld-freebsd4.6 ports added some extra CONFIGURE_ARGS(--prefix=/usr/local i386-portbld-freebsd4.6) when original Makefile included Makefile for slave port completely overrides CONFIGURE_ARGS so, extra CONFIGURE_ARGS (in this case, of course, --prefix=/usr/local i386-portbld-freebsd4.6) are faded away. Try this patch: --- /work/cvsup/ports/science/mpqc-mpich/Makefile Tue Jul 16 20:57:07 2002 +++ Makefile Wed Jul 17 18:55:01 2002 @@ -14,12 +14,8 @@ BUILD_DEPENDS= ${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich # MPICH implimentation is not thread safe -CONFIGURE_ARGS= --with-libdirs="-L${PREFIX}/lib -L${PREFIX}/mpich/lib" \ - --with-blas="-lf77blas -latlas" \ - --with-lapack="-lalapack -lcblas" \ - --with-coptflags="${CFLAGS}" \ - --with-cxxoptflags="${CFLAGS}" \ - --with-f77optflags="${FFLAGS}" \ - --with-include=-I${PREFIX}/mpich/include \ - --enable-always-use-mpi \ - --enable-threads=no +CONFIGURE_ARGS+= --with-libdirs="-L${PREFIX}/lib -L${PREFIX}/mpich/lib" \ + --with-include="-I${PREFIX}/mpich/include" \ + --enable-always-use-mpi \ + --enable-threads=no + I confirmed that this succesfully build, installed. Sorry for trouble, Nakata Maho To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message