View | Details | Raw Unified | Return to bug 175015
Collapse All | Expand All

(-)math/snns/Makefile (-6 / +5 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:	snns
1
# Created by: reg@shale.csir.co.za
2
# Date created:		2 Febuary 1997
3
# Whom:			reg@shale.csir.co.za
4
#
5
# $FreeBSD: head/math/snns/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/math/snns/Makefile 300896 2012-07-14 13:54:48Z beat $
6
#
7
3
8
PORTNAME=	snns
4
PORTNAME=	snns
9
PORTVERSION=	4.3
5
PORTVERSION=	4.3
Lines 21-26 Link Here
21
HAS_CONFIGURE=	yes
17
HAS_CONFIGURE=	yes
22
CONFIGURE_ARGS=	--prefix=${PREFIX}/lib/snns --enable-global \
18
CONFIGURE_ARGS=	--prefix=${PREFIX}/lib/snns --enable-global \
23
		--build=${CONFIGURE_TARGET}
19
		--build=${CONFIGURE_TARGET}
20
MAKE_JOBS_UNSAFE=	yes
21
22
.include <bsd.port.options.mk>
24
23
25
post-extract:
24
post-extract:
26
.for file in config.guess config.sub
25
.for file in config.guess config.sub
Lines 48-54 Link Here
48
	${INSTALL_DATA} ${WRKSRC}/Readme.license ${PREFIX}/lib/snns
47
	${INSTALL_DATA} ${WRKSRC}/Readme.license ${PREFIX}/lib/snns
49
	${INSTALL_DATA} ${WRKSRC}/default.cfg ${PREFIX}/lib/snns
48
	${INSTALL_DATA} ${WRKSRC}/default.cfg ${PREFIX}/lib/snns
50
	${INSTALL_DATA} ${WRKSRC}/help.hdoc ${PREFIX}/lib/snns
49
	${INSTALL_DATA} ${WRKSRC}/help.hdoc ${PREFIX}/lib/snns
51
.if !defined(NOPORTEXAMPLES)
50
.if ${PORT_OPTIONS:MEXAMPLES}
52
	@${MKDIR} ${EXAMPLESDIR}
51
	@${MKDIR} ${EXAMPLESDIR}
53
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
52
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
54
.endif
53
.endif
(-)math/snns/files/patch-tools__sources__analyze.c (+10 lines)
Line 0 Link Here
1
--- tools/sources/analyze.c.orig	2008-04-21 16:56:06.000000000 +0900
2
+++ tools/sources/analyze.c	2012-10-24 04:58:13.000000000 +0900
3
@@ -21,6 +21,7 @@
4
 #include <stdio.h>
5
 #include <stdlib.h>
6
 #include <string.h>
7
+#include <unistd.h>
8
 
9
 /*****************************************************************************/
10
 /* constants                                                                 */
(-)math/snns/files/patch-tools__sources__convert2snns.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/convert2snns.c.orig	2008-04-21 16:56:07.000000000 +0900
2
+++ tools/sources/convert2snns.c	2012-10-24 04:45:56.000000000 +0900
3
@@ -390,7 +390,7 @@
4
   UPDATE   : june 15 1993
5
 ******************************************************************************/
6
 
7
-void main(int argc,char **argv)
8
+int main(int argc,char **argv)
9
 {
10
 FILE *fp;
11
 
(-)math/snns/files/patch-tools__sources__feedback-gennet.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/feedback-gennet.c.orig	2008-04-21 16:56:07.000000000 +0900
2
+++ tools/sources/feedback-gennet.c	2012-10-24 04:47:13.000000000 +0900
3
@@ -48,7 +48,7 @@
4
  return 0.0;
5
 }
6
 
7
-void main ()
8
+int main(int argc, char **argv)
9
 {
10
  int i,j;
11
  int nin,nhid,nout,nconnections;
(-)math/snns/files/patch-tools__sources__ff_bignet.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/ff_bignet.c.orig	2008-04-21 16:56:07.000000000 +0900
2
+++ tools/sources/ff_bignet.c	2012-10-24 04:46:15.000000000 +0900
3
@@ -1009,7 +1009,7 @@
4
   UPDATE   : 
5
 ******************************************************************************/
6
 
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 {
10
     char *file_name;
11
     int err;
(-)math/snns/files/patch-tools__sources__mkhead.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/mkhead.c.orig	2008-04-21 16:56:08.000000000 +0900
2
+++ tools/sources/mkhead.c	2012-10-24 04:36:51.000000000 +0900
3
@@ -25,7 +25,7 @@
4
 #include <time.h>
5
 
6
 
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 
10
 {
11
    time_t t;
(-)math/snns/files/patch-tools__sources__mkout.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/mkout.c.orig	2008-04-21 16:56:08.000000000 +0900
2
+++ tools/sources/mkout.c	2012-10-24 04:38:57.000000000 +0900
3
@@ -26,7 +26,7 @@
4
 
5
 #define RAWNUM 8
6
 
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 
10
 {
11
    int i, units, active;
(-)math/snns/files/patch-tools__sources__mkpat.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/mkpat.c.orig	2008-04-21 16:56:08.000000000 +0900
2
+++ tools/sources/mkpat.c	2012-10-24 04:40:37.000000000 +0900
3
@@ -25,7 +25,7 @@
4
 
5
 #define RAWNUM 8
6
 
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 
10
 {
11
    int i;
(-)math/snns/files/patch-tools__sources__pat_sel.c (+20 lines)
Line 0 Link Here
1
--- tools/sources/pat_sel.c.orig	2008-04-21 16:56:08.000000000 +0900
2
+++ tools/sources/pat_sel.c	2012-10-24 04:43:51.000000000 +0900
3
@@ -58,7 +58,7 @@
4
 
5
   UPDATE   : 
6
 ******************************************************************************/
7
-void main (int argc, char *argv[])
8
+int main (int argc, char *argv[])
9
 { 
10
 
11
     int   pat_set, tot_pat_num;
12
@@ -88,7 +88,7 @@
13
     if(krui_loadNewPatterns(argv[2],&pat_set) != 0 /*KRERR_NO_ERROR*/){
14
 	fprintf(stderr, "error: can't read file %s\n", argv[2]) ;
15
 	fclose (in_no_file) ;
16
-	return ;
17
+	return 0;
18
     }
19
     tot_pat_num = krui_getNoOfPatterns();
20
 
(-)math/snns/files/patch-tools__sources__pat_sel_simple.c (+53 lines)
Line 0 Link Here
1
--- tools/sources/pat_sel_simple.c.orig	2008-04-21 16:56:08.000000000 +0900
2
+++ tools/sources/pat_sel_simple.c	2012-10-24 04:33:30.000000000 +0900
3
@@ -168,7 +168,7 @@
4
 /* main program                                                               */
5
 /******************************************************************************/
6
 	  
7
-void main (int argc, char *argv[])
8
+int main (int argc, char *argv[])
9
 { 
10
   float  *output_pattern    ;
11
   float  *input_pattern     ;
12
@@ -188,28 +188,28 @@
13
   {  
14
     fprintf (stderr, "usage: %s <no_file> <in_pat_file> <out_pat_file>\n",
15
              argv[0]); 
16
-    return ;
17
+    return 0;
18
   }
19
 
20
   
21
   if ((in_no_file   = fopen(argv[1], "r")) == (FILE *) NULL) 
22
   { 
23
     fprintf(stderr, "error: can't read file %s\n", argv[1]) ;
24
-    return ;
25
+    return 0;
26
   }
27
   
28
   if ((in_pat_file  = fopen(argv[2], "r")) == (FILE *) NULL)
29
   { 
30
     fprintf(stderr, "error: can't read file %s\n", argv[2]) ;
31
     fclose (in_no_file) ;
32
-    return ;
33
+    return 0;
34
   }
35
 
36
   if ((out_pat_file = fopen(argv[3], "r")) != (FILE *) NULL)
37
   {
38
     fclose(out_pat_file) ;
39
     fprintf (stderr, "overwrite %s (y/n) ? ", argv[3]) ;
40
-    if (getc(stdin) != 'y') return ; 
41
+    if (getc(stdin) != 'y') return 0; 
42
   }
43
 
44
   if ((out_pat_file = fopen(argv[3], "w")) == (FILE *) NULL)
45
@@ -217,7 +217,7 @@
46
     fprintf(stderr, "error: can't create file %s\n", argv[3]) ;
47
     fclose (in_no_file)  ;
48
     fclose (in_pat_file) ;
49
-    return ;
50
+    return 0;
51
   }
52
 
53
   
(-)math/snns/files/patch-tools__sources__td_bignet.c (+11 lines)
Line 0 Link Here
1
--- tools/sources/td_bignet.c.orig	2008-04-21 16:56:09.000000000 +0900
2
+++ tools/sources/td_bignet.c	2012-10-24 04:46:24.000000000 +0900
3
@@ -1052,7 +1052,7 @@
4
 
5
   UPDATE   : 
6
 ******************************************************************************/
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 {
10
     char *file_name;
11
     int err;
(-)math/snns/files/patch-xgui__sources__ui_main.c (-3 / +4 lines)
Lines 1-11 Link Here
1
--- xgui/sources/ui_main.c.orig	Sat Dec  4 13:08:46 1999
1
--- xgui/sources/ui_main.c.orig	2008-04-21 16:56:25.000000000 +0900
2
+++ xgui/sources/ui_main.c	Sat Dec  4 13:08:04 1999
2
+++ xgui/sources/ui_main.c	2012-10-24 04:51:45.000000000 +0900
3
@@ -329,8 +329,10 @@
3
@@ -329,8 +329,10 @@
4
 
4
 
5
   UPDATE   : 1.4.1990
5
   UPDATE   : 1.4.1990
6
 ******************************************************************************/
6
 ******************************************************************************/
7
-void main (int argc, char **argv)
7
+#include <floatingpoint.h>
8
+#include <floatingpoint.h>
8
 void main (int argc, char **argv)
9
+int main (int argc, char **argv)
9
 {
10
 {
10
+    fpsetmask(0);
11
+    fpsetmask(0);
11
     ui_toplevel = XtAppInitialize(&ui_appContext, "Popup", NULL, ZERO,
12
     ui_toplevel = XtAppInitialize(&ui_appContext, "Popup", NULL, ZERO,
(-)math/snns/files/patch-xgui__sources__ui_main.h (+11 lines)
Line 0 Link Here
1
--- xgui/sources/ui_main.h.orig	2008-04-21 16:56:25.000000000 +0900
2
+++ xgui/sources/ui_main.h	2012-10-24 04:50:27.000000000 +0900
3
@@ -23,7 +23,7 @@
4
 #define _UI_MAIN_DEFINED_
5
 
6
 
7
-extern void main (int, char **);
8
+extern int main (int, char **);
9
 
10
 #ifndef MAXPATHLEN
11
 #define MAXPATHLEN  512
(-)math/snns/files/patch-xgui__sources__ui_main.ph (+11 lines)
Line 0 Link Here
1
--- xgui/sources/ui_main.ph.orig	2008-04-21 16:56:25.000000000 +0900
2
+++ xgui/sources/ui_main.ph	2012-10-24 04:53:47.000000000 +0900
3
@@ -26,7 +26,7 @@
4
 /* begin global definition section */
5
 
6
 
7
-void main (int, char **);
8
+int main (int, char **);
9
 
10
 
11
 #ifndef MAXPATHLEN

Return to bug 175015