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@protonmail.ch>
Reviewed by:	chitty_cloud@me.com
Relnotes:	https://forum.z88.de/viewtopic.php?f=18&t=885
This commit is contained in:
Kurt Jaeger 2018-12-31 13:33:55 +00:00
parent bcc481627a
commit d460c1a711
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488785
20 changed files with 373 additions and 254 deletions

View File

@ -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@FreeBSD.org
MAINTAINER= phascolarctos@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>

View File

@ -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

View File

@ -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

View File

@ -1,31 +0,0 @@
--- cosm88.c.orig 2014-08-08 23:50:40.000000000 -0400
+++ cosm88.c 2014-08-08 23:51:03.000000000 -0400
@@ -71,7 +71,7 @@
extern FR_INT4 ICFLAG,LANG;
-extern char ccos[];
+extern char ccosfile[];
extern char ci1[];
extern char ci2[];
extern char ci3[];
@@ -109,7 +109,7 @@
/*----------------------------------------------------------------------
* COSMOS- File oeffnen
*---------------------------------------------------------------------*/
-if((fpro= fopen(ccos,"r"))== NULL)
+if((fpro= fopen(ccosfile,"r"))== NULL)
{
wlog88g(0,LOG_NOCOS);
fclose(fwlo);
--- z88g.c.orig 2014-08-08 23:50:50.000000000 -0400
+++ z88g.c 2014-08-08 23:51:18.000000000 -0400
@@ -89,7 +89,7 @@
char cdyn[8] = "z88.dyn";
char clgd[9] = "z88g.log";
-char ccos[9] = "z88g.cos";
+char ccosfile[9] = "z88g.cos";
char cnas[9] = "z88g.nas";
char cin[8] = "z88g.in";
char ci1[10] = "z88i1.txt";

View File

@ -1,11 +0,0 @@
--- dyn88v.c.orig Tue Dec 28 22:30:55 2004
+++ dyn88v.c Tue Dec 28 22:31:29 2004
@@ -47,7 +47,7 @@
#include <stdio.h> /* FILE,NULL,fopen,fclose,fgets,sscanf */
/* rewind */
#include <string.h> /* strstr */
-#include <malloc.h> /* FR_CALLOC */
+#include <stdlib.h> /* FR_CALLOC */
#endif
/***********************************************************************

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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 $@

View File

@ -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)

View File

@ -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)

View File

@ -1,37 +1,37 @@
--- cb88o.c.orig 2010-01-19 10:23:29.000000000 +0000
+++ cb88o.c 2010-01-19 10:28:02.000000000 +0000
@@ -1161,9 +1161,9 @@
/*---------------------------------------------------------------------------
* 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.");
@@ -1231,9 +1231,9 @@
/*---------------------------------------------------------------------------
* 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");
@@ -1306,7 +1306,7 @@
/*---------------------------------------------------------------------------
* 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");
--- 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");

View File

@ -1,18 +0,0 @@
--- z88.fcd.linux.orig 2008-11-23 16:23:32.000000000 +0000
+++ z88.fcd.linux 2010-01-19 10:12:57.000000000 +0000
@@ -1,5 +1,5 @@
Header file Z88.FCD for Prof.Dr. Frank Rieg's free FEA program Z88 V13.
-This file fits well for the LINUX OS
+This file fits well for the FreeBSD OS
This file lets you choose fonts, colors and dimensions for Z88 X-programs
Please see hints at end of file
@@ -26,7 +26,7 @@
Your HTML-or Internet Browser's prefix
Prefix fuer Ihren HTML- oder Internet Browser
- CPREFIX file:///home/frank/z88130/
+ CPREFIX file://%%DOCSDIR%%/
WINDOW END

View File

@ -1,12 +0,0 @@
--- z88.mk.gtk.gcc32.orig 2008-11-23 11:07:28.000000000 -0500
+++ z88.mk.gtk.gcc32
@@ -4,7 +4,8 @@
# at this moment.
# 8.5.2008 Rieg
#############################################################################
-CC= gcc -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XLONG -I. -O3 -fomit-frame-pointer \
+CC= %%CC%% -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XLONG -I. %%CFLAGS%% \
+-lm \
`pkg-config --cflags --libs gtk+-2.0 gdkglext-1.0 gdkglext-x11-1.0 gtkglext-1.0 gtkglext-x11-1.0`
OBJECTSO = z88o.o cb88o.o lan88o.o dyn88o.o wlog88o.o ale88o.o rcoo88.o\

View File

@ -1,14 +0,0 @@
--- z88.mk.kernel.gcc32.orig 2010-01-19 14:29:11.000000000 +0000
+++ z88.mk.kernel.gcc32 2010-01-19 14:38:10.000000000 +0000
@@ -16,9 +16,8 @@
#
# 18.6.2008 Rieg
#############################################################################
-CC = gcc
-CFLAGS = -I. -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XINT \
- -O3 -fomit-frame-pointer
+CC = %%CC%%
+CFLAGS = %%CFLAGS%% -I. -DFR_UNIX -DFR_LINUX -DFR_XDOUB -DFR_XINT
LDLIBSOM = -lm -lc

View File

@ -1,15 +0,0 @@
--- z88.mk.other.gcc32.orig 2010-01-19 14:29:24.000000000 +0000
+++ z88.mk.other.gcc32 2010-01-19 14:37:36.000000000 +0000
@@ -6,9 +6,9 @@
#
# 8.5.2008 Rieg
#############################################################################
-CC = gcc
-CFLAGS = -march=i586 -I. -I/usr/X11R6/include -DFR_UNIX -DFR_XDOUB \
- -DFR_LINUX -O3 -fomit-frame-pointer
+CC = %%CC%%
+CFLAGS = %%CFLAGS%% -I. -I/usr/X11R6/include -DFR_UNIX -DFR_XDOUB \
+ -DFR_LINUX
LDLIBSOM = -lc
LDLIBSOX = -lm -lc

19
cad/z88/files/z88 Normal file
View File

@ -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 "$@"

View File

@ -1,52 +0,0 @@
#!/bin/sh
# This script checks for the existence of the three very important Z88
# parameter files z88.fcd, z88.dyn and z88i4.txt and launches the
# Z88 commander
# This file was taken from the Z88 RPM distribution
if ! test -f z88.dyn
then
cp %%PREFIX%%/share/z88/z88.dyn .
fi
if ! test -f z88.fcd
then
cp %%PREFIX%%/share/z88/z88.fcd .
fi
if ! test -f z88i4.txt
then
cp %%PREFIX%%/share/z88/z88i4.txt .
fi
if ! test -f z88i1.txt
then
if ! test -f z88ni.txt
then
if ! test -f z88x.dxf
then
if ! test -f z88g.cos
then
cp %%PREFIX%%/share/z88/b1_x.dxf z88x.dxf
cp %%PREFIX%%/share/z88/b1_2.txt z88i2.txt
cp %%PREFIX%%/share/z88/b1_3.txt z88i3.txt
echo "First Z88 example loaded"
else
echo "A Z88 input file z88g.cos exists"
fi
else
echo "A Z88 input file z88x.dxf exists"
fi
else
echo "A Z88 input file z88ni.txt exists"
fi
else
echo "A Z88 input file z88i1.txt exists"
fi
echo "For further information consult"
echo "%%PREFIX%%/z88/README or"
echo "%%PREFIX%%/doc/z88/z88mane.pdf (English)"
echo "*** Starting the Z88 Finite Elements Analysis system ***"
z88com

17
cad/z88/pkg-message Normal file
View File

@ -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.

View File

@ -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