Upgrade to 6.3 and unbreak.

Changelog at <http://www.opencascade.com/pub/doc/Release_Notes_6.3.pdf>.
This commit is contained in:
Thierry Thomas 2008-12-31 12:48:13 +00:00
parent d6072e63cd
commit f92836f3f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=225060
48 changed files with 52694 additions and 33007 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= opencascade
PORTVERSION= 6.2
PORTREVISION= 4
PORTVERSION= 6.3
CATEGORIES= cad science
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= thierry
@ -25,10 +24,6 @@ LIB_DEPENDS= itcl.${ITCL_VER}:${PORTSDIR}/lang/itcl \
fltk.1:${PORTSDIR}/x11-toolkits/fltk \
dps.0:${PORTSDIR}/x11/dgs
BROKEN= Does not compile
DEPRECATED= has been broken for more than 6 months
EXPIRATION_DATE=2009-01-19
USE_BZIP2= yes
USE_BISON= build
USE_TK= yes
@ -50,10 +45,11 @@ TIX_VER= 8184.1
TIX_MM= 8.1
LIB_TCLX= ${LOCALBASE}/lib/tclx${TCL_VER}/libtclx${TCL_VER}.so
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME}/ros
PATCH_WRKSRC= ${WRKDIR}/OpenCASCADE${PORTVERSION}.0
WRKSRC= ${PATCH_WRKSRC}/ros
REINPLACE_ARGS= -i ""
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool:15
LIBTOOLFILES= ros/configure
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-tk=${TK_LIBDIR} \
--with-java-include=${JAVA_HOME}/include \
@ -91,7 +87,8 @@ SUB_FILES= pkg-message LICENSE.${OPSYS}
PKGMESSAGE= ${WRKDIR}/pkg-message
FBSDBIN= DRAWEXE wokprocess woksh
DIR2INST= data tools wok
DIR2INST= data
#DIR2INST+= tools wok
SRC2INST= adm drv inc make src
.if !defined(NOPORTDOCS)
DIR2INST+= doc
@ -104,58 +101,6 @@ DIR2INST+= doc
GCC4WA= -ffriend-injection -fpermissive
.endif
.if defined(MAINTAINER_MODE) # Get the sources & roll the tarballs
PRIM_MASTER_SITES= http://files.opencascade.com/OCC_${PORTVERSION}_release/
PRIM_DISTFILES= OpenCASCADE_Linux.tgz
DISABLE_SIZE= yes
WRKPREP= ${WRKDIR}/prepare
#USE_LINUX= yes
LINBIN= uninstall
get-sources:
# The tarball provided by Open CASCADE requires Java (+ Linux emulation)
# to be extracted, and it is interactive!
. if !exists(${_DISTDIR}/${PRIM_DISTFILES})
${MKDIR} ${_DISTDIR}
cd ${_DISTDIR} && \
${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
${PRIM_MASTER_SITES}${PRIM_DISTFILES} ${FETCH_AFTER_ARGS}
. endif
. if !exists(${WRKPREP}/install.csh)
${MKDIR} ${PATCH_WRKSRC} ${WRKPREP} ${WRKDIR}/tmp
cd ${WRKPREP} && ${TAR} xf ${_DISTDIR}${PRIM_DISTFILES}
${RM} -f ${HOME}/vpd.properties
#${BRANDELF} -t Linux ${WRKPREP}/Linux/setupLinux.bin
@${ECHO_MSG} "========================================================================"
@${ECHO_MSG} "Accept license, change destination directory to ${PATCH_WRKSRC}"
@${ECHO_MSG} "select \"Complete installation\" and \"Install\"."
@${ECHO_MSG} "========================================================================"
#cd ${WRKPREP} && LANG=C JAVAHOME=. OS_NAME=${OPSYS} ./Linux/setupLinux.bin
cd ${WRKPREP} && \
${JAVA} -cp ./Linux/setup.jar -DOS_NAME=Linux -Dtemp.dir=${WRKDIR}/tmp run
. endif
tarballs: get-sources
# Remove Linux binaries
${RM} -rf ${LINBIN:S|^|${PATCH_WRKSRC}/|}
# Make separate tarballs / ports for samples
${MV} ${PATCH_WRKSRC}/samples ${WRKDIR}
cd ${WRKDIR} && ${TAR} cfj ${_DISTDIR}${DISTFILES} ${DISTNAME}
${MV} ${WRKDIR}/samples ${PATCH_WRKSRC}
cd ${WRKDIR} && \
${TAR} cfj ${_DISTDIR}${PORTNAME}-tutorial-${PORTVERSION}${EXTRACT_SUFX} \
${DISTNAME}/samples/tutorial
cd ${WRKDIR} && \
${TAR} cfj ${_DISTDIR}${PORTNAME}-samples-java-${PORTVERSION}${EXTRACT_SUFX} \
${DISTNAME}/samples/standard/java
cd ${WRKDIR} && \
${TAR} cfj ${_DISTDIR}${PORTNAME}-samples-qt-${PORTVERSION}${EXTRACT_SUFX} \
${DISTNAME}/samples/standard/qt
.endif # The sources tarballs are now available
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "Warning: to build OpenCascade, you should have at least"
@ -163,7 +108,6 @@ pre-everything::
@${ECHO_MSG}
pre-configure:
${CHMOD} a+x ${WRKSRC}/${CONFIGURE_SCRIPT}
${REINPLACE_CMD} -e 's|%%CASROOT%%|${CASROOT}|' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|%%TCL_LIBDIR%%|${TCL_LIBDIR}|' \
@ -185,11 +129,9 @@ pre-configure:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|'\
-e 's|/usr/X11R6|${LOCALBASE}|' \
-e 's|/usr/local/bin/tclsh8.4|${TCLSH}|'\
${PATCH_WRKSRC}/wok/site/wokinit.csh \
${WRKSRC}/src/WOKsite/wokinit.csh \
${WRKSRC}/src/OS/WOK.tcl
${REINPLACE_CMD} -e 's|$${TCLBIN}/tclsh|${TCLSH}|' \
${PATCH_WRKSRC}/wok/site/wok.csh \
${WRKSRC}/src/WOKsite/wok.csh
${REINPLACE_CMD} -e 's|/usr/bin/g++|${CXX}|' \
-e 's|/usr/bin/gcc|${CC}|' \
@ -204,15 +146,15 @@ pre-configure:
-e 's|%%TCL_INCDIR%%|${TCL_INCLUDEDIR}|'\
-e 's|%%JAVA_HOME%%|${JAVA_HOME}|' \
${WRKSRC}/src/WOKBuilderDef/CSF.edl \
${PATCH_WRKSRC}/wok/lib/CSF.edl \
${WRKSRC}/src/WOKBuilderDef/CMPLRS.edl \
${PATCH_WRKSRC}/wok/lib/CMPLRS.edl \
${WRKSRC}/src/WOKBuilderDef/LDEXE.edl \
${PATCH_WRKSRC}/wok/lib/LDEXE.edl \
${WRKSRC}/src/WOKBuilderDef/LDSHR.edl \
${PATCH_WRKSRC}/wok/lib/LDSHR.edl
cd ${WRKSRC} && \
${TAR} cfz ${WRKDIR}/ros_src_to_avoid_make_clean.tbz ${SRC2INST}
${WRKSRC}/src/WOKBuilderDef/LDSHR.edl
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/${CONFIGURE_SCRIPT} \
${WRKSRC}/src/WOKBuilderDef/CSF.edl
pre-install:
${MKDIR} ${CASROOT}
post-install:
${MKDIR} ${CASROOT}/bsd/bin ${OCCROOT}/samples
@ -232,17 +174,14 @@ post-install:
cd ${PATCH_WRKSRC} && \
${FIND} ${di} -type f -exec ${INSTALL_DATA} {} ${OCCROOT}/{} \;
.endfor
${LN} -sf ${PREFIX}/lib ${OCCROOT}/wok/lib/bsd
# ${LN} -sf ${PREFIX}/lib ${OCCROOT}/wok/lib/bsd
cd ${OCCROOT} && \
${FIND} ${DIR2INST} -name "*sh" -exec ${CHMOD} ${BINMODE} {} \;
.for es in env.csh env.ksh
${INSTALL_SCRIPT} ${WRKSRC}/${es} ${CASROOT}
.endfor
cd ${CASROOT} && \
${TAR} xfz ${WRKDIR}/ros_src_to_avoid_make_clean.tbz
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${CASROOT}/src
${FIND} ${OCCROOT} -name "*.orig" -exec ${RM} {} \;
${FIND} ${CASROOT}/drv -type d -empty -exec ${TOUCH} {}/.keep-me \;
${FIND} ${CASROOT} -type d -empty -exec ${TOUCH} {}/.keep-me \;
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}

View File

@ -1,3 +1,3 @@
MD5 (opencascade-6.2.tar.bz2) = d9d7b2a94ed8a61607e0b4992ebf7b19
SHA256 (opencascade-6.2.tar.bz2) = bacc9c90d4d2b09b43010001669c684c9479223f7d30c9ac1152daeffed2b0b4
SIZE (opencascade-6.2.tar.bz2) = 48068224
MD5 (opencascade-6.3.tar.bz2) = 71f511eadf5a87a762736857c7a2841e
SHA256 (opencascade-6.3.tar.bz2) = e4c3cb7e47306308dddfb73d6cbc29b79153459fe94e4d75741cf903cc30f48b
SIZE (opencascade-6.3.tar.bz2) = 78534561

View File

@ -0,0 +1,8 @@
--- ros/src/Standard/Standard_SStream.cxx~ Wed Mar 21 22:13:14 2007
+++ ros/src/Standard/Standard_SStream.cxx Thu Dec 13 22:16:13 2007
@@ -1,4 +1,5 @@
+#include <string>
#include <Standard_SStream.hxx>
#include <Standard_Type.hxx>

