1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Fix build using CLANG.

- Add MAKE_JOBS_UNSAFE.

PR:		ports/175015
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Marcelo Araujo 2013-02-04 08:52:19 +00:00
parent 82b809ad1a
commit b2b8aabaa8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311585
14 changed files with 191 additions and 9 deletions

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: snns
# Date created: 2 Febuary 1997
# Whom: reg@shale.csir.co.za
#
# Created by: reg@shale.csir.co.za
# $FreeBSD$
#
PORTNAME= snns
PORTVERSION= 4.3
@ -21,6 +17,9 @@ USE_XORG= x11 xext xt
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/snns --enable-global \
--build=${CONFIGURE_TARGET}
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
post-extract:
.for file in config.guess config.sub
@ -48,7 +47,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/Readme.license ${PREFIX}/lib/snns
${INSTALL_DATA} ${WRKSRC}/default.cfg ${PREFIX}/lib/snns
${INSTALL_DATA} ${WRKSRC}/help.hdoc ${PREFIX}/lib/snns
.if !defined(NOPORTEXAMPLES)
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

View File

@ -0,0 +1,10 @@
--- tools/sources/analyze.c.orig 2008-04-21 16:56:06.000000000 +0900
+++ tools/sources/analyze.c 2012-10-24 04:58:13.000000000 +0900
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
/*****************************************************************************/
/* constants */

View File

@ -0,0 +1,11 @@
--- tools/sources/convert2snns.c.orig 2008-04-21 16:56:07.000000000 +0900
+++ tools/sources/convert2snns.c 2012-10-24 04:45:56.000000000 +0900
@@ -390,7 +390,7 @@
UPDATE : june 15 1993
******************************************************************************/
-void main(int argc,char **argv)
+int main(int argc,char **argv)
{
FILE *fp;

View File

@ -0,0 +1,11 @@
--- tools/sources/feedback-gennet.c.orig 2008-04-21 16:56:07.000000000 +0900
+++ tools/sources/feedback-gennet.c 2012-10-24 04:47:13.000000000 +0900
@@ -48,7 +48,7 @@
return 0.0;
}
-void main ()
+int main(int argc, char **argv)
{
int i,j;
int nin,nhid,nout,nconnections;

View File

@ -0,0 +1,11 @@
--- tools/sources/ff_bignet.c.orig 2008-04-21 16:56:07.000000000 +0900
+++ tools/sources/ff_bignet.c 2012-10-24 04:46:15.000000000 +0900
@@ -1009,7 +1009,7 @@
UPDATE :
******************************************************************************/
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
char *file_name;
int err;

View File

@ -0,0 +1,11 @@
--- tools/sources/mkhead.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/mkhead.c 2012-10-24 04:36:51.000000000 +0900
@@ -25,7 +25,7 @@
#include <time.h>
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
time_t t;

View File

@ -0,0 +1,11 @@
--- tools/sources/mkout.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/mkout.c 2012-10-24 04:38:57.000000000 +0900
@@ -26,7 +26,7 @@
#define RAWNUM 8
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int i, units, active;

View File

@ -0,0 +1,11 @@
--- tools/sources/mkpat.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/mkpat.c 2012-10-24 04:40:37.000000000 +0900
@@ -25,7 +25,7 @@
#define RAWNUM 8
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int i;

View File

@ -0,0 +1,20 @@
--- tools/sources/pat_sel.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/pat_sel.c 2012-10-24 04:43:51.000000000 +0900
@@ -58,7 +58,7 @@
UPDATE :
******************************************************************************/
-void main (int argc, char *argv[])
+int main (int argc, char *argv[])
{
int pat_set, tot_pat_num;
@@ -88,7 +88,7 @@
if(krui_loadNewPatterns(argv[2],&pat_set) != 0 /*KRERR_NO_ERROR*/){
fprintf(stderr, "error: can't read file %s\n", argv[2]) ;
fclose (in_no_file) ;
- return ;
+ return 0;
}
tot_pat_num = krui_getNoOfPatterns();

View File

@ -0,0 +1,53 @@
--- tools/sources/pat_sel_simple.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/pat_sel_simple.c 2012-10-24 04:33:30.000000000 +0900
@@ -168,7 +168,7 @@
/* main program */
/******************************************************************************/
-void main (int argc, char *argv[])
+int main (int argc, char *argv[])
{
float *output_pattern ;
float *input_pattern ;
@@ -188,28 +188,28 @@
{
fprintf (stderr, "usage: %s <no_file> <in_pat_file> <out_pat_file>\n",
argv[0]);
- return ;
+ return 0;
}
if ((in_no_file = fopen(argv[1], "r")) == (FILE *) NULL)
{
fprintf(stderr, "error: can't read file %s\n", argv[1]) ;
- return ;
+ return 0;
}
if ((in_pat_file = fopen(argv[2], "r")) == (FILE *) NULL)
{
fprintf(stderr, "error: can't read file %s\n", argv[2]) ;
fclose (in_no_file) ;
- return ;
+ return 0;
}
if ((out_pat_file = fopen(argv[3], "r")) != (FILE *) NULL)
{
fclose(out_pat_file) ;
fprintf (stderr, "overwrite %s (y/n) ? ", argv[3]) ;
- if (getc(stdin) != 'y') return ;
+ if (getc(stdin) != 'y') return 0;
}
if ((out_pat_file = fopen(argv[3], "w")) == (FILE *) NULL)
@@ -217,7 +217,7 @@
fprintf(stderr, "error: can't create file %s\n", argv[3]) ;
fclose (in_no_file) ;
fclose (in_pat_file) ;
- return ;
+ return 0;
}

View File

@ -0,0 +1,11 @@
--- tools/sources/td_bignet.c.orig 2008-04-21 16:56:09.000000000 +0900
+++ tools/sources/td_bignet.c 2012-10-24 04:46:24.000000000 +0900
@@ -1052,7 +1052,7 @@
UPDATE :
******************************************************************************/
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
char *file_name;
int err;

View File

@ -1,11 +1,12 @@
--- xgui/sources/ui_main.c.orig Sat Dec 4 13:08:46 1999
+++ xgui/sources/ui_main.c Sat Dec 4 13:08:04 1999
--- xgui/sources/ui_main.c.orig 2008-04-21 16:56:25.000000000 +0900
+++ xgui/sources/ui_main.c 2012-10-24 04:51:45.000000000 +0900
@@ -329,8 +329,10 @@
UPDATE : 1.4.1990
******************************************************************************/
-void main (int argc, char **argv)
+#include <floatingpoint.h>
void main (int argc, char **argv)
+int main (int argc, char **argv)
{
+ fpsetmask(0);
ui_toplevel = XtAppInitialize(&ui_appContext, "Popup", NULL, ZERO,

View File

@ -0,0 +1,11 @@
--- xgui/sources/ui_main.h.orig 2008-04-21 16:56:25.000000000 +0900
+++ xgui/sources/ui_main.h 2012-10-24 04:50:27.000000000 +0900
@@ -23,7 +23,7 @@
#define _UI_MAIN_DEFINED_
-extern void main (int, char **);
+extern int main (int, char **);
#ifndef MAXPATHLEN
#define MAXPATHLEN 512

View File

@ -0,0 +1,11 @@
--- xgui/sources/ui_main.ph.orig 2008-04-21 16:56:25.000000000 +0900
+++ xgui/sources/ui_main.ph 2012-10-24 04:53:47.000000000 +0900
@@ -26,7 +26,7 @@
/* begin global definition section */
-void main (int, char **);
+int main (int, char **);
#ifndef MAXPATHLEN