Index: head/math/emc2/Makefile =================================================================== --- head/math/emc2/Makefile (revision 508278) +++ head/math/emc2/Makefile (revision 508279) @@ -1,49 +1,49 @@ # Created by: thierry@pompo.net # $FreeBSD$ PORTNAME= emc2 DISTVERSIONPREFIX=v DISTVERSION= 2.17 CATEGORIES= math science MASTER_SITES= https://www.ljll.math.upmc.fr/~hecht/ftp/emc2/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Graphical editor of two-dimensional mesh geometries LICENSE= INRIA LICENSE_NAME= INRIA license, perhaps specific to emc2 LICENSE_FILE= ${WRKSRC}/COPYRIGHT LICENSE_PERMS= auto-accept no-dist-sell no-pkg-sell -RESTRICTED= No resale, contact author for commercial usage - USES= gmake USE_XORG= x11 xau xcb xdmcp + ALL_TARGET= ${PORTNAME} +RESTRICTED= No resale, contact author for commercial usage .if defined(LANG) && ${LANG:Mfr*} != "" CFLAGS+= -DFRENCH .endif PORTDOCS= ${DISTFILES:M*.pdf} PORTEXAMPLES= * PLIST_FILES= bin/emc2 bin/prf_f3d OPTIONS_DEFINE= DOCS EXAMPLES DOCS_DISTFILES= RTemc2_fr.pdf RTemc2_gb.pdf do-install: ${INSTALL_PROGRAM} ${WRKSRC}/emc2 ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/prf_f3d ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @(cd ${DISTDIR} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) .include Index: head/math/emc2/files/patch-Makefile =================================================================== --- head/math/emc2/files/patch-Makefile (revision 508278) +++ head/math/emc2/files/patch-Makefile (revision 508279) @@ -1,15 +1,15 @@ ---- Makefile.orig Mon Feb 10 09:17:51 2003 -+++ Makefile Tue Dec 16 23:22:42 2003 +--- Makefile.orig 2003-02-10 08:17:51 UTC ++++ Makefile @@ -8,9 +8,9 @@ # for IBM RS6000 #CC=xlc #CFLAGS=-O -BIN=/usr/local/bin -X11INCLUDEDIR=/usr/include/X11R6 -X11LIBDIR=/usr/lib/X11R6 +BIN=$(PREFIX)/bin +X11INCLUDEDIR=$(LOCALBASE)/include +X11LIBDIR=$(LOCALBASE)/lib X11LIB= -L$(X11LIBDIR) -lX11 MATHLIB= -lm Index: head/math/emc2/files/patch-f3d__u_hp700__prettydate.c =================================================================== --- head/math/emc2/files/patch-f3d__u_hp700__prettydate.c (revision 508278) +++ head/math/emc2/files/patch-f3d__u_hp700__prettydate.c (revision 508279) @@ -1,19 +1,19 @@ ---- ./f3d/u_hp700/prettydate.c.orig 2010-08-31 08:51:18.000000000 -0400 -+++ ./f3d/u_hp700/prettydate.c 2010-08-31 08:52:44.000000000 -0400 -@@ -6,7 +6,7 @@ +--- f3d/u_hp700/prettydate.c.orig 1999-11-09 14:58:17 UTC ++++ f3d/u_hp700/prettydate.c +@@ -6,7 +6,7 @@ char *date; { time_t timevar; struct tm *pttm; - char buffer[6]; + char buffer[7]; timevar=time(&timevar); pttm = localtime(&timevar); -@@ -14,6 +14,6 @@ +@@ -14,6 +14,6 @@ char *date; sprintf(buffer,"%02d%02d%02d",pttm->tm_year % 100, pttm->tm_mon+1, pttm->tm_mday); - bcopy (buffer, date, 6); + bcopy (buffer, date, 7); } Index: head/math/emc2/files/patch-f3d__u_hp700__prettytime.c =================================================================== --- head/math/emc2/files/patch-f3d__u_hp700__prettytime.c (revision 508278) +++ head/math/emc2/files/patch-f3d__u_hp700__prettytime.c (revision 508279) @@ -1,19 +1,19 @@ ---- ./f3d/u_hp700/prettytime.c.orig 2010-08-31 08:51:31.000000000 -0400 -+++ ./f3d/u_hp700/prettytime.c 2010-08-31 08:52:32.000000000 -0400 -@@ -6,7 +6,7 @@ +--- f3d/u_hp700/prettytime.c.orig 1999-11-09 14:58:18 UTC ++++ f3d/u_hp700/prettytime.c +@@ -6,7 +6,7 @@ char *timeret; { time_t timevar; struct tm *pttm; - char buffer[12]; + char buffer[13]; timevar=time(&timevar); pttm = localtime(&timevar); -@@ -14,6 +14,6 @@ +@@ -14,6 +14,6 @@ char *timeret; sprintf(buffer,"%02d%02d%02d000000",pttm->tm_hour, pttm->tm_min, pttm->tm_sec); - bcopy (buffer, timeret, 12); + bcopy (buffer, timeret, 13); } Index: head/math/emc2/files/patch-libI77__fio.h =================================================================== --- head/math/emc2/files/patch-libI77__fio.h (revision 508278) +++ head/math/emc2/files/patch-libI77__fio.h (revision 508279) @@ -1,15 +1,15 @@ ---- libI77/fio.h.orig Tue Nov 9 15:58:43 1999 -+++ libI77/fio.h Tue Dec 16 23:53:43 2003 +--- libI77/fio.h.orig 1999-11-09 14:58:43 UTC ++++ libI77/fio.h @@ -17,6 +17,12 @@ #endif #endif +#ifdef __FreeBSD__ +#ifndef NON_UNIX_STDIO +#define NON_UNIX_STDIO +#endif +#endif + #ifdef UIOLEN_int typedef int uiolen; #else Index: head/math/emc2/files/patch-libI77__lread.c =================================================================== --- head/math/emc2/files/patch-libI77__lread.c (revision 508278) +++ head/math/emc2/files/patch-libI77__lread.c (revision 508279) @@ -1,29 +1,29 @@ ---- ./libI77/lread.c.orig 2010-08-31 08:39:32.000000000 -0400 -+++ ./libI77/lread.c 2010-08-31 08:40:19.000000000 -0400 -@@ -369,7 +369,7 @@ +--- libI77/lread.c.orig 1999-11-09 14:58:44 UTC ++++ libI77/lread.c +@@ -369,7 +369,7 @@ l_CHAR(Void) *p++ = ch; f__lcount = 10*f__lcount + ch - '0'; if (++i == size) { - f__lchar = (char *)realloc(f__lchar, + f__lchar = (char *)reallocf(f__lchar, (unsigned int)(size += BUFSIZE)); p = f__lchar + i; } -@@ -401,7 +401,7 @@ +@@ -401,7 +401,7 @@ l_CHAR(Void) noquote: *p++ = ch; if (++i == size) { - f__lchar = (char *)realloc(f__lchar, + f__lchar = (char *)reallocf(f__lchar, (unsigned int)(size += BUFSIZE)); p = f__lchar + i; } -@@ -414,7 +414,7 @@ +@@ -414,7 +414,7 @@ l_CHAR(Void) if(i==size) { newone: - f__lchar= (char *)realloc(f__lchar, + f__lchar= (char *)reallocf(f__lchar, (unsigned int)(size += BUFSIZE)); p=f__lchar+i-1; *p++ = ch; Index: head/math/emc2/files/patch-libemc2_1.c =================================================================== --- head/math/emc2/files/patch-libemc2_1.c (revision 508278) +++ head/math/emc2/files/patch-libemc2_1.c (revision 508279) @@ -1,11 +1,11 @@ ---- ./libemc2_1.c.orig 2010-08-31 08:37:40.000000000 -0400 -+++ ./libemc2_1.c 2010-08-31 08:38:38.000000000 -0400 -@@ -1517,7 +1517,7 @@ +--- libemc2_1.c.orig 1999-11-09 14:58:23 UTC ++++ libemc2_1.c +@@ -1517,7 +1517,7 @@ R*/ i__1[2] = 7, a__1[2] = "' retry"; s_cat(ch__1, a__1, i__1, &c__3, 99L); scrtch_(ch__1, ii + 19); -/* call scrtch('mauvais type : '''/*type(1:ii)//''' recommencez'*/ +/* call scrtch('mauvais type : '''/*type(1:ii)//''' recommencez' ) #FR*/ goto L5; }