View File

@ -0,0 +1,18 @@
--- ros/inc/LDOM_OSStream.hxx.orig 2007-10-09 16:04:22.000000000 +0200
+++ ros/inc/LDOM_OSStream.hxx 2008-09-30 22:43:53.000000000 +0200
@@ -25,12 +25,12 @@
// and current element of sequence,
// also it has methods for the sequence management.
-#include <Standard_OStream.hxx>
-#include <Standard_Boolean.hxx>
-
#include <stdlib.h>
#include <stdio.h> /* EOF */
+#include <Standard_OStream.hxx>
+#include <Standard_Boolean.hxx>
+
class LDOM_StringElem; // defined in cxx file
class LDOM_SBuffer : public streambuf

View File

@ -0,0 +1,184 @@
--- ros/Makefile.in.orig 2008-09-09 17:52:16.000000000 +0200
+++ ros/Makefile.in 2008-12-22 19:22:52.000000000 +0100
@@ -45,9 +45,6 @@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
@@ -236,19 +233,6 @@
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --foreign Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
-
-$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
- cd $(srcdir) && $(AUTOCONF)
-
-$(ACLOCAL_M4): configure.in acinclude.m4
- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h1
@if test ! -f $@; then \
@@ -660,112 +644,112 @@
if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \
cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
- $(INSTALL) -d $(prefix)/inc; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/inc; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix)/OpenCAS/ros; \
fi; \
if [ "$$pd" != "$$bd" ]; then \
- cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \
+ cp -fr$(CP_$(platform)) $$bd/config.h $(prefix)/OpenCAS/ros; \
fi
- if [ -e $(prefix)/inc/config.h ]; then \
- unlink $(prefix)/inc/config.h; \
+ if [ -e $(prefix)/OpenCAS/ros/inc/config.h ]; then \
+ unlink $(prefix)/OpenCAS/ros/inc/config.h; \
fi
- cd $(prefix)/inc && ln -s ../config.h config.h
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ cd $(prefix)/OpenCAS/ros/inc && ln -s ../config.h config.h
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \
- $(INSTALL) -d $(prefix)/src; \
- $(INSTALL) -d $(prefix)/src/UnitsAPI; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \
- cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/UnitsAPI; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/OpenCAS/ros/src; \
+ cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix)/OpenCAS/ros; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(FoundationClasses_DIRS)"; \
if test "x$(FoundationClasses_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(ModelingData_DIRS)"; \
if test "x$(ModelingData_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(ModelingAlgorithms_DIRS)"; \
if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(Visualization_DIRS)"; \
if test "x$(Visualization_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(ApplicationFramework_DIRS)"; \
if test "x$(ApplicationFramework_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(DataExchange_DIRS)"; \
if test "x$(DataExchange_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(Draw_DIRS)"; \
if test "x$(Draw_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(WOK_DIRS)"; \
if test "x$(WOK_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi
- bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
+ bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix)/OpenCAS/ros; pd=`pwd`; cd $$bd; \
if [ "$$pd" != "$$sd" ]; then \
inst_dirs="$(Wrappers_DIRS)"; \
if test "x$(Wrappers_DIRS)" != "x"; then \
for d in $$inst_dirs; do \
- $(INSTALL) -d $(prefix)/src/$$d; \
- cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
+ $(INSTALL) -d $(prefix)/OpenCAS/ros/src/$$d; \
+ cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/OpenCAS/ros/src; \
done; \
fi; \
fi

View File

@ -0,0 +1,27 @@
--- ros/src/OSD/OSD_Environment.cxx.orig Wed Mar 21 22:12:48 2007
+++ ros/src/OSD/OSD_Environment.cxx Thu Dec 13 21:25:36 2007
@@ -1,18 +1,18 @@
#ifndef WNT
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#include <errno.h>
+
#include <Standard_NullObject.hxx>
#include <Standard_ConstructionError.hxx>
#include <Standard_Failure.hxx>
#include <Standard_Mutex.hxx>
#include <OSD_Environment.ixx>
#include <OSD_WhoAmI.hxx>
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#include <errno.h>
static const OSD_WhoAmI Iam = OSD_WEnvironment;

View File

@ -0,0 +1,24 @@
--- ros/adm/make/Makefile.in.orig 2008-09-09 17:52:26.000000000 +0200
+++ ros/adm/make/Makefile.in 2008-10-05 14:51:19.000000000 +0200
@@ -52,9 +52,6 @@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
@@ -250,11 +247,6 @@
all: all-recursive
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --foreign adm/make/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo

View File

@ -1,23 +1,11 @@
--- ./ros/configure.orig Wed Mar 21 22:14:31 2007
+++ ./ros/configure Thu Mar 22 00:04:44 2007
@@ -12479,7 +12479,9 @@
case $platform in
--- ./ros/configure.orig 2008-09-09 18:18:13.000000000 +0200
+++ ./ros/configure 2008-09-30 22:47:12.000000000 +0200
@@ -12826,6 +12826,8 @@
Linux*) CXXFLAGS="$CXXFLAGS -DLIN -DLININTEL -D_GNU_SOURCE=1"
CFLAGS="$CFLAGS -DLIN -DLININTEL -fexceptions";;
CFLAGS="$CFLAGS -DLIN -DLININTEL -fexceptions"
LDFLAGS="$LDFLAGS -lstdc++";;
+ FreeBSD*) CXXFLAGS="$CXXFLAGS -DFREEBSD -D$ARCH -D_GNU_SOURCE=1"
+ CFLAGS="$CFLAGS -DFREEBSD -D$ARCH -fexceptions";;
SunOS*) CXXFLAGS="$CXXFLAGS -Usun -DSOLARIS"
CFLAGS="$CFLAGS -Usun -DSOLARIS";;
OSF1*) CXXFLAGS="$CXXFLAGS -DDECOSF1 -D__USE_STD_IOSTREAM -D_RWSTD_NO_EXCEPTIONS"
@@ -14722,8 +14724,8 @@
INCLUDE="$STLPort_INCLUDES $INCLUDE"
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$INCLUDE $CPPFLAGS"
-CXXFLAGS_save=$CPPFLAGS
-CXXFLAGS="$INCLUDE $CPPFLAGS"
+CXXFLAGS_save=$CXXFLAGS
+CXXFLAGS="$INCLUDE $CXXFLAGS"
LDFLAGS_save=$LDFLAGS
if test -d "${with_stlport_library}" ; then
STLPort_LIB="-L`(cd ${with_stlport_library}; pwd)` -l$STLPort_LIB_CC"
SunOS*) CXXFLAGS="$CXXFLAGS -Usun -DSOLARIS -instances=static"
CFLAGS="$CFLAGS -Usun -DSOLARIS -instances=static"
LDFLAGS="$LDFLAGS -instances=static";;

View File

@ -1,10 +1,10 @@
--- ./ros/env.csh.orig Wed Mar 21 22:14:25 2007
+++ ./ros/env.csh Wed Mar 21 23:30:08 2007
--- ./ros/env.csh.orig 2008-09-03 07:44:21.000000000 +0200
+++ ./ros/env.csh 2008-10-01 00:02:45.000000000 +0200
@@ -1,16 +1,18 @@
#!/bin/csh -f
-setenv CASROOT /usr/ports/cad/opencascade/work/opencascade-6.2/ros
+setenv %%CASROOT%%
-setenv CASROOT "Open CASCADE location/ros"
+setenv CASROOT %%CASROOT%%
set OS_NAME=`uname`
if ( $?PATH ) then
- setenv PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin:$PATH

View File

@ -1,10 +1,11 @@
--- ./ros/env.ksh.orig Wed Mar 21 22:14:25 2007
+++ ./ros/env.ksh Wed Mar 21 23:37:24 2007
--- ./ros/env.ksh.orig 2008-09-03 07:44:51.000000000 +0200
+++ ./ros/env.ksh 2008-10-01 00:01:34.000000000 +0200
@@ -1,17 +1,19 @@
#!/bin/ksh -f
-#!/bin/ksh -f
+#! %%LOCALBASE%%/bin/ksh -f
-export CASROOT=/usr/ports/cad/opencascade/work/opencascade-6.2/ros
+export CASROOT=%%CASROOT%%
-export CASROOT="Open CASCADE location/ros"
+export CASROOT="%%CASROOT%%"
OS_NAME=`uname`
if [ -z "PATH" ];
-then PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin;
@ -18,8 +19,8 @@
-else LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH;
+if [ $OS_NAME != "FreeBSD" ]; then
+ if [ -z "LD_LIBRARY_PATH" ];
+ then LD_LIBRARY_PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib;
+ else LD_LIBRARY_PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH;
+ then LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib;
+ else LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH;
+ fi
+ export LD_LIBRARY_PATH
fi

View File

@ -0,0 +1,8 @@
--- ./ros/env_DRAW.sh.orig 2006-07-11 14:51:04.000000000 +0200
+++ ./ros/env_DRAW.sh 2008-12-29 14:38:44.000000000 +0100
@@ -1,4 +1,4 @@
-#!/bin/ksh -f
+#!/bin/sh -f
OS_NAME=`uname`
if [ -z "PATH" ];

View File

