svn commit: r488785 - in head/cad/z88: . files

Kurt Jaeger pi at FreeBSD.org
Mon Dec 31 13:33:59 UTC 2018


Author: pi
Date: Mon Dec 31 13:33:55 2018
New Revision: 488785
URL: https://svnweb.freebsd.org/changeset/ports/488785

Log:
  cad/z88: update 13.0 -> 15
  
  - Changes PORTVERSION to DISTVERSION
  - Sets submitter as MAINTAINER.
  - Uses USE_GITHUB instead of MASTER_SITES
  - Sets LICENSE
  - Sets appropriate dependencies, USES, USE_X
  - Adds an EXAMPLES option
  - Adds a pkg-message to explain how the port must be used, as it
    is not self-evident (The software assumes all files in the same
    directory instead of distributed into bin/, ${DATADIR} etc so I had
    to find a work around: the solution is easy for the user).
  
  PR:		233772
  Submitted by:	Lorenzo Salvadore <phascolarctos at protonmail.ch>
  Reviewed by:	chitty_cloud at me.com
  Relnotes:	https://forum.z88.de/viewtopic.php?f=18&t=885

Added:
  head/cad/z88/files/patch-bin_unix64_z88.fcd   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88com.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88g.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88n.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88o.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88r.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-make_make__unix__64_z88x.mk.gcc64   (contents, props changed)
  head/cad/z88/files/patch-src_z88o_unix_cb88o.c   (contents, props changed)
  head/cad/z88/files/z88   (contents, props changed)
  head/cad/z88/pkg-message   (contents, props changed)
Deleted:
  head/cad/z88/files/patch-cb88o.c
  head/cad/z88/files/patch-ccos
  head/cad/z88/files/patch-dyn88v.c
  head/cad/z88/files/patch-z88.fcd
  head/cad/z88/files/patch-z88.mk.gtk.gcc32
  head/cad/z88/files/patch-z88.mk.kernel.gcc32
  head/cad/z88/files/patch-z88.mk.other.gcc32
  head/cad/z88/files/z88.sh
Modified:
  head/cad/z88/Makefile
  head/cad/z88/distinfo
  head/cad/z88/pkg-plist

Modified: head/cad/z88/Makefile
==============================================================================
--- head/cad/z88/Makefile	Mon Dec 31 13:26:02 2018	(r488784)
+++ head/cad/z88/Makefile	Mon Dec 31 13:33:55 2018	(r488785)
@@ -2,75 +2,62 @@
 # $FreeBSD$
 
 PORTNAME=	z88
-PORTVERSION=	13.0
-PORTREVISION=	5
+DISTVERSIONPREFIX=	v
+DISTVERSION=	15
 CATEGORIES=	cad
-MASTER_SITES=	http://www.z88.uni-bayreuth.de/download/
-DISTFILES=	${PORTNAME}130${EXTRACT_SUFX} ${PORTNAME}mane.pdf
-DIST_SUBDIR=	z88
-EXTRACT_ONLY=	${PORTNAME}130${EXTRACT_SUFX}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	phascolarctos at protonmail.ch
 COMMENT=	Compact Finite Element Analysis System
 
-LIB_DEPENDS=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-NO_WRKSUBDIR=	yes
-USES=		pkgconfig
-USE_GL=		glu
-USE_GNOME=	gtk20
+LIB_DEPENDS=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2
 
-#These defaults can be changed in z88.fcd too
-BROWSER?=	firefox3
-XEDITOR?=	gedit
+USES=		gl gnome pkgconfig
+USE_GITHUB=	yes
+USE_GL=		gl glu
+USE_GNOME=	cairo gdkpixbuf2 gtk20
+USE_XORG=	x11
 
-Z88_BINS=	z88f z88i1 z88i2 z88com z88d z88e z88g z88h z88n z88o	\
-		z88x z88v
-Z88_DATA=	z88.fcd z88.dyn *.dxf *.txt
+GH_ACCOUNT=	LSCAD
+GH_PROJECT=	Z88OS
 
-PORTDATA=	*
-PORTDOCS=	*
+BUILD_WRKSRC=	${WRKSRC}/make/make_unix_64
+INSTALL_WRKSRC=	${WRKSRC}/bin/unix64
 
