diff options
author | edwin <edwin@FreeBSD.org> | 2003-05-20 23:03:37 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-05-20 23:03:37 +0000 |
commit | 6e5bc4db036d7499b580369129428a27605d999e (patch) | |
tree | 6c9377914bc9cbe82776f37820fc79337fd9bd7e /cad/varkon/files | |
parent | bca649808a15c3af98da680305f9cedd4aa5a2e9 (diff) | |
download | FreeBSD-ports-6e5bc4db036d7499b580369129428a27605d999e.zip FreeBSD-ports-6e5bc4db036d7499b580369129428a27605d999e.tar.gz |
NEW port CAD/varkon
A free CAD system and high level development tool for
Engineering. It's a very interesting port for some branches
of engineering.
PR: ports/52202
Submitted by: Pedro F. Giffuni <giffunip@yahoo.com>
Diffstat (limited to 'cad/varkon/files')
-rw-r--r-- | cad/varkon/files/patch--com+english+varkon | 80 | ||||
-rw-r--r-- | cad/varkon/files/patch-make_varkon | 159 | ||||
-rw-r--r-- | cad/varkon/files/patch-varkon-1.17D | 179 |
3 files changed, 418 insertions, 0 deletions
diff --git a/cad/varkon/files/patch--com+english+varkon b/cad/varkon/files/patch--com+english+varkon new file mode 100644 index 0000000..51cb955 --- /dev/null +++ b/cad/varkon/files/patch--com+english+varkon @@ -0,0 +1,80 @@ +--- ../com/english/varkon.orig Thu Mar 27 06:36:43 2003 ++++ ../com/english/varkon Tue May 13 18:49:31 2003 +@@ -13,12 +13,12 @@ + # Root directory for VARKON installation. Change this + # line to point to the right location. + +-VARKON_ROOT=/usr/varkon/varkon_1.17D ++VARKON_ROOT=%%VARKON_PREFIX%% + export VARKON_ROOT + + # Standard menufiles (*.MDF, *.INC) + +-VARKON_MDF=$VARKON_ROOT/mdf/english ++VARKON_MDF=$VARKON_ROOT/mdf + export VARKON_MDF + + # Project files (*.PID) +@@ -27,7 +27,7 @@ + # versions of VARKON to persist in a common place. + # All users need write access to this directory + +-VARKON_PID=$VARKON_ROOT/pid ++VARKON_PID=$HOME/pid + export VARKON_PID + + # Errormessages (*.ERM) +@@ -37,7 +37,7 @@ + + # The VARKON documentation (*.htm) + +-VARKON_DOC=$VARKON_ROOT/man ++VARKON_DOC=%%DOCSDIR%%/man + export VARKON_DOC + + # System module library (*.MBO) +@@ -52,7 +52,7 @@ + # so you may set it up differently for different users. + # All users need write access to this directory + +-VARKON_TMP=$VARKON_ROOT/tmp ++VARKON_TMP=/tmp + export VARKON_TMP + + # Fonts for graphical text +@@ -81,7 +81,7 @@ + + # Standard resources for X-Windows + +-VARKON_INI=$VARKON_ROOT/cnf/ini/english ++VARKON_INI=$VARKON_ROOT/cnf/ini + export VARKON_INI + + # Default root for VARKON applications +@@ -91,7 +91,7 @@ + # not interfere with old jobs. + # All users need write access to this directory + +-VARKON_PRD=$VARKON_ROOT/app ++VARKON_PRD=$HOME/app + export VARKON_PRD + + # PATH for executables (xvarkon, mbsc, plotterdrivers) +@@ -111,14 +111,14 @@ + # over again when updating the system. + + xvarkon $1 $2 \ +--i$VARKON_INI/linux ++-i$VARKON_INI/freebsd + + # With an inifile of your own it would look something + # like the following: + + # xvarkon $1 $2 \ +-# -i$VARKON_INI/linux -i$HOME/cnf/ini/english/my_own_inifile ++# -i$VARKON_INI/freebsd -i$HOME/cnf/ini/english/my_own_inifile + + # If you want to run the system in pure drafting mode, add + # "-r" to the command line. +-# xvarkon -r $1 $2 -i$VARKON_INI/linux ++# xvarkon -r $1 $2 -i$VARKON_INI/freebsd diff --git a/cad/varkon/files/patch-make_varkon b/cad/varkon/files/patch-make_varkon new file mode 100644 index 0000000..db2c9fb --- /dev/null +++ b/cad/varkon/files/patch-make_varkon @@ -0,0 +1,159 @@ +--- make_varkon.orig Thu Mar 27 06:36:40 2003 ++++ make_varkon Tue May 13 16:08:05 2003 +@@ -21,13 +21,13 @@ + + # Uncomment the platform you are running on + +-PLATFORM=linux ++#PLATFORM=linux + #PLATFORM=crayT3E + #PLATFORM=sgi + #PLATFORM=aix + #PLATFORM=hpux + #PLATFORM=sun +-#PLATFORM=FreeBSD ++PLATFORM=FreeBSD + + # + # Compile the C-source modules IG, DB, GP, EX, GE +@@ -44,7 +44,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=DB +@@ -57,7 +57,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=GP +@@ -70,7 +70,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=EX +@@ -83,7 +83,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=GE +@@ -96,7 +96,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=PM +@@ -109,7 +109,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + module=WP +@@ -122,7 +122,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + if [ -d $VARKON_ROOT/bin ]; then +@@ -132,7 +132,7 @@ + mkdir $VARKON_ROOT/bin + fi + echo "Making the main executable xvarkon" +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + + # + # Make sure the tmp directory exists. +@@ -158,7 +158,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM ++%%MAKE%% -f Makefile.$PLATFORM + cd ../.. + + # +@@ -175,7 +175,7 @@ + mkdir ./$module/lib + fi + cd ./$module/src +-make -f Makefile.$PLATFORM all ++%%MAKE%% -f Makefile.$PLATFORM all + cd ../.. + + # +@@ -194,42 +194,42 @@ + echo "Making the Varkon library" + echo "analysis" + cd Vlib/analysis +-make ++%%MAKE%% + cd ../.. + + echo "dxf" + cd Vlib/dxf +-make ++%%MAKE%% + cd ../.. + + echo "edit" + cd Vlib/edit +-make ++%%MAKE%% + cd ../.. + + echo "fedit" + cd Vlib/fonts/fedit +-make ++%%MAKE%% + cd ../../.. + + echo "iges" + cd Vlib/iges +-make ++%%MAKE%% + cd ../.. + + echo "macro" + cd Vlib/macro +-make ++%%MAKE%% + cd ../.. + + echo "plott" + cd Vlib/plott +-make ++%%MAKE%% + cd ../.. + + echo "stl" + cd Vlib/stl +-make ++%%MAKE%% + cd ../.. + + ################################################################ diff --git a/cad/varkon/files/patch-varkon-1.17D b/cad/varkon/files/patch-varkon-1.17D new file mode 100644 index 0000000..b8e28ba --- /dev/null +++ b/cad/varkon/files/patch-varkon-1.17D @@ -0,0 +1,179 @@ +Although not thought for the port, this patch was submitted to the varkon +lists so hopefully we will not need it for the next release. --pfg + +*** Makefile.FreeBSD.orig Wed Apr 16 18:02:04 2003 +--- Makefile.FreeBSD Wed Apr 16 18:23:37 2003 +*************** +*** 9,15 **** + # + ########################################################## + +! # The varkon object libraies + + LIBS = $(VARKON_ROOT)/sources/IG/lib/IGlib.a \ + $(VARKON_ROOT)/sources/PM/lib/PMlib.a \ +--- 9,15 ---- + # + ########################################################## + +! # The varkon object libraries + + LIBS = $(VARKON_ROOT)/sources/IG/lib/IGlib.a \ + $(VARKON_ROOT)/sources/PM/lib/PMlib.a \ +*************** +*** 21,31 **** + + # Xlibs + +! XLIBS = -lX11 + + # OpenGL libs (currently not supported on Sun's) + +! GLIBS = -IGL -IGLU + + # The actual executable, xvarkon. + +--- 21,31 ---- + + # Xlibs + +! XLIBS = -L/usr/X11R6/lib -lX11 -lXext + + # OpenGL libs (currently not supported on Sun's) + +! GLIBS = -lGL -lGLU + + # The actual executable, xvarkon. + +*************** +*** 34,40 **** + # Targets + + $(XVARKON): $(LIBS) +! cc $(LIBS) $(XLIBS) -lm -o $(XVARKON) + + + ########################################################## +--- 34,40 ---- + # Targets + + $(XVARKON): $(LIBS) +! cc $(LIBS) $(XLIBS) $(GLIBS) -lm -o $(XVARKON) + + + ########################################################## +*** IG/src/ig2.c.orig Sat Apr 12 16:55:19 2003 +--- IG/src/ig2.c Sat Apr 12 16:55:45 2003 +*************** +*** 54,60 **** + + #ifdef UNIX + #undef VSTART +! #include "termio.h" + #endif + + extern MNUALT smbind[]; /* Symboler */ +--- 54,60 ---- + + #ifdef UNIX + #undef VSTART +! #include "termios.h" + #endif + + extern MNUALT smbind[]; /* Symboler */ +*** PL/src/epson.c.orig Tue Apr 15 10:31:15 2003 +--- PL/src/epson.c Tue Apr 15 10:33:10 2003 +*************** +*** 44,50 **** + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <malloc.h> + + /* + *******************************************************!*/ +--- 44,50 ---- + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <stdlib.h> + + /* + *******************************************************!*/ +*** PL/src/gerber.c.orig Tue Apr 15 12:17:21 2003 +--- PL/src/gerber.c Tue Apr 15 12:17:40 2003 +*************** +*** 44,50 **** + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <malloc.h> + + #define ppixsz 0.0254 /* Plotter pixel x-size i mm */ + #define ppiysz 0.0254 /* Plotter pixel y-size i mm */ +--- 44,50 ---- + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <stdlib.h> + + #define ppixsz 0.0254 /* Plotter pixel x-size i mm */ + #define ppiysz 0.0254 /* Plotter pixel y-size i mm */ +*** PL/src/ibmpro.c.orig Tue Apr 15 12:16:13 2003 +--- PL/src/ibmpro.c Tue Apr 15 12:16:48 2003 +*************** +*** 44,50 **** + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <malloc.h> + + bool arccon; /* Måla cirklars rand */ + short lastx; /* Sista pos X */ +--- 44,50 ---- + #include "../include/params.h" + #include <string.h> + #include <time.h> +! #include <stdlib.h> + + bool arccon; /* Måla cirklars rand */ + short lastx; /* Sista pos X */ +*** PM/src/Makefile.FreeBSD.orig Tue Apr 15 10:23:40 2003 +--- PM/src/Makefile.FreeBSD Tue Apr 15 10:24:38 2003 +*************** +*** 19,25 **** + -O \ + -DWRK_STAT \ + -DV3_X11 -I/usr/X11R6/include \ +! -DUNIX + + debug : CFLAGS += -g -DDEBUG + +--- 19,25 ---- + -O \ + -DWRK_STAT \ + -DV3_X11 -I/usr/X11R6/include \ +! -DUNIX -DVARKON + + debug : CFLAGS += -g -DDEBUG + +*** AN/src/Makefile.FreeBSD.orig Tue Apr 15 10:26:37 2003 +--- AN/src/Makefile.FreeBSD Tue Apr 15 10:27:28 2003 +*************** +*** 28,34 **** + -D_POSIX_SOURCE \ + -DUNIX \ + -DANALYZER \ +! -DWRK_STAT -I/usr/X11R6/include + + LDFLAGS = -L/usr/X11R6/lib + +--- 28,35 ---- + -D_POSIX_SOURCE \ + -DUNIX \ + -DANALYZER \ +! -DWRK_STAT -I/usr/X11R6/include \ +! -DVARKON + + LDFLAGS = -L/usr/X11R6/lib + |