@ -1,11 +0,0 @@
--- ros/src/IncludeLibrary/IncludeLibrary_NTD_interface.h.orig Mon Oct 29 18:01:42 2001
+++ ros/src/IncludeLibrary/IncludeLibrary_NTD_interface.h Thu Aug 10 21:46:28 2006
@@ -352,7 +352,7 @@
int k_synch ,
PREAD_AST_MBX func,
PSTATUS sts);
-#if !defined(__hpux) && !defined(HPUX) && !defined(__osf__) && !defined(DECOSF1) && !defined(WNT) && !defined(LIN) && !defined(linux) && !defined(AIX) && !defined(_AIX)
+#if !defined(__hpux) && !defined(HPUX) && !defined(__osf__) && !defined(DECOSF1) && !defined(WNT) && !defined(LIN) && !defined(linux) && !defined(AIX) && !defined(_AIX) && !defined(__FreeBSD__)
extern
#ifdef CSF1
"C" {

View File

@ -1,11 +0,0 @@
--- ros/src/IncludeLibrary/IncludeLibrary_osd_dlopen.h.orig Fri Dec 5 19:02:29 2003
+++ ros/src/IncludeLibrary/IncludeLibrary_osd_dlopen.h Thu Aug 10 21:52:39 2006
@@ -83,7 +83,7 @@
// return cxxshl_load( Path , BIND_IMMEDIATE ,0L);
// ===> findsym( &NULL ... for HP
-#elif defined(sun) || defined(SOLARIS) || defined(IRIX) || defined(sgi) || defined(linux) || defined(LIN)
+#elif defined(sun) || defined(SOLARIS) || defined(IRIX) || defined(sgi) || defined(linux) || defined(LIN) || defined(__FreeBSD__)
if ( Path != NULL ) {
if ( LazyMode )
handle = dlopen( Path , RTLD_LAZY | RTLD_GLOBAL );

View File

@ -1,11 +0,0 @@
--- ros/src/OSD/OSD_Chronometer.cxx.orig Fri Aug 26 18:19:13 2005
+++ ros/src/OSD/OSD_Chronometer.cxx Thu Aug 10 21:57:15 2006
@@ -104,7 +104,7 @@
// (man times,limits.h, man sysconf)
// cout << "Nombre de clicks par seconde : " << CLK_TCK << endl;
//modified by NIZNHY-PKV Fri Mar 25 17:15:12 2005f
-#if defined(LIN) || defined(linux)
+#if defined(LIN) || defined(linux) || defined(__FreeBSD__)
static long aCLK_TCK=sysconf(_SC_CLK_TCK);
//
Cumul_user += (Standard_Real) diffr_user / aCLK_TCK ;

View File

@ -1,11 +0,0 @@
--- ./ros/src/OpenGl/OpenGl_togl_begin_layer_mode.c.orig Thu Apr 21 15:09:03 2005
+++ ./ros/src/OpenGl/OpenGl_togl_begin_layer_mode.c Sun Jul 2 01:17:50 2006
@@ -19,7 +19,7 @@
* Includes
*/
-#include <malloc.h>
+#include <stdlib.h>
#include <OpenGl_tgl_all.h>

View File

@ -1,15 +0,0 @@
--- ./ros/src/OpenGl/OpenGl_togl_markercontextgroup.c.orig Thu Apr 21 15:09:02 2005
+++ ./ros/src/OpenGl/OpenGl_togl_markercontextgroup.c Sun Jul 2 07:03:39 2006
@@ -39,7 +39,11 @@
#include <GL/gl.h>
#include <GL/glu.h>
-#include <malloc.h>
+#ifdef __FreeBSD__
+# include <stdlib.h>
+#else
+# include <malloc.h>
+#endif
typedef struct
{

View File

@ -1,11 +0,0 @@
--- ./ros/src/Standard/Standard_ErrorHandler.cxx.orig Wed Mar 21 22:13:14 2007
+++ ./ros/src/Standard/Standard_ErrorHandler.cxx Fri Mar 23 19:35:12 2007
@@ -33,7 +33,7 @@
static inline Standard_Integer GetThreadID()
{
#ifndef WNT
- return pthread_self();
+ return (Standard_Integer) pthread_self();
#else
return GetCurrentThreadId();
#endif

View File

@ -1,11 +0,0 @@
--- ros/src/Standard/Standard_ExtString.cxx.orig Fri Sep 21 10:02:01 2001
+++ ros/src/Standard/Standard_ExtString.cxx Thu Aug 10 21:41:33 2006
@@ -40,7 +40,7 @@
if ( (((long ) Value ) & 3 ) == 2 ) {
aHashCode = Value[ 0 ] ;
-#if defined(WNT) || defined(DECOSF1) || defined(LININTEL)
+#if defined(WNT) || defined(DECOSF1) || defined(LININTEL) || defined(__FreeBSD__)
aHashCode = aHashCode << 16 ;
#endif
aValue = &Value[1] ;

View File

@ -1,11 +0,0 @@
--- ./ros/src/Standard/Standard_MMgrOpt.cxx.orig Wed Mar 21 22:13:14 2007
+++ ./ros/src/Standard/Standard_MMgrOpt.cxx Wed Mar 21 23:45:29 2007
@@ -258,7 +258,7 @@
perror("ERR_MEMRY_FAIL");
#endif
-#if defined(IRIX) || defined(__sgi) || defined(SOLARIS) || defined(__sun) || defined(LIN) || defined(linux)
+#if defined(IRIX) || defined(__sgi) || defined(SOLARIS) || defined(__sun) || defined(LIN) || defined(linux) || defined(__FreeBSD__)
if ((myMMap = open ("/dev/zero", O_RDWR)) < 0) {
if ((myMMap = open ("/dev/null", O_RDWR)) < 0){
myMMap = 0;

View File

@ -1,163 +0,0 @@
--- ros/src/WOKBuilderDef/CMPLRS.edl.orig Fri Mar 5 18:48:48 2004
+++ ros/src/WOKBuilderDef/CMPLRS.edl Wed Aug 9 23:27:51 2006
@@ -483,6 +483,160 @@
+-- ###### ##### ###### --
+-- # # # # # # --
+-- # # # # # --
+-- ###### ##### # # --
+-- # # # # # --
+-- # # # # # # --
+-- ###### ##### ###### --
+
+
+ @if ( %Station == "bsd" ) then
+
+ @template CMPLRS_C_DTmpFile (%TmpFile) is
+ $>& %TmpFile \
+ @end;
+
+ @template CMPLRS_CXX_DTmpFile (%TmpFile) is
+ $>& %TmpFile \
+ @end;
+
+ @template CMPLRS_F77_DTmpFile (%TmpFile) is
+ $ \
+ @end;
+
+ @if ( %DebugMode == "True" ) then
+ @set %CMPLRS_CXX_ModeOpt = "-g -O0 -DDEB -D_DEBUG";
+ @set %CMPLRS_C_ModeOpt = "-g -O0 -DDEB -D_DEBUG";
+ @set %CMPLRS_F77_ModeOpt = "-g -DDEB -D_DEBUG";
+ @else
+ @set %CMPLRS_CXX_ModeOpt = "%%CXXFLAGS%% -DNDEBUG -DNo_Exception";
+ @set %CMPLRS_C_ModeOpt = "%%CFLAGS%% -DNDEBUG -DNo_Exception";
+ @set %CMPLRS_F77_ModeOpt = "%%FFLAGS%% -DNDEBUG -DNo_Exception";
+ @endif;
+
+ @set %CMPLRS_CXX_WOKDirectives = "-MD ";
+ @set %CMPLRS_C_WOKDirectives = "-MD ";
+ @set %CMPLRS_F77_WOKDirectives = "";
+
+
+ @template CMPLRS_F77_OptLine (
+ %CMPLRS_F77_COMPILER ,
+ %CMPLRS_F77_SysOptions ,
+ %CMPLRS_F77_ModeOpt
+ ) is
+ $Following parameters make up F77 compilation command in this order:
+ $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER
+ $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions
+ $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt
+ @end;
+
+ @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt ,
+ %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is
+ $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o
+ $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile
+ $ touch %OutputDir/%BaseName.m
+ @end;
+
+
+ @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER ,
+ %CMPLRS_C_SysOptions ,
+ %CMPLRS_C_Options ,
+ %CMPLRS_C_ModeOpt ,
+ %CMPLRS_C_INCLUDE ,
+ %IncDirectives ,
+ %CMPLRS_Unit_C_Options ,
+ %CMPLRS_C_WOKDirectives ,
+ %Entity ) is
+ $Following parameters make up C compilation command in this order:
+ $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER
+ $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions
+ $CMPLRS_C_Options = %CMPLRS_C_Options
+ $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options
+ $CMPLRS_C_INCLUDE = %CMPLRS_C_INCLUDE
+ $CMPLRS_C_WOKDirectives= %CMPLRS_C_WOKDirectives
+ $Dynamic include directives are :
+ $%IncDirectives
+ @end;
+ @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER ,
+ %CMPLRS_C_SysOptions ,
+ %CMPLRS_C_Options ,
+ %CMPLRS_C_ModeOpt ,
+ %CMPLRS_CXX_DBMSOpt ,
+-- %C_Export ,
+ %CMPLRS_C_INCLUDE ,
+ %IncDirectives ,
+ %CMPLRS_Unit_C_Options ,
+ %CMPLRS_C_WOKDirectives ,
+ %Source ,
+ %BaseName,
+ %OutputDir ,
+ %TmpFile , %Entity ) is
+ $cd %OutputDir && %CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o
+ $set stat = $status
+ $echo '$C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile
+ $if ( $stat == 0 ) then
+ $ if ( -e %OutputDir/%BaseName.d ) then
+ $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m
+ $ endif
+ $endif
+ $set status = $stat
+ @end;
+
+ @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER,
+ %CMPLRS_CXX_SysOptions ,
+ %CMPLRS_CXX_Options ,
+ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt ,
+ %CMPLRS_CXX_INCLUDE ,
+ %CMPLRS_CXX_WOKDirectives ,
+ %IncDirectives ,
+ %DBDirectives ,
+ %Entity ) is
+ $Following parameters make up C++ compilation command in this order:
+ $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER
+ $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions
+ $CMPLRS_CXX_Options = %CMPLRS_CXX_Options
+ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt
+ $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt
+ $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE
+ $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
+ $Dynamic include directives are :
+ $%IncDirectives
+ @end;
+
+ @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_COMPILER,
+ %CMPLRS_CXX_SysOptions ,
+ %CMPLRS_CXX_Options ,
+ %CMPLRS_CXX_ModeOpt ,
+ %CMPLRS_CXX_DBMSOpt ,
+ %CMPLRS_CXX_INCLUDE ,
+ %CMPLRS_CXX_WOKDirectives ,
+ %IncDirectives ,
+ %DBDirectives ,
+ %Source,
+ %BaseName,
+ %OutputDir ,
+ %TmpFile , %Entity ) is
+ $cd %OutputDir && %CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile
+ $set stat = $status
+
+ $if ( $stat == 0 ) then
+ $ if ( -e %OutputDir/%BaseName.d ) then
+ $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m
+ $ endif
+ $endif
+ $if( -e %TmpFile ) grep ':' %TmpFile
+ $/bin/rm -f %TmpFile
+ $set status = $stat
+
+ @end;
+
+
+ @endif;
+
+
+
-- ##### # # # # --
-- # # # # ## # --
-- # # # # # # --

View File

@ -1,86 +0,0 @@
--- ros/src/WOKBuilderDef/CSF.edl.orig Mon Mar 20 16:48:53 2006
+++ ros/src/WOKBuilderDef/CSF.edl Thu Aug 10 17:47:22 2006
@@ -181,6 +181,83 @@
@endif;
--
+ -- For FreeBSD platforms
+ --
+ @if ( %Station == "bsd" ) then
+ @if ( %DBMS == "OBJS" ) then
+ @set %CSF_OODBLibs = "";
+ @endif;
+
+ --<< TODO : If applicable , modify the location of the C++ compiler.
+ @set %CSF_CXX_COMPILER = "/usr/bin/g++ ";
+ -->> END TODO
+ @set %STLPortHome = "";
+ @if ( %STLPortHome != "") then
+ @string %STLPortInclude = "-I" %STLPortHome "/stlport ";
+ @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_%%STL_COMPILER%%";
+ @else
+ @set %STLPortInclude = "%%LOCALBASE%%/include/stlport";
+ @string %STLPortLib = "-L%%LOCALBASE%%/lib -lstlport_%%STL_COMPILER%%";
+ @endif;
+ @set %CSF_CXX_SysOptions = "%%CXXFLAGS%% -fPIC -funsigned-char -Wall -fmessage-length=0";
+ @string %CSF_CXX_Options = "-DLIN -DLININTEL -DNO_CXX_EXCEPTION " %STLPortInclude;
+
+ --<< TODO : If applicable , modify the location of the C compiler.
+ @set %CSF_C_COMPILER = "/usr/bin/gcc ";
+ @string %CSF_C_INCLUDE += "";
+ -->> END TODO
+
+ @set %CSF_C_SysOptions = "%%CFLAGS%% -fPIC -funsigned-char -Wall";
+ @set %CSF_C_Options = "-DLIN -DLININTEL ";
+
+ --<< TODO : If applicable , modify the location of the Fortran compiler.
+ @set %CSF_F77_COMPILER = "/usr/bin/f77 ";
+ -->> END TODO
+
+ @set %CSF_F77_SysOptions = "%%FFLAGS%% -fPIC ";
+
+ @set %CSF_LINKER = "/usr/bin/ld ";
+ @set %CSF_CXX_COMPILERLINKER = %CSF_CXX_COMPILER ;
+ @set %CSF_LINKER_DBMSOpt = "";
+ @set %CSF_LINKER_SysShared = "-shared ";
+ @set %CSF_LINKER_SysExe = "";
+ @set %CSF_LINKER_SysOpt = "";
+ @set %CSF_LINKER_SysLib = "-ldl -lc ";
+ @set %CSF_LINKER_CheckOpt = " -nostartfiles ";
+ @set %CSF_LINKER_CheckOut = " -o /dev/null ";
+ @set %CSF_SOCKETLibs = " -ldl" ;
+
+ --<< TODO : If applicable , modify the root location where TCL is installed.
+ @set %CSF_TCL_HOME = "%%LOCALBASE%%";
+ -->> END TODO
+
+ @string %CSF_TCL_INCLUDE = "%%TCL_INCDIR%% ";
+
+ --<< TODO : If applicable , modify the root location where Java is installed.
+ @set %CSF_JavaHome = "%%JAVA_HOME%%";
+ -->> END TODO
+
+ @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/freebsd ";
+ @set %CSF_JAVA_COMPILER = "javac";
+ @set %CSF_JAVA_JNI = "javah";
+
+ @set %CSF_DOXIGEN = "%%LOCALBASE%%/bin/doxygen";
+ @set %CSF_GRAPHVIZ_HOME = "%%LOCALBASE%%/lib/graphviz";
+
+ @set %CSF_X11_INCLUDE = "-I/usr/X11R6/include ";
+ @set %CSF_OPENGL_INCLUDE = "-I/usr/X11R6/include ";
+
+ @set %X11_LIB = "/usr/X11R6/lib";
+
+ @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu -lXi ";
+
+ @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL " ;
+
+ @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -ltcl ";
+ @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -ltk -L" %X11_LIB " -lX11";
+ @endif;
+
+ --
-- For SunOS platforms
--
@if ( %Station == "sun" ) then

View File

@ -1,13 +0,0 @@
--- ros/src/WOKBuilderDef/JAVA.edl.orig Tue Nov 13 18:01:22 2001
+++ ros/src/WOKBuilderDef/JAVA.edl Wed Aug 9 23:53:21 2006
@@ -32,6 +32,10 @@
@string %CXX_JAVA += " -I" %CSF_JavaHome "/include/solaris ";
@endif;
+@if ( %Station == "bsd" ) then
+ @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/freebsd ";
+@endif;
+
@if ( %Station == "lin" ) then
@string %CXX_JAVA += " -I" %CSF_JavaHome "/include/linux ";
@endif;

View File

@ -1,16 +0,0 @@
--- ros/src/WOKBuilderDef/LD.edl.orig Fri Sep 21 10:07:39 2001
+++ ros/src/WOKBuilderDef/LD.edl Wed Aug 9 23:56:04 2006
@@ -70,6 +70,13 @@
@endif;
+-- Definition du Link FreeBSD
+ @if ( %Station == "bsd" ) then
+ @template LD_Footer ( %Station ) is
+ $ ;
+ @end;
+ @endif;
+
-- Definition du Link Sun/Solaris 2.4
@if ( %Station == "sun" ) then

View File

@ -1,11 +0,0 @@
--- ros/src/WOKBuilderDef/LDAR.edl.orig Fri Sep 21 10:07:39 2001
+++ ros/src/WOKBuilderDef/LDAR.edl Wed Aug 9 23:58:05 2006
@@ -20,7 +20,7 @@
@if( %Station != "sun" ) then
@set %RmCmd = "/usr/bin/rm";
- @if ( %Station == "hp" || %Station == "lin" ) then
+ @if ( %Station == "hp" || %Station == "lin" || %Station == "bsd" ) then
@set %RmCmd = "/bin/rm";
@endif;

View File

@ -1,14 +0,0 @@
--- ros/src/WOKBuilderDef/LDEXE.edl.orig Thu Nov 27 09:40:28 2003
+++ ros/src/WOKBuilderDef/LDEXE.edl Thu Aug 10 00:01:39 2006
@@ -83,5 +83,11 @@
@end;
@endif;
+ @if( %Station == "bsd" ) then
+ @template LDEXE_Header ( %Target , %STLPortLib ) is
+ $/usr/bin/g++ -o %Target %STLPortLib \
+ @end;
+ @endif;
+
@endif;

View File

@ -1,37 +0,0 @@
--- ros/src/WOKBuilderDef/LDSHR.edl.orig Fri Sep 21 10:07:40 2001
+++ ros/src/WOKBuilderDef/LDSHR.edl Thu Aug 10 15:57:59 2006
@@ -75,6 +75,34 @@
@endif;
+ @if ( %Station == "bsd" ) then
+ @set %LDSHR_Footer = "LDSHR_Footer";
+ @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
+
+ @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
+ $\^
+ @end;
+
+ @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt, %CSF_LINKER_SysShared ) is
+ $/usr/bin/g++ %CSF_LINKER_SysShared %LDSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LDSHR_Footer () is
+ $ ;
+ $ set ld_status=$status;
+ @end;
+
+ @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt,%CSF_LINKER_CheckOpt ) is
+ $/usr/bin/ld %CSF_LINKER_CheckOpt %LDSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LDSHR_CheckUndefFooter () is
+ $ ;
+ $ set status=$ld_status;
+ @end;
+ @endif;
+
+
@if( %Station == "sun" ) then
@set %LDSHR_Footer = "LDSHR_Footer";
@set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";

View File

@ -1,41 +0,0 @@
--- ros/src/WOKBuilderDef/LINKSHR.edl.orig Tue Jul 6 22:05:28 2004
+++ ros/src/WOKBuilderDef/LINKSHR.edl Thu Aug 10 16:03:17 2006
@@ -239,6 +239,38 @@
$%CSF_LINKER %CSF_LINKER_CheckOpt %CSF_LINKER_CheckOut \
@end;
+ @if ( %Station == "bsd" ) then
+ @set %LINKSHR_Footer = "LINKSHR_Footer";
+ @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
+
+ @template LINKSHR_ArchiveFullPath () is
+ $\^
+ @end;
+
+ @template LINKSHR_Header (%CSF_CXX_COMPILERLINKER, %Target, %LINKSHR_DBMSOpt, %CSF_LINKER_SysShared ) is
+ $%CSF_CXX_COMPILERLINKER %CSF_LINKER_SysShared %LINKSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LINKSHR_Footer (%CSF_LINKER_SysLib) is
+ $ %CSF_LINKER_SysLib;
+ $ set ld_status=$status
+ $ if ( $?LD_LIBRARY_PATH ) then
+ $ set ld_library_path=$LD_LIBRARY_PATH
+ $ endif
+ @end;
+
+ @template LINKSHR_CheckUndefHeader (
+ %Target, %LINKSHR_DBMSOpt, %LD_LIBRARY_PATH, %CSF_LINKER_CheckOpt, %CSF_LINKER_CheckOut, %CSF_LINKER
+ ) is
+ $if ( $?LD_LIBRARY_PATH ) then
+ $ setenv LD_LIBRARY_PATH %LD_LIBRARY_PATH:${LD_LIBRARY_PATH}
+ $else
+ $ setenv LD_LIBRARY_PATH %LD_LIBRARY_PATH
+ $endif
+ $echo "Check of undefined symbols with LD_LIBRARY_PATH : $LD_LIBRARY_PATH"
+ $%CSF_LINKER %CSF_LINKER_CheckOpt %CSF_LINKER_CheckOut \
+ @end;
+
@template LINKSHR_CheckUndefFooter () is
$ ;
$ if ( $status ) then

View File

@ -1,39 +0,0 @@
--- ros/src/WOKLibs/pkgIndex.tcl.orig Fri Sep 21 10:07:48 2001
+++ ros/src/WOKLibs/pkgIndex.tcl Tue Aug 1 08:49:51 2006
@@ -30,6 +30,36 @@
###########################################
+if { $tcl_platform(os) == "FreeBSD" } {
+package ifneeded Woktools 2.0 "tclPkgSetup $dir/bsd Woktools 2.0 {
+ {libwoktoolscmd.so load {
+ msgprint msgisset msgissetcmd msgissetlong msgset msgsetcmd
+ msgsetlong msgunset msgunsetcmd msgunsetlong msgsetheader
+ msgunsetheader msgissetheader msginfo}}}"
+
+package ifneeded Wokutils 2.0 "tclPkgSetup $dir Wokutils 2.0 {
+ {libwokutilscmd.so load { wokcmp} } }"
+
+package ifneeded Wok 2.0 "package require Woktools;
+ tclPkgSetup $dir/bsd Wok 2.0 {
+ {libwokcmd.so load {
+ Sinfo Wcreate Winfo Wrm Wdeclare fcreate finfo frm pinfo screate
+ sinfo srm ucreate uinfo umpmake umake urm w_info wcreate
+ wokcd wokclose wokinfo wokparam wokprofile wokenv wrm wmove
+ stepinputaddstepinputinfo stepoutputadd stepoutputinfo stepaddexecdepitem }}}"
+
+package ifneeded Ms 2.0 "package require Woktools;
+ tclPkgSetup $dir/bsd Ms 2.0 {
+ {libmscmd.so load {
+ mscheck msclear msclinfo msextract msgeninfo msinfo msinstinfo
+ msmmthinfo msmthinfo mspkinfo msschinfo msrm msstdinfo
+ mstranslate msxmthinfo}}}"
+
+
+ }
+
+###########################################
+
if { $tcl_platform(os) == "SunOS" } {
package ifneeded Woktools 2.0 "tclPkgSetup $dir/sun Woktools 2.0 {
{libwoktoolscmd.so load {

View File

@ -1,12 +0,0 @@
--- ros/src/WOKsite/wok.csh.orig Fri Mar 5 18:48:47 2004
+++ ros/src/WOKsite/wok.csh Tue Aug 1 20:43:03 2006
@@ -57,6 +57,9 @@
case SunOS:
setenv WOKSTATION "sun"
breaksw
+ case FreeBSD:
+ setenv WOKSTATION "bsd"
+ breaksw
case Linux:
setenv WOKSTATION "lin"
breaksw

View File

@ -1,43 +0,0 @@
--- ros/src/WOKsite/wokinit.csh.orig Fri May 6 20:12:00 2005
+++ ros/src/WOKsite/wokinit.csh Wed Aug 9 21:56:14 2006
@@ -5,24 +5,26 @@
set OS_PLATFORM=""
if ( $OS_NAME == "SunOS" ) then
set OS_PLATFORM="sun"
+else if ( $OS_NAME == "FreeBSD" ) then
+ set OS_PLATFORM="bsd"
else if ( $OS_NAME == "Linux" ) then
set OS_PLATFORM="lin"
endif
setenv WOKHOME ${CASROOT}/../wok
setenv HOME ${WOKHOME}/site
-setenv WOK_LIBPATH ${WOKHOME}/lib/${OS_PLATFORM}
+setenv WOK_LIBPATH ${WOKHOME}/lib/
setenv WOK_ROOTADMDIR ${WOKHOME}/wok_entities
setenv WOK_SESSIONID ${HOME}
-setenv TCLHOME ${CASROOT}/../3rdparty/${OS_NAME}/tcltk
-setenv TCLLIBPATH "${TCLHOME}/lib:${WOK_LIBPATH}"
+setenv TCLHOME ${WOK_LIBPATH}
+setenv TCLLIBPATH "${WOK_LIBPATH}"
set TCLLIB=${TCLHOME}/lib
set TCLBIN=${TCLHOME}/bin
-setenv LD_LIBRARY_PATH "/usr/lib:/usr/X11R6/lib:/lib:${TCLLIB}:${WOKHOME}/lib/:${WOKHOME}/lib/${OS_PLATFORM}"
+setenv LD_LIBRARY_PATH "/usr/lib:/usr/X11R6/lib:/lib:${TCLLIB}:${WOKHOME}/lib/:${WOKHOME}/lib/${OS_PLATFORM}/"
setenv path "/usr/bin /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /usr/X11R6/bin /etc"
setenv PATH "/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/etc"
@@ -32,5 +34,8 @@
cd ${WOK_ROOTADMDIR}
+if ( $OS_NAME == "FreeBSD" ) then
+/usr/local/bin/tclsh8.4 < ${WOKHOME}/site/CreateFactory.tcl
+else
${TCLBIN}/tclsh < ${WOKHOME}/site/CreateFactory.tcl
-
+endif

View File

@ -1,163 +0,0 @@
--- wok/lib/CMPLRS.edl.orig Fri Mar 5 18:48:48 2004
+++ wok/lib/CMPLRS.edl Wed Aug 9 23:27:51 2006
@@ -483,6 +483,160 @@
+-- ###### ##### ###### --
+-- # # # # # # --
+-- # # # # # --
+-- ###### ##### # # --
+-- # # # # # --
+-- # # # # # # --
+-- ###### ##### ###### --
+
+
+ @if ( %Station == "bsd" ) then
+
+ @template CMPLRS_C_DTmpFile (%TmpFile) is
+ $>& %TmpFile \
+ @end;
+
+ @template CMPLRS_CXX_DTmpFile (%TmpFile) is
+ $>& %TmpFile \
+ @end;
+
+ @template CMPLRS_F77_DTmpFile (%TmpFile) is
+ $ \
+ @end;
+
+ @if ( %DebugMode == "True" ) then
+ @set %CMPLRS_CXX_ModeOpt = "-g -O0 -DDEB -D_DEBUG";
+ @set %CMPLRS_C_ModeOpt = "-g -O0 -DDEB -D_DEBUG";
+ @set %CMPLRS_F77_ModeOpt = "-g -DDEB -D_DEBUG";
+ @else
+ @set %CMPLRS_CXX_ModeOpt = "%%CXXFLAGS%% -DNDEBUG -DNo_Exception";
+ @set %CMPLRS_C_ModeOpt = "%%CFLAGS%% -DNDEBUG -DNo_Exception";
+ @set %CMPLRS_F77_ModeOpt = "%%FFLAGS%% -DNDEBUG -DNo_Exception";
+ @endif;
+
+ @set %CMPLRS_CXX_WOKDirectives = "-MD ";
+ @set %CMPLRS_C_WOKDirectives = "-MD ";
+ @set %CMPLRS_F77_WOKDirectives = "";
+
+
+ @template CMPLRS_F77_OptLine (
+ %CMPLRS_F77_COMPILER ,
+ %CMPLRS_F77_SysOptions ,
+ %CMPLRS_F77_ModeOpt
+ ) is
+ $Following parameters make up F77 compilation command in this order:
+ $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER
+ $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions
+ $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt
+ @end;
+
+ @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt ,
+ %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is
+ $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o
+ $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile
+ $ touch %OutputDir/%BaseName.m
+ @end;
+
+
+ @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER ,
+ %CMPLRS_C_SysOptions ,
+ %CMPLRS_C_Options ,
+ %CMPLRS_C_ModeOpt ,
+ %CMPLRS_C_INCLUDE ,
+ %IncDirectives ,
+ %CMPLRS_Unit_C_Options ,
+ %CMPLRS_C_WOKDirectives ,
+ %Entity ) is
+ $Following parameters make up C compilation command in this order:
+ $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER
+ $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions
+ $CMPLRS_C_Options = %CMPLRS_C_Options
+ $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options
+ $CMPLRS_C_INCLUDE = %CMPLRS_C_INCLUDE
+ $CMPLRS_C_WOKDirectives= %CMPLRS_C_WOKDirectives
+ $Dynamic include directives are :
+ $%IncDirectives
+ @end;
+ @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER ,
+ %CMPLRS_C_SysOptions ,
+ %CMPLRS_C_Options ,
+ %CMPLRS_C_ModeOpt ,
+ %CMPLRS_CXX_DBMSOpt ,
+-- %C_Export ,
+ %CMPLRS_C_INCLUDE ,
+ %IncDirectives ,
+ %CMPLRS_Unit_C_Options ,
+ %CMPLRS_C_WOKDirectives ,
+ %Source ,
+ %BaseName,
+ %OutputDir ,
+ %TmpFile , %Entity ) is
+ $cd %OutputDir && %CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o
+ $set stat = $status
+ $echo '$C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt %CMPLRS_C_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile
+ $if ( $stat == 0 ) then
+ $ if ( -e %OutputDir/%BaseName.d ) then
+ $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m
+ $ endif
+ $endif
+ $set status = $stat
+ @end;
+
+ @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER,
+ %CMPLRS_CXX_SysOptions ,
+ %CMPLRS_CXX_Options ,
+ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt ,
+ %CMPLRS_CXX_INCLUDE ,
+ %CMPLRS_CXX_WOKDirectives ,
+ %IncDirectives ,
+ %DBDirectives ,
+ %Entity ) is
+ $Following parameters make up C++ compilation command in this order:
+ $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER
+ $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions
+ $CMPLRS_CXX_Options = %CMPLRS_CXX_Options
+ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt
+ $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt
+ $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE
+ $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives
+ $Dynamic include directives are :
+ $%IncDirectives
+ @end;
+
+ @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_COMPILER,
+ %CMPLRS_CXX_SysOptions ,
+ %CMPLRS_CXX_Options ,
+ %CMPLRS_CXX_ModeOpt ,
+ %CMPLRS_CXX_DBMSOpt ,
+ %CMPLRS_CXX_INCLUDE ,
+ %CMPLRS_CXX_WOKDirectives ,
+ %IncDirectives ,
+ %DBDirectives ,
+ %Source,
+ %BaseName,
+ %OutputDir ,
+ %TmpFile , %Entity ) is
+ $cd %OutputDir && %CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile
+ $set stat = $status
+
+ $if ( $stat == 0 ) then
+ $ if ( -e %OutputDir/%BaseName.d ) then
+ $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m
+ $ endif
+ $endif
+ $if( -e %TmpFile ) grep ':' %TmpFile
+ $/bin/rm -f %TmpFile
+ $set status = $stat
+
+ @end;
+
+
+ @endif;
+
+
+
-- ##### # # # # --
-- # # # # ## # --
-- # # # # # # --

