diff -urN /usr/ports/cad/jspice3/Makefile cad/jspice3/Makefile --- /usr/ports/cad/jspice3/Makefile 2015-12-13 15:36:36.593233000 +0900 +++ cad/jspice3/Makefile 2016-01-05 00:00:00.000000000 +0900 @@ -2,61 +2,71 @@ # $FreeBSD: head/cad/jspice3/Makefile 403633 2015-12-12 21:36:03Z bapt $ PORTNAME= jspice3 -PORTVERSION= 2.5.011109 -PORTREVISION= 1 +PORTVERSION= 2.5.110615 CATEGORIES= cad MASTER_SITES= http://www.wrcad.com/ftp/pub/ -DISTNAME= ${PORTNAME}-2.5-011109 +DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E} MAINTAINER= ports@FreeBSD.org COMMENT= Adaptation of the Berkeley Spice3f4 with superconductivity -BROKEN= unfetchable +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} + CONFLICTS= spice-[0-9]* -OPTIONS_DEFINE= X11 EXAMPLES +OPTIONS_DEFINE= EXAMPLES X11 OPTIONS_DEFAULT= X11 -WRKSRC= ${WRKDIR}/${PORTNAME}-2.5 +OPTIONS_SUB= yes -X11_USE= XORG=x11,xaw,xt +X11_USE= XORG=x11,xaw,xt -pre-configure: - @${REINPLACE_CMD} -e 's+/usr/local+${PREFIX}+g;s+-O -g+${CFLAGS}+g;' \ +post-patch: + @${REINPLACE_CMD} -e \ + '/^prefix/s|=.*|= ${PREFIX}| ; \ + /^SPICE_HOST/s|=.*|= localhost| ; \ + /^CC_OPT/s|=.*|= ${CFLAGS}|' \ ${WRKSRC}/conf/unixconf/mkheader.0 -pre-configure-X11-on: - @${REINPLACE_CMD} -e 's+#%%WITH_X%%++g' \ +post-patch-X11-off: + @${REINPLACE_CMD} -e \ + '/$$makeprog depend/s|^|#|' \ + ${WRKSRC}/build + @${REINPLACE_CMD} -e \ + 's|^LIBX|#LIBX| ; \ + s|-DWANT_X11||' \ ${WRKSRC}/conf/unixconf/mkheader.0 -pre-configure-X11-off: - @${ECHO} "#undef HAVE_X11" >> ${WRKSRC}/src/include/spice.h - do-build: - (cd ${WRKSRC};${SETENV} ${MAKE_ENV} ${SH} build) + (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build) do-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir \ - ${STAGEDIR}${PREFIX}/lib/jspice3/sced \ - ${STAGEDIR}${PREFIX}/lib/jspice3/scripts - (cd ${WRKSRC}/src/bin && ${INSTALL_PROGRAM} jspice3 nutmeg help \ - multidec proc2mod spiced xeditor ${STAGEDIR}${PREFIX}/bin) - ${INSTALL_DATA} ${WRKSRC}/lib/mfbcap ${WRKSRC}/lib/news \ - ${STAGEDIR}${PREFIX}/lib/jspice3 - ${INSTALL_DATA} ${WRKSRC}/lib/helpdir/* \ - ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir - ${INSTALL_DATA} ${WRKSRC}//lib/sced/* \ - ${STAGEDIR}${PREFIX}/lib/jspice3/sced - ${INSTALL_DATA} ${WRKSRC}/lib/scripts/* \ - ${STAGEDIR}${PREFIX}/lib/jspice3/scripts +.for i in help jspice3 multidec nutmeg proc2mod spiced xeditor + (cd ${WRKSRC}/src/bin && ${INSTALL_PROGRAM} ${i} \ + ${STAGEDIR}${PREFIX}/bin) +.endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3 + (cd ${WRKSRC}/lib && ${INSTALL_DATA} mfbcap news \ + ${STAGEDIR}${PREFIX}/lib/jspice3) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir + (cd ${WRKSRC}/lib/helpdir && ${INSTALL_DATA} * \ + ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/sced + (cd ${WRKSRC}/lib/sced && ${INSTALL_DATA} * \ + ${STAGEDIR}${PREFIX}/lib/jspice3/sced) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/scripts + (cd ${WRKSRC}/lib/scripts && ${INSTALL_DATA} * \ + ${STAGEDIR}${PREFIX}/lib/jspice3/scripts) + do-install-EXAMPLES-on: - ${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/jspice3/cryocmos \ - ${STAGEDIR}${PREFIX}/share/examples/jspice3/josephson - ${INSTALL_DATA} ${WRKSRC}/examples/*.* \ - ${STAGEDIR}${PREFIX}/share/examples/jspice3 - ${INSTALL_DATA} ${WRKSRC}/examples/cryocmos/* \ - ${STAGEDIR}${PREFIX}/share/examples/jspice3/cryocmos - ${INSTALL_DATA} ${WRKSRC}/examples/josephson/* \ - ${STAGEDIR}${PREFIX}/share/examples/jspice3/josephson + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.* \ + ${STAGEDIR}${EXAMPLESDIR}) + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cryocmos + (cd ${WRKSRC}/examples/cryocmos && ${INSTALL_DATA} * \ + ${STAGEDIR}${EXAMPLESDIR}/cryocmos) + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/josephson + (cd ${WRKSRC}/examples/josephson && ${INSTALL_DATA} * \ + ${STAGEDIR}${EXAMPLESDIR}/josephson) .include diff -urN /usr/ports/cad/jspice3/distinfo cad/jspice3/distinfo --- /usr/ports/cad/jspice3/distinfo 2015-08-24 04:03:02.531145000 +0900 +++ cad/jspice3/distinfo 2016-01-05 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (jspice3-2.5-011109.tar.gz) = 4fa5492584fb201b0f396ce805424b3128db4a70450506158854788aea68d7bf -SIZE (jspice3-2.5-011109.tar.gz) = 1149738 +SHA256 (jspice3-2.5-110615.tar.gz) = f40e23b2d5c554a5b7be7037fe41c6f179c33e07ab9da365d97c2b517dcd6af6 +SIZE (jspice3-2.5-110615.tar.gz) = 1145726 diff -urN /usr/ports/cad/jspice3/files/patch-build cad/jspice3/files/patch-build --- /usr/ports/cad/jspice3/files/patch-build 2015-08-24 04:03:02.645547000 +0900 +++ cad/jspice3/files/patch-build 2016-01-05 00:00:00.000000000 +0900 @@ -1,6 +1,6 @@ ---- build.orig Tue May 1 13:37:12 2001 -+++ build Sat Nov 25 00:38:47 2006 -@@ -22,7 +22,7 @@ +--- build.orig 2015-11-05 18:10:02 UTC ++++ build +@@ -22,7 +22,7 @@ if [ -d conf/unixconf ]; then echo '#######################################################################'> conf/mkheader.in echo '####### Makefile generated by build script ############################'>> conf/mkheader.in echo VERSION = $version>> conf/mkheader.in @@ -9,16 +9,16 @@ echo '#######################################################################'>> conf/mkheader.in cat conf/unixconf/mkheader.0 >> conf/mkheader.in else -@@ -43,7 +43,7 @@ +@@ -51,7 +51,7 @@ if [ -f conf/util/configure ]; then + if [ `uname -s` = Darwin -a -d /opt/X11 ]; then + util/configure --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib -srcdir . + else +- util/configure -srcdir . ++ util/configure --prefix=${PREFIX} --x-includes=${LOCALBASE}/include --x-libraries=${LOCALBASE}/lib -srcdir . + fi - if [ -f conf/util/configure ]; then - cd conf -- util/configure -srcdir . -+ util/configure -srcdir . --prefix=${PREFIX} -x-includes="${LOCALBASE}/include" -x-libraries="${LOCALBASE}/lib" if [ ! -f ../src/include/config.h ] || \ - [ "`diff config.h ../src/include/config.h |head`" ]; then - echo Installing config.h -@@ -92,8 +92,14 @@ +@@ -102,8 +102,14 @@ if [ -f conf/mkheader ]; then fi echo Creating makefiles in the subdirectories... $makeprog make diff -urN /usr/ports/cad/jspice3/files/patch-conf+unixconf+mkheader.0 cad/jspice3/files/patch-conf+unixconf+mkheader.0 --- /usr/ports/cad/jspice3/files/patch-conf+unixconf+mkheader.0 2015-08-24 04:03:02.735733000 +0900 +++ cad/jspice3/files/patch-conf+unixconf+mkheader.0 1970-01-01 09:00:00.000000000 +0900 @@ -1,19 +0,0 @@ ---- conf/unixconf/mkheader.0.orig Tue Jan 15 19:15:36 2002 -+++ conf/unixconf/mkheader.0 Fri Jul 21 06:11:55 2006 -@@ -18,7 +18,7 @@ - BUG_ADDR = stevew@srware.com - - # name of host for remote spice runs --SPICE_HOST = -+SPICE_HOST = localhost - - # spice daemon log file - SPICED_LOG = /tmp/spiced.log -@@ -43,6 +43,6 @@ - LDFLAGS = @LIBS@ - RANLIB = @RANLIB@ - INCX = @X_CFLAGS@ --LIBX = @X_PRE_LIBS@ @X_LIBS@ -lXaw -lXt -lXext -lXmu -lX11 @X_EXTRA_LIBS@ -+#%%WITH_X%%LIBX = @X_PRE_LIBS@ @X_LIBS@ -lXaw -lXt -lXext -lXmu -lX11 @X_EXTRA_LIBS@ - INTERFACE_OPTS = -DWANT_MFB -DWANT_X11 - MFB = mfb diff -urN /usr/ports/cad/jspice3/files/patch-conf_util_configure cad/jspice3/files/patch-conf_util_configure --- /usr/ports/cad/jspice3/files/patch-conf_util_configure 2015-08-24 04:03:02.719742000 +0900 +++ cad/jspice3/files/patch-conf_util_configure 2016-01-05 00:00:00.000000000 +0900 @@ -1,4 +1,4 @@ ---- conf/util/configure.orig 2002-01-15 19:21:25.000000000 +0000 +--- conf/util/configure.orig 2002-01-15 19:21:25 UTC +++ conf/util/configure @@ -805,11 +805,7 @@ else fi diff -urN /usr/ports/cad/jspice3/files/patch-src+bin+help.c cad/jspice3/files/patch-src+bin+help.c --- /usr/ports/cad/jspice3/files/patch-src+bin+help.c 2015-08-24 04:03:02.659668000 +0900 +++ cad/jspice3/files/patch-src+bin+help.c 2016-01-05 00:00:00.000000000 +0900 @@ -1,6 +1,6 @@ ---- src/bin/help.c.orig Fri Jul 21 06:16:08 2006 -+++ src/bin/help.c Fri Jul 21 06:18:15 2006 -@@ -14,6 +14,7 @@ +--- src/bin/help.c.orig 2015-11-05 17:57:50 UTC ++++ src/bin/help.c +@@ -14,6 +14,7 @@ Authors: 1986 Wayne A. Christopher #include #endif @@ -8,7 +8,7 @@ #ifdef HAVE_X11 #include -@@ -22,7 +23,6 @@ +@@ -22,7 +23,6 @@ Authors: 1986 Wayne A. Christopher Display *Xdisplay; static XtAppContext app_con; static Widget toplevel; @@ -16,7 +16,7 @@ static String fallback_resources[] = { -@@ -188,7 +188,7 @@ +@@ -188,7 +188,7 @@ int t; { if (!strcmp(n, kw_hcopydev)) { strcpy(r, hcopydev); diff -urN /usr/ports/cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c --- /usr/ports/cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c 2015-08-24 04:03:02.589130000 +0900 +++ cad/jspice3/files/patch-src+lib+dev+ltra+ltramisc.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,31 +0,0 @@ ---- src/lib/dev/ltra/ltramisc.c.orig Wed Jan 5 03:25:41 2005 -+++ src/lib/dev/ltra/ltramisc.c Thu Jul 20 23:59:44 2006 -@@ -965,10 +965,12 @@ - double ax = fabs(x); - if (ax < 3.75) { - double y = x/3.75; -+ double ans1; -+ double ans2; - y *= y; -- double ans1 = 1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492 -+ ans1 = 1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492 - +y*(0.2659732+y*(0.360768e-1+y*0.45813e-2))))); -- double ans2 = ax*(0.5+y*(0.87890594+y*(0.51498869+y*(0.15084934 -+ ans2 = ax*(0.5+y*(0.87890594+y*(0.51498869+y*(0.15084934 - +y*(0.2658733e-1+y*(0.301532e-2+y*0.32411e-3)))))); - if (x > 0) - ans1 += ans2; -@@ -978,11 +980,12 @@ - } - else { - double y = 3.75/ax; -+ double ans2; - double ans1 = (0.39894228+y*(0.1328592e-1 - +y*(0.225319e-2+y*(-0.157565e-2+y*(0.916281e-2 - +y*(-0.2057706e-1+y*(0.2635537e-1+y*(-0.1647633e-1 - +y*0.392377e-2)))))))); -- double ans2 = 0.2282967e-1+y*(-0.2895312e-1+y*(0.1787654e-1 -+ ans2 = 0.2282967e-1+y*(-0.2895312e-1+y*(0.1787654e-1 - -y*0.420059e-2)); - ans2 = 0.39894228+y*(-0.3988024e-1+y*(-0.362018e-2 - +y*(0.163801e-2+y*(-0.1031555e-1+y*ans2)))); diff -urN /usr/ports/cad/jspice3/files/patch-src+lib+fte+misccoms.c cad/jspice3/files/patch-src+lib+fte+misccoms.c --- /usr/ports/cad/jspice3/files/patch-src+lib+fte+misccoms.c 2015-08-24 04:03:02.605823000 +0900 +++ cad/jspice3/files/patch-src+lib+fte+misccoms.c 2016-01-05 00:00:00.000000000 +0900 @@ -1,6 +1,6 @@ ---- src/lib/fte/misccoms.c.orig Tue Feb 28 16:57:47 2006 -+++ src/lib/fte/misccoms.c Tue Feb 28 16:59:28 2006 -@@ -284,7 +284,7 @@ +--- src/lib/fte/misccoms.c.orig 2001-05-01 20:58:18 UTC ++++ src/lib/fte/misccoms.c +@@ -284,7 +284,7 @@ wordlist *wl; pl->pl_title, pl->pl_name); } diff -urN /usr/ports/cad/jspice3/files/patch-src+lib+plot+x11.c cad/jspice3/files/patch-src+lib+plot+x11.c --- /usr/ports/cad/jspice3/files/patch-src+lib+plot+x11.c 2015-08-24 04:03:02.805783000 +0900 +++ cad/jspice3/files/patch-src+lib+plot+x11.c 2016-01-05 00:00:00.000000000 +0900 @@ -1,6 +1,6 @@ ---- src/lib/plot/x11.c.orig Thu Sep 2 21:43:35 2004 -+++ src/lib/plot/x11.c Fri Jul 21 06:06:00 2006 -@@ -2205,7 +2205,7 @@ +--- src/lib/plot/x11.c.orig 2004-09-02 21:43:35 UTC ++++ src/lib/plot/x11.c +@@ -2205,7 +2205,7 @@ ScedESC() void com_setrdb(wl) @@ -9,7 +9,7 @@ { /* be silent */ } -@@ -2213,7 +2213,7 @@ +@@ -2213,7 +2213,7 @@ wordlist *wl; int PopUpErrMessage(fp) diff -urN /usr/ports/cad/jspice3/files/patch-src_bin_help.c cad/jspice3/files/patch-src_bin_help.c --- /usr/ports/cad/jspice3/files/patch-src_bin_help.c 2015-08-24 04:03:02.696147000 +0900 +++ cad/jspice3/files/patch-src_bin_help.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,11 +0,0 @@ ---- src/bin/help.c.intermediate 2014-08-18 06:30:22.000000000 +0000 -+++ src/bin/help.c -@@ -53,7 +53,7 @@ XErrorEvent *errorev; - - XGetErrorText(display, errorev->error_code, ErrorMessage, 1024); - printf(ErrorMessage); -- return; -+ return (NULL); - } - - diff -urN /usr/ports/cad/jspice3/files/patch-src_bin_spiced.c cad/jspice3/files/patch-src_bin_spiced.c --- /usr/ports/cad/jspice3/files/patch-src_bin_spiced.c 2015-08-24 04:03:02.757367000 +0900 +++ cad/jspice3/files/patch-src_bin_spiced.c 2016-01-05 00:00:00.000000000 +0900 @@ -1,4 +1,4 @@ ---- src/bin/spiced.c.orig 2001-05-01 21:56:08.000000000 +0000 +--- src/bin/spiced.c.orig 2015-11-05 17:58:45 UTC +++ src/bin/spiced.c @@ -16,12 +16,11 @@ Author: 1985 Wayne A. Christopher, U. C. @@ -16,12 +16,3 @@ #include #ifdef HAVE_SOCKET -@@ -293,7 +292,7 @@ sigchild() - (void) fclose(fp); - } else - nrunning--; -- return; -+ return 0; - } - - #else /* not HAVE_SOCKET */ diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_ckt_cktdelt.c cad/jspice3/files/patch-src_lib_ckt_cktdelt.c --- /usr/ports/cad/jspice3/files/patch-src_lib_ckt_cktdelt.c 2015-08-24 04:03:02.710189000 +0900 +++ cad/jspice3/files/patch-src_lib_ckt_cktdelt.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,11 +0,0 @@ ---- src/lib/ckt/cktdelt.c.orig 1997-03-21 22:04:30.000000000 +0000 -+++ src/lib/ckt/cktdelt.c -@@ -20,7 +20,7 @@ GENERIC *task; - { - JOB *job, *next; - -- if (task == NULL) return; -+ if (task == NULL) return (OK); - - for (job = ((TSKtask*)task)->jobs; job; job = next) { - next = job->JOBnextJob; diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_fte_options.c cad/jspice3/files/patch-src_lib_fte_options.c --- /usr/ports/cad/jspice3/files/patch-src_lib_fte_options.c 2015-08-24 04:03:02.687769000 +0900 +++ cad/jspice3/files/patch-src_lib_fte_options.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,45 +0,0 @@ ---- src/lib/fte/options.c.orig 2009-01-11 20:27:11.000000000 +0000 -+++ src/lib/fte/options.c -@@ -66,7 +66,7 @@ def_fn(_iv_cpdebug) - - def_fn(_iv_history) - { -- if (!flag) return; -+ if (!flag) return (US_OK); - if (v->va_type == VT_NUM) - cp_maxhistlength = v->va_num; - else if (v->va_type == VT_REAL) -@@ -930,27 +930,27 @@ struct variable **v1, **v2; - v = va_copy(plot_cur->pl_env); - else - v = NULL; -- if (tv = cp_enqvar(kw_plots)) { -+ if ((tv = cp_enqvar(kw_plots))) { - tv->va_next = v; - v = tv; - } -- if (tv = cp_enqvar(kw_curplot)) { -+ if ((tv = cp_enqvar(kw_curplot))) { - tv->va_next = v; - v = tv; - } -- if (tv = cp_enqvar(kw_curplottitle)) { -+ if ((tv = cp_enqvar(kw_curplottitle))) { - tv->va_next = v; - v = tv; - } -- if (tv = cp_enqvar(kw_curplotname)) { -+ if ((tv = cp_enqvar(kw_curplotname))) { - tv->va_next = v; - v = tv; - } -- if (tv = cp_enqvar(kw_curplotdate)) { -+ if ((tv = cp_enqvar(kw_curplotdate))) { - tv->va_next = v; - v = tv; - } -- if (tv = cp_enqvar(kw_display)) { -+ if ((tv = cp_enqvar(kw_display))) { - tv->va_next = v; - v = tv; - } diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_fte_resource.c cad/jspice3/files/patch-src_lib_fte_resource.c --- /usr/ports/cad/jspice3/files/patch-src_lib_fte_resource.c 2015-08-24 04:03:02.678110000 +0900 +++ cad/jspice3/files/patch-src_lib_fte_resource.c 2016-01-05 00:00:00.000000000 +0900 @@ -1,6 +1,6 @@ ---- src/lib/fte/resource.c.orig Tue Nov 14 18:23:27 2006 -+++ src/lib/fte/resource.c Tue Nov 14 18:23:33 2006 -@@ -36,7 +36,7 @@ +--- src/lib/fte/resource.c.orig 1997-03-21 22:03:41 UTC ++++ src/lib/fte/resource.c +@@ -36,7 +36,7 @@ static struct timeb lasttime; #endif #endif #endif diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_inp_ifeval.c cad/jspice3/files/patch-src_lib_inp_ifeval.c --- /usr/ports/cad/jspice3/files/patch-src_lib_inp_ifeval.c 2015-08-24 04:03:02.814919000 +0900 +++ cad/jspice3/files/patch-src_lib_inp_ifeval.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,11 +0,0 @@ ---- src/lib/inp/ifeval.c.orig 1997-03-21 22:04:12.000000000 +0000 -+++ src/lib/inp/ifeval.c -@@ -37,7 +37,7 @@ double step, finaltime; - int i; - - if (!tree) -- return; -+ return (OK); - for (i = 0; i < tree->numVars; i++) - init_node(pt->derivs[i],step,finaltime); - init_node(pt->tree,step,finaltime); diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_mfb_mfbgnc.c cad/jspice3/files/patch-src_lib_mfb_mfbgnc.c --- /usr/ports/cad/jspice3/files/patch-src_lib_mfb_mfbgnc.c 2015-08-24 04:03:02.624427000 +0900 +++ cad/jspice3/files/patch-src_lib_mfb_mfbgnc.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,29 +0,0 @@ ---- src/lib/mfb/mfbgnc.c.orig 2001-05-01 19:45:26.000000000 +0000 -+++ src/lib/mfb/mfbgnc.c -@@ -120,7 +120,7 @@ char *PM; - cp = PM; - dp = result; - if (cp == NULL) { -- return; -+ return (NULL); - } - while (c = *cp++) { - if(c == '$') { -@@ -300,7 +300,7 @@ char *PM; - y1 = reg; - } - else -- return; -+ return (NULL); - hiy = (y1 >> 7) & 037; - extra = x1 & 03 | ((y1 & 03) << 2); - loy = (y1 >> 2) & 037; -@@ -427,7 +427,7 @@ char *PM; - continue; - - default: -- return; -+ return (NULL); - } - } - *dp='\0'; diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_plot_postsc.c cad/jspice3/files/patch-src_lib_plot_postsc.c --- /usr/ports/cad/jspice3/files/patch-src_lib_plot_postsc.c 2015-08-24 04:03:02.746760000 +0900 +++ cad/jspice3/files/patch-src_lib_plot_postsc.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,26 +0,0 @@ ---- src/lib/plot/postsc.c.orig 1997-03-21 22:03:37.000000000 +0000 -+++ src/lib/plot/postsc.c -@@ -343,12 +343,12 @@ int linestyleid; - get it when PS_Text restores a -1 linestyle */ - if (linestyleid == -1) { - currentgraph->linestyle = -1; -- return; -+ return (0); - } - - if (linestyleid < 0) { - internalerror("bad linestyleid"); -- return; -+ return (0); - } - - if (linestyleid > dispdev->numlinestyles) -@@ -407,7 +407,7 @@ int x, y, Xform; - - if (Xform == (char)0) { - PS_Text(text,x,y); -- return; -+ return (0); - } - - s = tbuf; diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_sced_labeltxt.c cad/jspice3/files/patch-src_lib_sced_labeltxt.c --- /usr/ports/cad/jspice3/files/patch-src_lib_sced_labeltxt.c 2015-08-24 04:03:02.573842000 +0900 +++ cad/jspice3/files/patch-src_lib_sced_labeltxt.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,20 +0,0 @@ ---- src/lib/sced/labeltxt.c.orig 1997-03-21 22:04:16.000000000 +0000 -+++ src/lib/sced/labeltxt.c -@@ -175,7 +175,7 @@ int x, y, degrees, scale; - if (!strcmp(dispdev->name,"wp")) { - /* use plain text for now */ - DevText(text,x,y); -- return; -+ return (0); - } - - /* Hack! If degrees is >= 90, an angle is assumed. -@@ -185,7 +185,7 @@ int x, y, degrees, scale; - - if (!strcmp(dispdev->name,"postscript")) { - PS_ScaledText(text,x,y,degrees); -- return; -+ return (0); - } - - if (degrees & 1) { diff -urN /usr/ports/cad/jspice3/files/patch-src_lib_sced_scedintr.c cad/jspice3/files/patch-src_lib_sced_scedintr.c --- /usr/ports/cad/jspice3/files/patch-src_lib_sced_scedintr.c 2015-08-24 04:03:02.782372000 +0900 +++ cad/jspice3/files/patch-src_lib_sced_scedintr.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,11 +0,0 @@ ---- src/lib/sced/scedintr.c.orig 2001-05-01 20:54:05.000000000 +0000 -+++ src/lib/sced/scedintr.c -@@ -1009,7 +1009,7 @@ char *string; - strcat(TypeOut,string); - else - strcat(TypeOut,"\n"); -- if (strchr(TypeOut,'\n') == NULL) return; -+ if (strchr(TypeOut,'\n') == NULL) return (False); - if (MoreLine(TypeOut)) - EnableMore(False); - *TypeOut = '\0'; diff -urN /usr/ports/cad/jspice3/pkg-plist cad/jspice3/pkg-plist --- /usr/ports/cad/jspice3/pkg-plist 2015-08-24 04:03:02.821146000 +0900 +++ cad/jspice3/pkg-plist 2016-01-05 00:00:00.000000000 +0900 @@ -1,5 +1,5 @@ bin/jspice3 -bin/help +%%X11%%bin/help bin/nutmeg bin/proc2mod bin/multidec