-OPTIONS_DEFINE=	DOCS
+Z88_BIN_SUFFIXES=	g h n r o x
+Z88_DATA=	51.txt z88.dyn z88.fcd z88elp.txt z88i1.txt z88i2.txt z88i5.txt z88int.txt \
+		z88man.txt z88mat.txt z88ni.txt z88o0.txt z88o1.txt z88o2.txt z88o3.txt z88o4.txt z88o5.txt z88o8.txt z88x.dxf
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 post-patch:
-	@${CP} ${WRKSRC}/z88.fcd.linux ${WRKSRC}/z88.fcd
-	@${CP} ${WRKSRC}/z88.mk.kernel.gcc32 ${WRKSRC}/z88.kernel.mk
-	@${CP} ${WRKSRC}/z88.mk.other.gcc32 ${WRKSRC}/z88.other.mk
-	@${CP} ${WRKSRC}/z88.mk.gtk.gcc32 ${WRKSRC}/z88.gtk.mk
-	@${CP} ${FILESDIR}/z88.sh ${WRKSRC}/z88.sh
-	@${CP} ${FILESDIR}/z88.sh ${WRKSRC}/z88.sh
-	@${REINPLACE_CMD} -e 's+%%DOCSDIR%%+${DOCSDIR}+g; \
-	s+firefox+${BROWSER}+ ; \
-	s+joe+${XEDITOR}+ ;' \
-		${WRKSRC}/z88.fcd
-	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g' \
-		${WRKSRC}/z88.kernel.mk
-	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g ; \
-	s+%%LOCALBASE%%+${LOCALBASE}+g;' \
-		${WRKSRC}/z88.other.mk
-	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g' \
-		${WRKSRC}/z88.gtk.mk
-	@${REINPLACE_CMD} -e 's+%%PREFIX%%+${PREFIX}+g; ' \
-		${WRKSRC}/z88.sh
+	for x in ${BUILD_WRKSRC}/*; do ${REINPLACE_CMD} 's,z88v15os,Z88OS-15, ; s,gcc,${CC}, ; s,CFLAGS =,CFLAGS+=, ; s,-O2,, ; s,LDLIBSOX,LDFLAGS, ; s,LDFLAGS =,LDFLAGS+=, ; s,--copy-dt-needed-entries,,' $$x; done
 
+post-patch-DOCS-on:
+	${REINPLACE_CMD} 's,%%DOCSDIR%%,${DOCSDIR},' ${INSTALL_WRKSRC}/z88.fcd
+
 do-build:
-	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.kernel.mk kernel)
-	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.other.mk other clean)
-	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.gtk.mk gtk)
+	cd ${BUILD_WRKSRC}; for x in com ${Z88_BIN_SUFFIXES}; do ${SETENV} ${MAKE_ENV} ${MAKE} -f z88$$x.mk.gcc64 z88$$x ; done
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/z88.sh ${STAGEDIR}${PREFIX}/bin/z88
-	${INSTALL_PROGRAM} ${Z88_BINS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${Z88_DATA:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/z88com ${STAGEDIR}${DATADIR}
+	for x in ${Z88_BIN_SUFFIXES}; do ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/z88$$x ${STAGEDIR}${PREFIX}/bin; done
+	${INSTALL_DATA} ${Z88_DATA:S,^,${INSTALL_WRKSRC}/,} ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${FILESDIR}/z88 ${STAGEDIR}${PREFIX}/bin
+	${SED} -i '' 's,%%DATADIR%%,${DATADIR},' ${STAGEDIR}${PREFIX}/bin/z88
+	${SED} -i '' 's,%%Z88_DATA%%,${Z88_DATA},' ${STAGEDIR}${PREFIX}/bin/z88
 
 do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/*.htm ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/*.gif ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/z88mane.pdf ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	for x in e g; do ${INSTALL_DATA} ${WRKSRC}/docu/z88man$$x.pdf ${STAGEDIR}${DOCSDIR}; done
+
+do-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/cad/z88/distinfo
==============================================================================
--- head/cad/z88/distinfo	Mon Dec 31 13:26:02 2018	(r488784)
+++ head/cad/z88/distinfo	Mon Dec 31 13:33:55 2018	(r488785)
@@ -1,4 +1,3 @@
-SHA256 (z88/z88130.tar.gz) = 17c2f7d74cc5c19d9fa9a8426d7db35d43ba51b59a4f1e3dcdb869a5ec041c1f
-SIZE (z88/z88130.tar.gz) = 42628037
-SHA256 (z88/z88mane.pdf) = 064ef65fea963a62c1bfae0f07853835d86d592557b0da6c311102df5d10606d
-SIZE (z88/z88mane.pdf) = 7329676
+TIMESTAMP = 1544007812
+SHA256 (LSCAD-Z88OS-v15_GH0.tar.gz) = 5acd4119a2dc35dd18392695a98702471a6e3f85960da5ebaf7f74844fc83727
+SIZE (LSCAD-Z88OS-v15_GH0.tar.gz) = 58608217

Added: head/cad/z88/files/patch-bin_unix64_z88.fcd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-bin_unix64_z88.fcd	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,16 @@
+--- bin/unix64/z88.fcd.orig	2018-12-05 19:37:25 UTC
++++ bin/unix64/z88.fcd
+@@ -20,11 +20,11 @@ Z88COM START
+ 
+     Your HTML-Browser or Internet-Browser for use with Z88
+     Ihr HTML- oder Internet- Browser fuer Z88
+-    CBROWSER     acroread
++    CBROWSER     firefox
+ 
+     Your HTML-or Internet Browser's prefix
+     Prefix fuer Ihren HTML- oder Internet Browser
+-    CPREFIX      $HOME/z88v15os/docu/
++    CPREFIX      file://%%DOCSDIR%%/
+ 
+   WINDOW END
+ 

Added: head/cad/z88/files/patch-make_make__unix__64_z88com.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88com.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,12 @@
+--- make/make_unix_64/z88com.mk.gcc64.orig	2018-12-05 14:30:53 UTC
++++ make/make_unix_64/z88com.mk.gcc64
+@@ -10,8 +10,7 @@ DIRCOM = $(DIRECA)/src/z88com/common
+ DIROUT = $(DIRECA)/bin/unix64
+ 
+ CC = gcc
+-CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOUB -DFR_XLONG -DFR_LINUX -O2 \
+-         `pkg-config --cflags --libs gtk+-2.0`
++CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOUB -DFR_XLONG -DFR_LINUX -O2 `pkg-config --cflags --libs gtk+-2.0`
+ 
+ OBJECTSC = z88com.o cb88c.o ale88c.o lan88c.o wlog88c.o rcol88c.o
+ 

Added: head/cad/z88/files/patch-make_make__unix__64_z88g.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88g.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,12 @@
+--- make/make_unix_64/z88g.mk.gcc64.orig	2018-12-05 14:30:53 UTC
++++ make/make_unix_64/z88g.mk.gcc64
+@@ -13,8 +13,7 @@ CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOU
+ 
+ LDLIBSOX = -lm -lc 
+ 
+-OBJECTSG = z88g.o ale88g.o clr88.o stop88g.o cosm88.o nast88.o dnas88.o\
+- who88g.o wlog88g.o wrim88g.o lan88g.o 
++OBJECTSG = z88g.o ale88g.o clr88.o stop88g.o cosm88.o nast88.o dnas88.o who88g.o wlog88g.o wrim88g.o lan88g.o 
+ 
+ z88g: $(OBJECTSG)
+ 	$(CC) $(CFLAGS) -o $@ $(OBJECTSG) $(LDLIBSOX)

Added: head/cad/z88/files/patch-make_make__unix__64_z88n.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88n.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,13 @@
+--- make/make_unix_64/z88n.mk.gcc64.orig	2018-12-05 14:30:53 UTC
++++ make/make_unix_64/z88n.mk.gcc64
+@@ -13,9 +13,7 @@ CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOU
+ 
+ LDLIBSOX = -lm -lc 
+ 
+-OBJECTSN = z88n.o ale88n.o dyn88n.o clr88.o join88.o subn88.o stop88n.o\
+- mc188n.o mc288n.o mc388n.o mc488n.o mc588n.o mc688n.o mc788n.o mc888n.o \
+- rni88.o who88n.o wlog88n.o wrim88n.o lan88n.o
++OBJECTSN = z88n.o ale88n.o dyn88n.o clr88.o join88.o subn88.o stop88n.o mc188n.o mc288n.o mc388n.o mc488n.o mc588n.o mc688n.o mc788n.o mc888n.o rni88.o who88n.o wlog88n.o wrim88n.o lan88n.o
+ 
+ z88n: $(OBJECTSN)
+ 	$(CC) $(CFLAGS) -o $@ $(OBJECTSN) $(LDLIBSOX)

Added: head/cad/z88/files/patch-make_make__unix__64_z88o.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88o.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,18 @@
+--- make/make_unix_64/z88o.mk.gcc64.orig	2017-07-17 07:14:23 UTC
++++ make/make_unix_64/z88o.mk.gcc64
+@@ -11,13 +11,9 @@ DIROUT = $(DIRECA)/bin/unix64
+ 
+ CC = gcc
+ 
+-CFLAGS = -I$(DIRCOM) -I$(DIRUNI) -O2 -fomit-frame-pointer \
+-         -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XLONG -DFR_LINUX \
+-         -lm -Wl,--copy-dt-needed-entries \
+-         `pkg-config --cflags --libs gtk+-2.0` -lGL 
++CFLAGS = -I$(DIRCOM) -I$(DIRUNI) -O2 -fomit-frame-pointer -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XLONG -DFR_LINUX -lm -Wl,--copy-dt-needed-entries `pkg-config --cflags --libs gtk+-2.0` -lGL -lX11
+ 
+-OBJECTSO = z88o.o cb88o.o lan88o.o dyn88o.o wlog88o.o ale88o.o rcoo88.o \
+- m9.o m10.o m12.o m15.o oc88.o m16.o man88o.o gdkgl.o gtkglarea.o fr_gltext3d.o 
++OBJECTSO = z88o.o cb88o.o lan88o.o dyn88o.o wlog88o.o ale88o.o rcoo88.o m9.o m10.o m12.o m15.o oc88.o m16.o man88o.o gdkgl.o gtkglarea.o fr_gltext3d.o 
+ 
+ z88o: $(OBJECTSO)
+ 	$(CC) $(OBJECTSO) $(CFLAGS) -o $@ 

Added: head/cad/z88/files/patch-make_make__unix__64_z88r.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88r.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,19 @@
+--- make/make_unix_64/z88r.mk.gcc64.orig	2018-12-05 14:30:53 UTC
++++ make/make_unix_64/z88r.mk.gcc64
+@@ -13,15 +13,7 @@ CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOU
+ 
+ LDLIBSOX = -lm -lc 
+ 
+-OBJECTSR = z88r.o ale88r.o dyn88r.o clr88.o jaco88.o choy88.o m1.o m2.o \
+- cshe88.o hexa88.o lqua88.o qshe88.o isod88.o tetr88.o spur88.o stop88r.o \
+- apla88.o  spla88.o hpla88.o who88r.o wlog88r.o prfl88.o wrim88r.o \
+- lan88r.o z88br.o z88cr.o ri588i.o bhexa88.o btetr88.o bqshe88.o bspla88.o \
+- bspur88.o blqua88.o bcshe88.o bapla88.o bhpla88.o ri188r.o z88a.o z88ai.o \
+- wria88r.o z88dr.o m3.o m4.o fuvs88.o scsh88.o shex88.o slqu88.o sqsh88.o \
+- siso88.o stet88.o sspu88.o sapl88.o sspl88.o shpl88.o span88.o z88er.o \
+- forc88.o shaq88.o sshq88.o shad88.o sshd88.o shaf88.o bshaf88.o sshf88.o \
+- shav88.o bshav88.o sshv88.o man88r.o timo88.o stim88.o
++OBJECTSR = z88r.o ale88r.o dyn88r.o clr88.o jaco88.o choy88.o m1.o m2.o cshe88.o hexa88.o lqua88.o qshe88.o isod88.o tetr88.o spur88.o stop88r.o apla88.o  spla88.o hpla88.o who88r.o wlog88r.o prfl88.o wrim88r.o lan88r.o z88br.o z88cr.o ri588i.o bhexa88.o btetr88.o bqshe88.o bspla88.o bspur88.o blqua88.o bcshe88.o bapla88.o bhpla88.o ri188r.o z88a.o z88ai.o wria88r.o z88dr.o m3.o m4.o fuvs88.o scsh88.o shex88.o slqu88.o sqsh88.o siso88.o stet88.o sspu88.o sapl88.o sspl88.o shpl88.o span88.o z88er.o forc88.o shaq88.o sshq88.o shad88.o sshd88.o shaf88.o bshaf88.o sshf88.o shav88.o bshav88.o sshv88.o man88r.o timo88.o stim88.o
+ 
+ z88r: $(OBJECTSR)
+ 	$(CC) $(CFLAGS) -o $@ $(OBJECTSR) $(LDLIBSOX)

Added: head/cad/z88/files/patch-make_make__unix__64_z88x.mk.gcc64
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-make_make__unix__64_z88x.mk.gcc64	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,12 @@
+--- make/make_unix_64/z88x.mk.gcc64.orig	2018-12-05 14:30:53 UTC
++++ make/make_unix_64/z88x.mk.gcc64
+@@ -13,8 +13,7 @@ CFLAGS = -I$(DIRCOM) -DFR_UNIX -DFR_XDOU
+ 
+ LDLIBSOX = -lm -lc 
+ 
+-OBJECTSX = z88x.o ale88x.o dyn88x.o clr88.o koi88x.o rea88x.o stop88x.o\
+- sub88x.o who88x.o wlog88x.o wria88x.o wrim88x.o z88fx.o z88tx.o lan88x.o 
++OBJECTSX = z88x.o ale88x.o dyn88x.o clr88.o koi88x.o rea88x.o stop88x.o sub88x.o who88x.o wlog88x.o wria88x.o wrim88x.o z88fx.o z88tx.o lan88x.o 
+ 
+ z88x: $(OBJECTSX)
+ 	$(CC) $(CFLAGS) -o $@ $(OBJECTSX) $(LDLIBSOX)

Added: head/cad/z88/files/patch-src_z88o_unix_cb88o.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/patch-src_z88o_unix_cb88o.c	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,37 @@
+--- src/z88o/unix/cb88o.c.orig	2018-12-05 16:59:00 UTC
++++ src/z88o/unix/cb88o.c
+@@ -1164,9 +1164,9 @@ const gchar *ccx,*ccy,*ccz;
+ /*---------------------------------------------------------------------------
+ * beim allerersten Start gehen fux, fuy & fuz mit je 100. rein
+ *--------------------------------------------------------------------------*/
+-gcvt(fux,idigit,cfux); 
+-gcvt(fuy,idigit,cfuy); 
+-gcvt(fuz,idigit,cfuz); 
++snprintf(cfux, idigit, "%g", fux);
++snprintf(cfuy, idigit, "%g", fuy);
++snprintf(cfuz, idigit, "%g",cfuz);
+ 
+ if(LANG == 1) strcpy(cstring,"VERGROESSERUNG VER.");
+ if(LANG == 2) strcpy(cstring,"MAGNIFICATION DEFL.");
+@@ -1234,9 +1234,9 @@ const gchar *ccx,*ccy,*ccz;
+ /*---------------------------------------------------------------------------
+ * beim allerersten Start gehen rotx, roty & rotz mit je 0. rein
+ *--------------------------------------------------------------------------*/
+-gcvt(rotx,idigit,crotx); 
+-gcvt(roty,idigit,croty); 
+-gcvt(rotz,idigit,crotz); 
++snprintf(crotx, idigit, "%g", rotx);
++snprintf(croty, idigit, "%g", roty);
++snprintf(crotz, idigit, "%g", rotz);
+ 
+ if(LANG == 1) strcpy(cstring,"ROTATIONEN 3-D");
+ if(LANG == 2) strcpy(cstring,"ROTATIONS 3-D");
+@@ -1307,7 +1307,7 @@ const gchar *ccm;
+ /*---------------------------------------------------------------------------
+ * beim allerersten Start geht zm mit -100. rein
+ *--------------------------------------------------------------------------*/
+-gcvt(zm,idigit,czm); 
++snprintf(czm, idigit, "%g", zm); 
+ 
+ if(LANG == 1) strcpy(cstring,"Z-Limit zum Betrachter");
+ if(LANG == 2) strcpy(cstring,"Z Limit towards you");