View File

@ -1,86 +0,0 @@
--- wok/lib/CSF.edl.orig Wed Mar 22 18:48:06 2006
+++ wok/lib/CSF.edl Thu Aug 10 17:47:19 2006
@@ -181,6 +181,83 @@
@endif;
--
+ -- For FreeBSD platforms
+ --
+ @if ( %Station == "bsd" ) then
+ @if ( %DBMS == "OBJS" ) then
+ @set %CSF_OODBLibs = "";
+ @endif;
+
+ --<< TODO : If applicable , modify the location of the C++ compiler.
+ @set %CSF_CXX_COMPILER = "/usr/bin/g++ ";
+ -->> END TODO
+ @set %STLPortHome = "";
+ @if ( %STLPortHome != "") then
+ @string %STLPortInclude = "-I" %STLPortHome "/stlport ";
+ @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_%%STL_COMPILER%%";
+ @else
+ @set %STLPortInclude = "%%LOCALBASE%%/include/stlport";
+ @string %STLPortLib = "-L%%LOCALBASE%%/lib -lstlport_%%STL_COMPILER%%";
+ @endif;
+ @set %CSF_CXX_SysOptions = "%%CXXFLAGS%% -fPIC -funsigned-char -Wall -fmessage-length=0";
+ @string %CSF_CXX_Options = "-DLIN -DLININTEL -DNO_CXX_EXCEPTION " %STLPortInclude;
+
+ --<< TODO : If applicable , modify the location of the C compiler.
+ @set %CSF_C_COMPILER = "/usr/bin/gcc ";
+ @string %CSF_C_INCLUDE += "";
+ -->> END TODO
+
+ @set %CSF_C_SysOptions = "%%CFLAGS%% -fPIC -funsigned-char -Wall";
+ @set %CSF_C_Options = "-DLIN -DLININTEL ";
+
+ --<< TODO : If applicable , modify the location of the Fortran compiler.
+ @set %CSF_F77_COMPILER = "/usr/bin/f77 ";
+ -->> END TODO
+
+ @set %CSF_F77_SysOptions = "%%FFLAGS%% -fPIC ";
+
+ @set %CSF_LINKER = "/usr/bin/ld ";
+ @set %CSF_CXX_COMPILERLINKER = %CSF_CXX_COMPILER ;
+ @set %CSF_LINKER_DBMSOpt = "";
+ @set %CSF_LINKER_SysShared = "-shared ";
+ @set %CSF_LINKER_SysExe = "";
+ @set %CSF_LINKER_SysOpt = "";
+ @set %CSF_LINKER_SysLib = "-ldl -lc ";
+ @set %CSF_LINKER_CheckOpt = " -nostartfiles ";
+ @set %CSF_LINKER_CheckOut = " -o /dev/null ";
+ @set %CSF_SOCKETLibs = " -ldl" ;
+
+ --<< TODO : If applicable , modify the root location where TCL is installed.
+ @set %CSF_TCL_HOME = "%%LOCALBASE%%";
+ -->> END TODO
+
+ @string %CSF_TCL_INCLUDE = "%%TCL_INCDIR%% ";
+
+ --<< TODO : If applicable , modify the root location where Java is installed.
+ @set %CSF_JavaHome = "%%JAVA_HOME%%";
+ -->> END TODO
+
+ @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/freebsd ";
+ @set %CSF_JAVA_COMPILER = "javac";
+ @set %CSF_JAVA_JNI = "javah";
+
+ @set %CSF_DOXIGEN = "%%LOCALBASE%%/bin/doxygen";
+ @set %CSF_GRAPHVIZ_HOME = "%%LOCALBASE%%/lib/graphviz";
+
+ @set %CSF_X11_INCLUDE = "-I/usr/X11R6/include ";
+ @set %CSF_OPENGL_INCLUDE = "-I/usr/X11R6/include ";
+
+ @set %X11_LIB = "/usr/X11R6/lib";
+
+ @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu -lXi ";
+
+ @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL " ;
+
+ @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -ltcl ";
+ @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -ltk -L" %X11_LIB " -lX11";
+ @endif;
+
+ --
-- For SunOS platforms
--
@if ( %Station == "sun" ) then

