Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 01:41:06 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Pav Lucistnik <pav@FreeBSD.org>, ports@FreeBSD.org
Subject:   Re: [Fwd: scilab-4.1.2_1 failed on amd64 7]
Message-ID:  <alpine.LSU.1.99.0901070134370.12007@acrux.dbai.tuwien.ac.at>
In-Reply-To: <1231268995.62131.12.camel@hood.oook.cz>
References:  <1231268995.62131.12.camel@hood.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the report, Pav.  

> http://pointyhat.FreeBSD.org/errorlogs/amd64-errorlogs/a.7.20090105194422/scilab-4.1.2_1.log

This port is one of (way too) many without a maintainer, and I am not
in a good position to give proper testing to this, but perhaps someone
on ports@ may be willing to step in?

Below is a first cleanup of this port.  Note you'll also need to rebuild
the dependencies built by gfortran (lapack and blas after recent changes
to Mk/bsd.gcc.mk), PORTREVISION bump is in the work.

Gerald


Omit F77, FFLAGS and CFLAGS from CONFIGURE_ENV since these are handled
by the ports infrastructure.

Employ USE_FORTRAN, simplifying things.


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/scilab/Makefile,v
retrieving revision 1.48
diff -u -3 -p -r1.48 Makefile
--- Makefile	6 Jan 2009 19:26:40 -0000	1.48
+++ Makefile	7 Jan 2009 00:34:17 -0000
@@ -22,6 +22,8 @@ BUILD_DEPENDS=	wish8.4:${PORTSDIR}/x11-t
 RUN_DEPENDS+=	wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
     		pvm:${PORTSDIR}/net/pvm
 
+USE_FORTRAN=yes
+CONFIGURE_ARGS+=	--with-gfortran
 USE_XORG=	x11
 GNU_CONFIGURE=	yes
 USE_GETTEXT=	yes
@@ -44,8 +46,7 @@ CONFIGURE_ARGS=	--with-tk \
 		--with-gtk2
 
 CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
-CONFIGURE_ENV+=	F77=${F77} CFLAGS="${CFLAGS}" FFLAGS="${FFLAGS}" \
-		PVM_ROOT=${LOCALBASE}/lib/pvm
+CONFIGURE_ENV+=	PVM_ROOT=${LOCALBASE}/lib/pvm
 
 .include <bsd.port.pre.mk>
 
@@ -67,13 +68,6 @@ BLAS_LIBS?=	-llapack -lblas
 .endif
 MAKE_ENV+=	BLAS_LIBS="-L${LOCALBASE}/lib ${BLAS_LIBS}"
 
-WANT_FORTRAN=yes #dummy but future use
-BUILD_DEPENDS+=	gfortran42:${PORTSDIR}/lang/gcc42
-RUN_DEPENDS+=	gfortran42:${PORTSDIR}/lang/gcc42
-F77=		gfortran42
-FC=		gfortran42
-CONFIGURE_ARGS+=	--with-gfortran
-
 .if ${ARCH} == "alpha" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
 BROKEN=		does not compile on alpha 5.x, ia64, sparc64
 .endif



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