Added: head/cad/z88/files/z88
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/files/z88	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if test ! -d $HOME/.z88
+then
+	mkdir -p $HOME/.z88
+fi
+cd $HOME/.z88
+if test ! -e z88com
+then
+	ln -vs %%DATADIR%%/z88com .
+fi
+for x in %%Z88_DATA%%
+do
+	if test ! -e $x
+	then
+		cp -v %%DATADIR%%/$x .
+	fi
+done
+exec ./z88com "$@"

Added: head/cad/z88/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/z88/pkg-message	Mon Dec 31 13:33:55 2018	(r488785)
@@ -0,0 +1,17 @@
+Z88 normally assumes that all the files for the software are located
+in the same directory - i.e. all binaries, configuration files, input
+and output files should be in the same directory. The port instead
+installs the files in standard locations consistently with FreeBSD
+policies.
+A directory is created for every user at the first execution of z88
+(just run "z88" in a terminal) with path ${HOME}/.z88 and has the role
+of the main directory assumed by Z88: it is automatically populated as
+needed by copying or linking to the files installed in the standard
+locations.
+
+The port sets gedit as default editor and firefox as default web
+browser: you can change it for a particular user by modifying the file
+${HOME}/.z88/z88.fcd.
+No explicit dependency on gedit or firefox is set in the port, hence
+if a user really wants to use gedit or firefox it is necessary to
+install them manually on the system.