View File

@ -1,13 +0,0 @@
--- wok/lib/JAVA.edl.orig Tue Nov 13 18:01:22 2001
+++ wok/lib/JAVA.edl Wed Aug 9 23:53:21 2006
@@ -32,6 +32,10 @@
@string %CXX_JAVA += " -I" %CSF_JavaHome "/include/solaris ";
@endif;
+@if ( %Station == "bsd" ) then
+ @string %CXX_JAVA += " -I" %CSF_JavaHome "/include/freebsd ";
+@endif;
+
@if ( %Station == "lin" ) then
@string %CXX_JAVA += " -I" %CSF_JavaHome "/include/linux ";
@endif;

View File

@ -1,16 +0,0 @@
--- wok/lib/LD.edl.orig Fri Sep 21 10:07:39 2001
+++ wok/lib/LD.edl Wed Aug 9 23:56:04 2006
@@ -70,6 +70,13 @@
@endif;
+-- Definition du Link FreeBSD
+ @if ( %Station == "bsd" ) then
+ @template LD_Footer ( %Station ) is
+ $ ;
+ @end;
+ @endif;
+
-- Definition du Link Sun/Solaris 2.4
@if ( %Station == "sun" ) then

View File

@ -1,11 +0,0 @@
--- wok/lib/LDAR.edl.orig Fri Sep 21 10:07:39 2001
+++ wok/lib/LDAR.edl Wed Aug 9 23:58:05 2006
@@ -20,7 +20,7 @@
@if( %Station != "sun" ) then
@set %RmCmd = "/usr/bin/rm";
- @if ( %Station == "hp" || %Station == "lin" ) then
+ @if ( %Station == "hp" || %Station == "lin" || %Station == "bsd" ) then
@set %RmCmd = "/bin/rm";
@endif;

