1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Maintainer fix for math/scilab

The math/scilab port does not work on FreeBSD 5.0 due to
	an header conflict.  The following patch sent by Lyndon
	Nerenberg (ports/47498) fixes the problem.

	Reported by: Kris Kennaway (kris@obsecurity.org)
	Fix by: Lyndon Nerenberg (lyndon@orthanc.ab.ca)

PR:		ports/47508
Submitted by:	Jean-Sebastien Roy <js@jeannot.org>
This commit is contained in:
Edwin Groothuis 2003-02-05 23:43:15 +00:00
parent b736ac0d1d
commit 41b97df0b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74919
3 changed files with 47 additions and 7 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= scilab
PORTVERSION= 2.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= math cad parallel
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/
EXTRACT_SUFX= .src.tar.gz
@ -21,7 +21,7 @@ RUN_DEPENDS= xless:${PORTSDIR}/misc/xless \
wish8.3:${PORTSDIR}/x11-toolkits/tk83 \
pvm:${PORTSDIR}/net/pvm
PVM_ROOT= ${PREFIX}/lib/pvm
PVM_ROOT= ${LOCALBASE}/lib/pvm
NO_CDROM= "Don't sell for profit."
@ -29,12 +29,16 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --without-xless --with-tk \
--with-tk-library=${PREFIX}/lib --with-tk-include=${PREFIX}/include/tk8.3 \
--with-tcl-library=${PREFIX}/lib --with-tcl-include=${PREFIX}/include/tcl8.3 \
--with-xaw3d
--with-tk-library=${LOCALBASE}/lib \
--with-tk-include=${LOCALBASE}/include/tk8.3 \
--with-tcl-library=${LOCALBASE}/lib \
--with-tcl-include=${LOCALBASE}/include/tcl8.3 \
--with-xaw3d \
--x-include=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
CONFIGURE_ENV= PVM_ROOT=${PVM_ROOT} PVM_LIB=${PREFIX}/lib
MAKE_ENV= PVM_INCLUDE=${PREFIX}/include
CONFIGURE_ENV= PVM_ROOT=${PVM_ROOT} PVM_LIB=${LOCALBASE}/lib X11BASE=${X11BASE}
MAKE_ENV= PVM_INCLUDE=${LOCALBASE}/include
post-extract:
${RM} ${WRKSRC}/examples/callsci/callsciJava/config/config

View File

@ -0,0 +1,11 @@
--- routines/xsci/wf_fig.h 2003/01/25 17:23:40 1.1
+++ routines/xsci/wf_fig.h 2003/01/25 17:24:04
@@ -48,7 +48,7 @@
#include <errno.h>
#ifndef linux
-#if !defined(__bsdi__) && !defined(__NetBSD__)
+#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
extern int errno;
extern int sys_nerr;
#if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd)

View File

@ -0,0 +1,25 @@
--- routines/xsci/x_misc.c 2003/01/25 17:30:25 1.1
+++ routines/xsci/x_misc.c 2003/01/25 17:34:28
@@ -509,10 +509,10 @@
/* #include "wf_fig.h" */ /** for sys_errlist **/
#ifndef linux
-#if !defined(__bsdi__) && !defined(__NetBSD__)
+#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
extern int errno;
extern int sys_nerr;
-#if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd)
+#if (! (defined(BSD) && (BSD >= 199306))) && !defined(__FreeBSD__)
extern char *sys_errlist[];
#endif
#endif
@@ -523,7 +523,9 @@
char *SysErrorMsg(n)
int n;
{
+#ifndef __FreeBSD__
extern int sys_nerr;
+#endif /* !__FreeBSD__ */
return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : UE );
}