1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Update to 1.19C

PR:		ports/123026
Submitted by:	Pedro F. Giffuni <giffunip@tutopia.com>
This commit is contained in:
Pav Lucistnik 2008-04-25 14:13:50 +00:00
parent 8b4d37b779
commit c46e01a90a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211942
9 changed files with 809 additions and 1246 deletions

View File

@ -1,53 +1,40 @@
# New ports collection makefile for: Varkon
# Date created: 19 April 2003
# Whom: Pedro Giffuni <giffunip@asme.org>
# Whom: Pedro F. Giffuni
#
# $FreeBSD$
#
PORTNAME= varkon
PORTVERSION= 1.17D
PORTREVISION= 2
PORTVERSION= 1.19C
CATEGORIES= cad
MASTER_SITES= http://www.tech.oru.se/cad/varkon/pub/linux/:sources \
http://www.tech.oru.se/cad/varkon/:docs
DISTFILES= ${PORTNAME}_sources_${PORTVERSION}${EXTRACT_SUFX}:sources \
v_man.zip:docs m_man.zip:docs
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= Varkon_sources_${PORTVERSION}
DIST_SUBDIR= varkon
EXTRACT_ONLY= ${PORTNAME}_sources_${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A free CAD system and applications development tool
.ifndef NOPORTDOCS
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
.endif
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
USE_GL= yes
USE_GMAKE= yes
VARKON_ROOT= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
USE_XORG= xpm
ALL_TARGET=
VARKON_ROOT= ${WRKDIR}/Varkon_${PORTVERSION}
WRKSRC= ${VARKON_ROOT}/sources
MAKE_ENV+= VARKON_ROOT=${VARKON_ROOT}
USE_DOS2UNIX= Makefile
VARKON_PREFIX= ${PREFIX}/share/varkon
WEB_BROWSER?= mozilla
WEB_BROWSER?= firefox
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Does not compile with GCC 4.2
.endif
post-patch:
@${REINPLACE_CMD} -e 's+%%MAKE%%+${GMAKE}+g;' ${WRKSRC}/make_varkon
@${REINPLACE_CMD} -e 's+netscape+${WEB_BROWSER}+ ' \
${VARKON_ROOT}/cnf/ini/english/linux
do-configure:
@${REINPLACE_CMD} -e 's+%%VARKON_PREFIX%%+${VARKON_PREFIX}+ ; s+%%DOCSDIR%%+${DOCSDIR}+g ' \
${VARKON_ROOT}/com/english/varkon
@${FIND} ${WRKSRC} -name 'Makefile.FreeBSD' -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's+/usr/X11R6+${LOCALBASE}+g'
do-build:
@(cd ${WRKSRC};${SETENV} ${MAKE_ENV} ${SH} make_varkon )
${REINPLACE_CMD} -e 's+/usr/local+${LOCALBASE}+g'
@${FIND} ${WRKSRC} -name 'Makefile*' | ${XARGS} ${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g'
do-install:
@${MKDIR} ${VARKON_PREFIX}/bin
@ -63,18 +50,12 @@ do-install:
@${MKDIR} ${VARKON_PREFIX}/cnf/ini
@${INSTALL} ${VARKON_ROOT}/cnf/ini/english/linux \
${VARKON_PREFIX}/cnf/ini/freebsd
@${CP} -R ${VARKON_ROOT}/mdf/english ${VARKON_PREFIX}/mdf
@${CP} -R ${VARKON_ROOT}/mdf ${VARKON_PREFIX}/mdf
@${INSTALL_SCRIPT} ${VARKON_ROOT}/com/english/varkon \
${PREFIX}/bin
.ifndef NOPORTDOCS
@${MKDIR} ${EXAMPLESDIR}
@${CP} -R ${VARKON_ROOT}/app ${EXAMPLESDIR}
@${CP} -R ${VARKON_ROOT}/pid ${EXAMPLESDIR}
@${MKDIR} ${DOCSDIR} #Varkon Manual
@unzip ${DISTDIR}/${DIST_SUBDIR}/v_man \
-d ${DOCSDIR}
@unzip -uo ${DISTDIR}/${DIST_SUBDIR}/m_man \
-d ${DOCSDIR}
@${CP} -R ${VARKON_ROOT}/man/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,9 +1,3 @@
MD5 (varkon/varkon_sources_1.17D.tar.gz) = 4a7e4573cc525b9e39428df6f97c036f
SHA256 (varkon/varkon_sources_1.17D.tar.gz) = a57a0d866506a9f4e458ac25ee13602e3d82bee4bb069bf071c6e37385d3170e
SIZE (varkon/varkon_sources_1.17D.tar.gz) = 2169441
MD5 (varkon/v_man.zip) = 0b751bfb53e630d95c9941d5d13fed6f
SHA256 (varkon/v_man.zip) = fc0ea1f364e93d96551a3823a7b953eee0ba715f3db91e4a9d48c2ff90fba516
SIZE (varkon/v_man.zip) = 298630
MD5 (varkon/m_man.zip) = ffd90e0ebdc0b5caf400d1a1f74e31fc
SHA256 (varkon/m_man.zip) = 35c68788dc9e3c32b51910b93d7eec2ce87cd5c385af26e2eb664a3c020dbee5
SIZE (varkon/m_man.zip) = 479583
MD5 (varkon/Varkon_sources_1.19C.tar.gz) = 5c9c723c62205f2ba2e289db40f4d467
SHA256 (varkon/Varkon_sources_1.19C.tar.gz) = cb50d6ce486bc71c8ce3ec7b752e764fff34fbf5f02fd392abe77f069987797b
SIZE (varkon/Varkon_sources_1.19C.tar.gz) = 3467744

View File

@ -1,80 +1,58 @@
--- ../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.
--- ../com/english/varkon.orig 2008-03-07 18:27:29.000000000 -0500
+++ ../com/english/varkon 2008-04-23 13:59:24.000000000 -0500
@@ -16,10 +16,10 @@
-VARKON_ROOT=/usr/varkon/varkon_1.17D
# Root directory for VARKON installation.
# Alternative 1, relative path.
-VARKON_ROOT=`(cd $(dirname $0); cd ..; cd ..; pwd)`
+#VARKON_ROOT=`(cd $(dirname $0); cd ..; cd ..; pwd)`
# Alternative 2, explicit path.
-# VARKON_ROOT=/home/username/varkon/varkon_2.Xx
+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 @@
# Module library path (*.MBO)
@@ -44,7 +44,7 @@
export VARKON_ERM
# The VARKON documentation (*.htm)
-VARKON_DOC=$VARKON_ROOT/man
+VARKON_DOC=%%DOCSDIR%%
export VARKON_DOC
# System module library (*.MBO)
@@ -52,7 +52,7 @@
# Temporary files
@@ -53,7 +53,7 @@
# directory should usually reside on the local machine
# 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 @@
@@ -77,7 +77,7 @@
export VARKON_TOL
# 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 @@
# PATH for executables (xvarkon, mbsc and plotterdrivers)
@@ -96,7 +96,7 @@
# if you want to. Don't edit the standard ini-file included
# in the distribution or you will have to do it all
# over again when updating the system.
xvarkon $1 $2 \
--i$VARKON_INI/linux
+-i$VARKON_INI/freebsd
-$VARKON_BIN/xvarkon -GLOBAL -i$VARKON_INI/linux
+$VARKON_BIN/xvarkon -GLOBAL -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
@@ -114,4 +114,4 @@
#
# If you want to specify a default job directory use the -jd
# option on the command line. Here is an example:
-# $VARKON_BIN/xvarkon -GLOBAL -jd /home/my_directory/my_varkon_jobs
\ No newline at end of file
+# $VARKON_BIN/xvarkon -GLOBAL -jd /home/my_directory/my_varkon_jobs

View File

@ -0,0 +1,19 @@
--- IG/src/varkon.c.orig 2008-04-23 13:36:40.000000000 -0500
+++ IG/src/varkon.c 2008-04-23 13:40:00.000000000 -0500
@@ -257,14 +257,14 @@
/*
***Open startup_logfile.
*/
- strcpy(lfname,getenv("VARKON_ROOT"));
+ strcpy(lfname,getenv("VARKON_TMP"));
strcat(lfname,"/varkon.LOG");
if ( (startup_logfile=fopen(lfname,"w")) == NULL )
{
printf("Can't open startup_logfile %s\n",lfname);
exit(-1);
}
- fprintf(startup_logfile,"VARKON_ROOT is %s\n",getenv("VARKON_ROOT"));
+ fprintf(startup_logfile,"VARKON_TMP is %s\n",getenv("VARKON_TMP"));
fflush(startup_logfile);
/*
***System is now starting up.

View File

@ -0,0 +1,13 @@
--- Makefile.orig 2008-04-20 21:03:40.000000000 -0500
+++ Makefile 2008-04-20 21:03:56.000000000 -0500
@@ -12,8 +12,8 @@
#=========================================================
#Uncomment the platform you are running on
-PLATFORM=linux
-#PLATFORM=FreeBSD
+#PLATFORM=linux
+PLATFORM=FreeBSD
#PLATFORM=MacOSX
# Comment the line below to exclude support for TIFF

View File

@ -1,159 +0,0 @@
--- 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 ../..
################################################################

View File

@ -1,179 +0,0 @@
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

View File

@ -7,8 +7,6 @@ programming language integrated in the graphical environment.
The system was originally developed by a group at the University of
Linkoping in Sweden during 1984-86 under the leadership of Dr. Johan
Kjellander who was then the president of Microform AB. From 1986 the
system was owned, marketed and further developed by Microform AB. The
sourcecode of VARKON is now maintained by the CAD research group at the
Department of Technology at Orebro University in Sweden.
system was owned, marketed and further developed by Microform AB.
WWW: http://www.tech.oru.se/cad/varkon/
WWW: http://varkon.sourceforge.net/

File diff suppressed because it is too large Load Diff