View File

@ -1,14 +0,0 @@
--- ./wok/lib/LDEXE.edl.orig Thu Nov 27 09:40:28 2003
+++ ./wok/lib/LDEXE.edl Thu Aug 10 00:01:39 2006
@@ -83,5 +83,11 @@
@end;
@endif;
+ @if( %Station == "bsd" ) then
+ @template LDEXE_Header ( %Target , %STLPortLib ) is
+ $/usr/bin/g++ -o %Target %STLPortLib \
+ @end;
+ @endif;
+
@endif;

View File

@ -1,37 +0,0 @@
--- wok/lib/LDSHR.edl.orig Fri Sep 21 10:07:40 2001
+++ wok/lib/LDSHR.edl Thu Aug 10 15:57:59 2006
@@ -75,6 +75,34 @@
@endif;
+ @if ( %Station == "bsd" ) then
+ @set %LDSHR_Footer = "LDSHR_Footer";
+ @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
+
+ @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
+ $\^
+ @end;
+
+ @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt, %CSF_LINKER_SysShared ) is
+ $/usr/bin/g++ %CSF_LINKER_SysShared %LDSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LDSHR_Footer () is
+ $ ;
+ $ set ld_status=$status;
+ @end;
+
+ @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt,%CSF_LINKER_CheckOpt ) is
+ $/usr/bin/ld %CSF_LINKER_CheckOpt %LDSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LDSHR_CheckUndefFooter () is
+ $ ;
+ $ set status=$ld_status;
+ @end;
+ @endif;
+
+
@if( %Station == "sun" ) then
@set %LDSHR_Footer = "LDSHR_Footer";
@set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";

View File

