pkgsrc/math/scilab/patches/patch-ah

30 lines
757 B
Text
Raw Normal View History

$NetBSD: patch-ah,v 1.10 2007/03/23 22:08:56 dmcmahill Exp $
--- routines/pvm/pvm_proc_ctrl.c.orig 2005-10-22 18:53:11.000000000 +0000
+++ routines/pvm/pvm_proc_ctrl.c
@@ -414,7 +414,8 @@ void C2F(scipvmspawn)(char *task, int *
2004-07-15 06:00:46 +02:00
char cmd[256];
char *arg[4];
int nargs= -1;
-
+ char *path;
+
arg[0] = NULL;
cmd[0] = 0;
@@ -427,7 +428,13 @@ void C2F(scipvmspawn)(char *task, int *
strcpy(cmd, "scilex.exe");
#else
/* I really need scilab here for gtk -version */
- strcpy(cmd, "scilab");
+ if (path = getenv("SCI")){
+ strcpy(cmd,path);
+ strcat(cmd,"/bin/scilab");
+ }
+ else {
+ strcpy(cmd, "scilab");
+ }
#endif
#if (defined __MSC__) || defined(__MINGW32__)
if ( _stricmp(task,"null") != 0)