Modified: head/cad/z88/pkg-plist
==============================================================================
--- head/cad/z88/pkg-plist	Mon Dec 31 13:26:02 2018	(r488784)
+++ head/cad/z88/pkg-plist	Mon Dec 31 13:33:55 2018	(r488785)
@@ -1,13 +1,161 @@
 bin/z88
-bin/z88com
-bin/z88d
-bin/z88e
-bin/z88f
 bin/z88g
 bin/z88h
-bin/z88i1
-bin/z88i2
 bin/z88n
 bin/z88o
-bin/z88v
+bin/z88r
 bin/z88x
+%%PORTDOCS%%%%DOCSDIR%%/z88mane.pdf
+%%PORTDOCS%%%%DOCSDIR%%/z88mang.pdf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88ni.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b1/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88g.nas
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b11/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/b18_2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/b18_2rou.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88ni.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b18/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/52.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b2/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/55.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88g.nas
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_lin/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/55.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88.dyn
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88g.nas
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b21_para/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88asy.ans
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88g.nas
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b24/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b3/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b4_20ele/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88ni.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b5/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b6_q/z88x.dxf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/51.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88elp.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88i1.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88i2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88i5.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88int.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88man.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88mat.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88ni.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/b7/z88x.dxf
+%%DATADIR%%/51.txt
+%%DATADIR%%/z88.dyn
+%%DATADIR%%/z88.fcd
+%%DATADIR%%/z88com
+%%DATADIR%%/z88elp.txt
+%%DATADIR%%/z88i1.txt
+%%DATADIR%%/z88i2.txt
+%%DATADIR%%/z88i5.txt
+%%DATADIR%%/z88int.txt
+%%DATADIR%%/z88man.txt
+%%DATADIR%%/z88mat.txt
+%%DATADIR%%/z88ni.txt
+%%DATADIR%%/z88o0.txt
+%%DATADIR%%/z88o1.txt
+%%DATADIR%%/z88o2.txt
+%%DATADIR%%/z88o3.txt
+%%DATADIR%%/z88o4.txt
+%%DATADIR%%/z88o5.txt
+%%DATADIR%%/z88o8.txt
+%%DATADIR%%/z88x.dxf


More information about the svn-ports-all mailing list