@ -1,41 +0,0 @@
--- wok/lib/LINKSHR.edl.orig Tue Jul 6 22:05:28 2004
+++ wok/lib/LINKSHR.edl Thu Aug 10 16:03:17 2006
@@ -239,6 +239,38 @@
$%CSF_LINKER %CSF_LINKER_CheckOpt %CSF_LINKER_CheckOut \
@end;
+ @if ( %Station == "bsd" ) then
+ @set %LINKSHR_Footer = "LINKSHR_Footer";
+ @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
+
+ @template LINKSHR_ArchiveFullPath () is
+ $\^
+ @end;
+
+ @template LINKSHR_Header (%CSF_CXX_COMPILERLINKER, %Target, %LINKSHR_DBMSOpt, %CSF_LINKER_SysShared ) is
+ $%CSF_CXX_COMPILERLINKER %CSF_LINKER_SysShared %LINKSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LINKSHR_Footer (%CSF_LINKER_SysLib) is
+ $ %CSF_LINKER_SysLib;
+ $ set ld_status=$status
+ $ if ( $?LD_LIBRARY_PATH ) then
+ $ set ld_library_path=$LD_LIBRARY_PATH
+ $ endif
+ @end;
+
+ @template LINKSHR_CheckUndefHeader (
+ %Target, %LINKSHR_DBMSOpt, %LD_LIBRARY_PATH, %CSF_LINKER_CheckOpt, %CSF_LINKER_CheckOut, %CSF_LINKER
+ ) is
+ $if ( $?LD_LIBRARY_PATH ) then
+ $ setenv LD_LIBRARY_PATH %LD_LIBRARY_PATH:${LD_LIBRARY_PATH}
+ $else
+ $ setenv LD_LIBRARY_PATH %LD_LIBRARY_PATH
+ $endif
+ $echo "Check of undefined symbols with LD_LIBRARY_PATH : $LD_LIBRARY_PATH"
+ $%CSF_LINKER %CSF_LINKER_CheckOpt %CSF_LINKER_CheckOut \
+ @end;
+
@template LINKSHR_CheckUndefFooter () is
$ ;
$ if ( $status ) then

View File

@ -1,28 +0,0 @@
--- wok/lib/WOKSteps_toolkit.edl.orig Fri Sep 21 10:08:26 2001
+++ wok/lib/WOKSteps_toolkit.edl Thu Aug 10 16:21:08 2006
@@ -97,7 +97,24 @@
@endif;
@endif;
-
+
+ @if ( %Station == "bsd" ) then
+ @string %WOKSteps_LibGroup += " lib.arx ";
+ @set %WOKSteps_lib_build = "WOKStep_DynamicLibrary(lib.list,lib.arx)";
+
+ @ifnotdefined ( %WOKSteps_LinkShr ) then
+ @string %WOKSteps_LibGroup += " lib.build ";
+ @set %WOKSteps_lib_build = "WOKStep_DynamicLibrary(lib.list,lib.arx)";
+ @else
+ @string %WOKSteps_LibGroup += " lib.libs ";
+ @string %WOKSteps_LibGroup += " lib.tks ";
+ @string %WOKSteps_LibGroup += " lib.build ";
+ @set %WOKSteps_lib_libs = "WOKStep_DirectLinkList(obj.idep,lib.list,lib.arx)";
+ @set %WOKSteps_lib_tks = "*WOKStep_DirectTKReplace(lib.libs)";
+ @set %WOKSteps_lib_build = "WOKStep_LibLink(lib.tks)";
+ @endif;
+ @endif;
+
@if ( %Station == "lin" ) then
@string %WOKSteps_LibGroup += " lib.arx ";
@set %WOKSteps_lib_build = "WOKStep_DynamicLibrary(lib.list,lib.arx)";

View File

@ -1,369 +0,0 @@
--- wok/lib/config.h.orig Mon Nov 17 19:44:37 2003
+++ wok/lib/config.h Thu Aug 10 16:28:00 2006
@@ -331,6 +331,366 @@
/* End Linux Part */
+/*-----------------------------------------------------------*/
+/* This part is extracted from config.h generated on FreeBSD */
+/*-----------------------------------------------------------*/
+
+#elif FREEBSD
+
+/* config.h. Generated by configure. */
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* define if the compiler allows redefinition of stream input and output */
+/* #undef DEF_IOS_OK */
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if you have the <bits/sigset.h> header file. */
+/* #undef HAVE_BITS_SIGSET_H */
+
+/* Define to 1 if you have the <bstring.h> header file. */
+/* #undef HAVE_BSTRING_H */
+
+/* Define to 1 if you have the <dirent.h> header file. */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <dl.h> header file. */
+/* #undef HAVE_DL_H */
+
+/* Define to 1 if you have the <DPS/dpsXclient.h> header file. */
+#define HAVE_DPS_DPSXCLIENT_H 1
+
+/* Define if we have a function called "finite" in -lm. */
+#define HAVE_FINITE
+
+/* Define to 1 if you have the <floatingpoint.h> header file. */
+#define HAVE_FLOATINGPOINT_H 1
+
+/* Define to 1 if you have the <float.h> header file. */
+#define HAVE_FLOAT_H 1
+
+/* Define to 1 if you have the <fstream> header file. */
+#define HAVE_FSTREAM 1
+
+/* Define to 1 if you have the <fstream.h> header file. */
+#define HAVE_FSTREAM_H 1
+
+/* Define to 1 if you have the `gethostname' function. */
+#define HAVE_GETHOSTNAME 1
+
+/* Define to 1 if you have the <getopt.h> header file. */
+#define HAVE_GETOPT_H 1
+
+/* Define to 1 if you have the <ieeefp.h> header file. */
+#define HAVE_IEEEFP_H 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <iomanip> header file. */
+#define HAVE_IOMANIP 1
+
+/* Define to 1 if you have the <iomanip.h> header file. */
+#define HAVE_IOMANIP_H 1
+
+/* Define to 1 if you have the <ios> header file. */
+#define HAVE_IOS 1
+
+/* Define to 1 if you have the <iostream> header file. */
+#define HAVE_IOSTREAM 1
+
+/* Define to 1 if you have the <iostream.h> header file. */
+#define HAVE_IOSTREAM_H 1
+
+/* Define to 1 if you have the <ios.h> header file. */
+/* #undef HAVE_IOS_H */
+
+/* Define to 1 if you have the <istream> header file. */
+#define HAVE_ISTREAM 1
+
+/* Define to 1 if you have the <istream.h> header file. */
+#define HAVE_ISTREAM_H 1
+
+/* Define to 1 if you have the <libc.h> header file. */
+/* #undef HAVE_LIBC_H */
+
+/* Define to 1 if you have the `e' library (-le). */
+/* #undef HAVE_LIBE */
+
+/* Define to 1 if you have the `inks' library (-links). */
+/* #undef HAVE_LIBINKS */
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if we have a function called "mallinfo" in -lmalloc. */
+/* #undef HAVE_MALLINFO */
+
+/* Define to 1 if you have the <malloc.h> header file. */
+/* #undef HAVE_MALLOC_H */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <ndir.h> header file. */
+/* #undef HAVE_NDIR_H */
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <net/if.h> header file. */
+#define HAVE_NET_IF_H 1
+
+/* Define to 1 if you have the <osfcn.h> header file. */
+/* #undef HAVE_OSFCN_H */
+
+/* Define to 1 if you have the <ostream> header file. */
+#define HAVE_OSTREAM 1
+
+/* Define to 1 if you have the <ostream.h> header file. */
+#define HAVE_OSTREAM_H 1
+
+/* Define to 1 if you have the `putenv' function. */
+/* #undef HAVE_PUTENV */
+
+/* Define to 1 if you have the <pwd.h> header file. */
+#define HAVE_PWD_H 1
+
+/* Define to 1 if you have the `regcomp' function. */
+#define HAVE_REGCOMP 1
+
+/* Define to 1 if you have the `re_comp' function. */
+/* #undef HAVE_RE_COMP */
+
+/* Define to 1 if you have the <sigfpe.h> header file. */
+/* #undef HAVE_SIGFPE_H */
+
+/* Define to 1 if you have the <siginfo.h> header file. */
+/* #undef HAVE_SIGINFO_H */
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the `statfs' function. */
+#define HAVE_STATFS 1
+
+/* Define to 1 if you have the `statvfs' function. */
+#define HAVE_STATVFS 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strcspn' function. */
+#define HAVE_STRCSPN 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the <stream.h> header file. */
+#define HAVE_STREAM_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <strstream.h> header file. */
+/* #undef HAVE_STRSTREAM_H */
+
+/* Define to 1 if you have the `strtol' function. */
+/* #undef HAVE_STRTOL */
+
+/* Define if we have a function called "ieee_handler" in -lsunmath. */
+/* #undef HAVE_SUNMATH */
+
+/* Define to 1 if you have the <sysent.h> header file. */
+/* #undef HAVE_SYSENT_H */
+
+/* Define to 1 if you have the <sys/dir.h> header file. */
+#define HAVE_SYS_DIR_H 1
+
+/* Define to 1 if you have the <sys/filio.h> header file. */
+#define HAVE_SYS_FILIO_H 1
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/ipc.h> header file. */
+#define HAVE_SYS_IPC_H 1
+
+/* Define to 1 if you have the <sys/machsig.h> header file. */
+/* #undef HAVE_SYS_MACHSIG_H */
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#define HAVE_SYS_MMAN_H 1
+
+/* Define to 1 if you have the <sys/ndir.h> header file. */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the <sys/sem.h> header file. */
+#define HAVE_SYS_SEM_H 1
+
+/* Define to 1 if you have the <sys/siginfo.h> header file. */
+/* #undef HAVE_SYS_SIGINFO_H */
+
+/* Define to 1 if you have the <sys/signal.h> header file. */
+#define HAVE_SYS_SIGNAL_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/statvfs.h> header file. */
+#define HAVE_SYS_STATVFS_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/systeminfo.h> header file. */
+/* #undef HAVE_SYS_SYSTEMINFO_H */
+
+/* Define to 1 if you have the <sys/times.h> header file. */
+#define HAVE_SYS_TIMES_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/unistd.h> header file. */
+#define HAVE_SYS_UNISTD_H 1
+
+/* Define to 1 if you have the <sys/utsname.h> header file. */
+#define HAVE_SYS_UTSNAME_H 1
+
+/* Define to 1 if you have the <sys/vfs.h> header file. */
+/* #undef HAVE_SYS_VFS_H */
+
+/* Define to 1 if you have the <sys/vnode.h> header file. */
+#define HAVE_SYS_VNODE_H 1
+
+/* Define to 1 if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the <values.h> header file. */
+/* #undef HAVE_VALUES_H */
+
+/* Define to 1 if you have the <X11/extensions/multibuf.h> header file. */
+#define HAVE_X11_EXTENSIONS_MULTIBUF_H 1
+
+/* Define to 1 if you have the <X11/extensions/readdisplay.h> header file. */
+/* #undef HAVE_X11_EXTENSIONS_READDISPLAY_H */
+
+/* Define to 1 if you have the <X11/extensions/transovl.h> header file. */
+/* #undef HAVE_X11_EXTENSIONS_TRANSOVL_H */
+
+/* Define to 1 if you have the <Xmu/Editres.h> header file. */
+#define HAVE_XMU_EDITRES_H 1
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+/* #undef NO_MINUS_C_MINUS_O */
+
+/* define if the class ostream has member function form */
+/* #undef OSTREAM_FORM_OK */
+
+/* Name of package */
+#define PACKAGE "OpenCAS"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* Define if compiler has function prototypes */
+#define PROTOTYPES 1
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#define RETSIGTYPE void
+
+/* define if the function semctl takes a value */
+/* #undef SEMCTL_NO_REFERENCE */
+
+/* define if the function semop takes a value */
+/* #undef SEMOP_NO_REFERENCE */
+
+/* define if semun has member __buf */
+/* #undef SEMUN_BUF_DEFINED */
+
+/* define if the union semun is in sys/sem.h */
+#define SEMUN_DEFINED
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at run-time.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+/* #undef STACK_DIRECTION */
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+/* #undef TM_IN_SYS_TIME */
+
+/* Version number of package */
+#define VERSION "5.0DVP1"
+
+/* Define to 1 if your processor stores words with the most significant byte
+ first (like Motorola and SPARC, unlike Intel and VAX). */
+/* #undef WORDS_BIGENDIAN */
+
+/* Define to 1 if on AIX 3.
+ System headers sometimes define this.
+ We just want to avoid a redefinition error message. */
+#ifndef _ALL_SOURCE
+/* # undef _ALL_SOURCE */
+#endif
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* End FreeBSD Part */
+
/*---------------------------------------------------------*/
/* This part is extracted from config.h generated on SOLARIS */
/*---------------------------------------------------------*/

View File

@ -1,37 +0,0 @@
--- wok/lib/pkgIndex.tcl.orig Fri Sep 21 10:07:48 2001
+++ wok/lib/pkgIndex.tcl Mon Aug 7 18:33:04 2006
@@ -30,6 +30,34 @@
###########################################
+if { $tcl_platform(os) == "FreeBSD" } {
+package ifneeded Woktools 2.0 "tclPkgSetup $dir/bsd Woktools 2.0 {
+ {libwoktoolscmd.so load {
+ msgprint msgisset msgissetcmd msgissetlong msgset msgsetcmd
+ msgsetlong msgunset msgunsetcmd msgunsetlong msgsetheader
+ msgunsetheader msgissetheader msginfo}}}"
+
+package ifneeded Wokutils 2.0 "tclPkgSetup $dir Wokutils 2.0 {
+ {libwokutilscmd.so load { wokcmp} } }"
+
+package ifneeded Wok 2.0 "package require Woktools;
+ tclPkgSetup $dir/bsd Wok 2.0 {
+ {libwokcmd.so load {
+ Sinfo Wcreate Winfo Wrm Wdeclare fcreate finfo frm pinfo screate
+ sinfo srm ucreate uinfo umpmake umake urm w_info wcreate
+ wokcd wokclose wokinfo wokparam wokprofile wokenv wrm wmove
+ stepinputaddstepinputinfo stepoutputadd stepoutputinfo stepaddexecdepitem }}}"
+
+package ifneeded Ms 2.0 "package require Woktools;
+ tclPkgSetup $dir/bsd Ms 2.0 {
+ {libmscmd.so load {
+ mscheck msclear msclinfo msextract msgeninfo msinfo msinstinfo
+ msmmthinfo msmthinfo mspkinfo msschinfo msrm msstdinfo
+ mstranslate msxmthinfo}}}"
+ }
+
+###########################################
+
if { $tcl_platform(os) == "SunOS" } {
package ifneeded Woktools 2.0 "tclPkgSetup $dir/sun Woktools 2.0 {
{libwoktoolscmd.so load {

View File

@ -1,11 +0,0 @@
--- wok/lib/wokPRM.tcl.orig Fri Sep 21 10:08:40 2001
+++ wok/lib/wokPRM.tcl Thu Aug 10 16:29:46 2006
@@ -188,7 +188,7 @@
tixForm $IWOK_GLOBALS(PRM,Modify,wrkst,but,all) -top 2
set prev {} ; set curr {} ;set curwrkst [wokprofile -s]
- foreach x [list sun sil ao1 hp wnt lin] {
+ foreach x [list sun bsd sil ao1 hp wnt lin] {
set curr [string tolower ${wrkst}.${x}]
checkbutton $curr -text $x -variable IWOK_GLOBALS(PRM,Modify,wrkst,$x) -command wokPRM:wrkst

View File

@ -1,11 +0,0 @@
--- wok/lib/wutils.tcl.orig Fri Sep 21 10:08:43 2001
+++ wok/lib/wutils.tcl Thu Aug 10 17:17:32 2006
@@ -1770,7 +1770,7 @@
}
command {
- set fid [open "| /usr/lib/sendmail -oi -t" "w"]
+ set fid [open "| /usr/sbin/sendmail -oi -t" "w"]
puts $fid "To: $to"
if {[string length $from] > 0} {
puts $fid "From: $from"

View File

@ -1,22 +0,0 @@
--- wok/site/DEFAULT.edl.orig Wed Mar 22 18:55:40 2006
+++ wok/site/DEFAULT.edl Thu Aug 10 17:15:23 2006
@@ -17,7 +17,7 @@
@end;
@template DEFAULT_Stations ( %Entity ) is
-$sun lin wnt\^
+$sun bsd lin wnt\^
@end;
@template DEFAULT_DBMSystems ( %Entity ) is
@@ -37,6 +37,10 @@
@end;
@template DEFAULT_DFLT ( %Entity_Home ) is
+$%Entity_Home\^
+@end;
+
+@template DEFAULT_DFLT_bsd ( %Entity_Home ) is
$%Entity_Home\^
@end;

View File

@ -1,12 +0,0 @@
--- wok/site/wok.csh.orig Fri Mar 5 18:48:47 2004
+++ wok/site/wok.csh Mon Jul 31 23:07:35 2006
@@ -57,6 +57,9 @@
case SunOS:
setenv WOKSTATION "sun"
breaksw
+ case FreeBSD:
+ setenv WOKSTATION "bsd"
+ breaksw
case Linux:
setenv WOKSTATION "lin"
breaksw

View File

@ -1,43 +0,0 @@
--- wok/site/wokinit.csh.orig Wed Mar 22 18:55:40 2006
+++ wok/site/wokinit.csh Wed Aug 9 21:56:14 2006
@@ -5,24 +5,26 @@
set OS_PLATFORM=""
if ( $OS_NAME == "SunOS" ) then
set OS_PLATFORM="sun"
+else if ( $OS_NAME == "FreeBSD" ) then
+ set OS_PLATFORM="bsd"
else if ( $OS_NAME == "Linux" ) then
set OS_PLATFORM="lin"
endif
setenv WOKHOME ${CASROOT}/../wok
setenv HOME ${WOKHOME}/site
-setenv WOK_LIBPATH ${WOKHOME}/lib/${OS_PLATFORM}
+setenv WOK_LIBPATH ${WOKHOME}/lib/
setenv WOK_ROOTADMDIR ${WOKHOME}/wok_entities
setenv WOK_SESSIONID ${HOME}
-setenv TCLHOME ${CASROOT}/../3rdparty/${OS_NAME}/tcltk
-setenv TCLLIBPATH "${TCLHOME}/lib:${WOK_LIBPATH}"
+setenv TCLHOME ${WOK_LIBPATH}
+setenv TCLLIBPATH "${WOK_LIBPATH}"
set TCLLIB=${TCLHOME}/lib
set TCLBIN=${TCLHOME}/bin
-setenv LD_LIBRARY_PATH "/usr/lib:/usr/X11R6/lib:/lib:${TCLLIB}:${WOKHOME}/lib/:${WOKHOME}/lib/${OS_PLATFORM}"
+setenv LD_LIBRARY_PATH "/usr/lib:/usr/X11R6/lib:/lib:${TCLLIB}:${WOKHOME}/lib/:${WOKHOME}/lib/${OS_PLATFORM}/"
setenv path "/usr/bin /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /usr/X11R6/bin /etc"
setenv PATH "/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/etc"
@@ -32,5 +34,8 @@
cd ${WOK_ROOTADMDIR}
+if ( $OS_NAME == "FreeBSD" ) then
+/usr/local/bin/tclsh8.4 < ${WOKHOME}/site/CreateFactory.tcl
+else
${TCLBIN}/tclsh < ${WOKHOME}/site/CreateFactory.tcl
-
+endif

View File

@ -16,6 +16,6 @@ You should then install the following ports:
- cad/%%PORTNAME%%-samples-java
To get started, please read the documentation:
file://%%OCCROOT%%/doc/index.htm
file://%%OCCROOT%%/doc/Overview/index.htm
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

File diff suppressed because it is too large Load Diff