diff options
author | maho <maho@FreeBSD.org> | 2003-05-05 21:06:37 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2003-05-05 21:06:37 +0800 |
commit | 9a579bdae0e899f23105808a33749f4e6510a21c (patch) | |
tree | 3e1e2915c62fa09f0b567ccb667cbd9e79a3f730 | |
parent | 9ad87ac327317a3d669913f9e5a2cfaeff100026 (diff) | |
download | freebsd-ports-gnome-9a579bdae0e899f23105808a33749f4e6510a21c.tar.gz freebsd-ports-gnome-9a579bdae0e899f23105808a33749f4e6510a21c.tar.zst freebsd-ports-gnome-9a579bdae0e899f23105808a33749f4e6510a21c.zip |
A Three-Dimensional Structural Finite Element Program
Submitted by : Pedro F. Giffuni <giffunip@yahoo.com>
Almost writeen by: maho
-rw-r--r-- | cad/Makefile | 1 | ||||
-rw-r--r-- | cad/calculix/Makefile | 67 | ||||
-rw-r--r-- | cad/calculix/distinfo | 4 | ||||
-rw-r--r-- | cad/calculix/files/patch-ccx_1.0+src+CalculiX.h | 11 | ||||
-rw-r--r-- | cad/calculix/files/patch-ccx_1.0+src+Makefile | 33 | ||||
-rw-r--r-- | cad/calculix/files/patch-cgx_1.0+src+Makefile | 23 | ||||
-rw-r--r-- | cad/calculix/pkg-descr | 13 | ||||
-rw-r--r-- | cad/calculix/pkg-plist | 23 |
8 files changed, 175 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile index fe4ea05ccd30..3d9fd223146e 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -3,6 +3,7 @@ SUBDIR += ziarc SUBDIR += atlc + SUBDIR += calculix SUBDIR += cascade SUBDIR += chipmunk SUBDIR += chipvault diff --git a/cad/calculix/Makefile b/cad/calculix/Makefile new file mode 100644 index 000000000000..27e3143b8bb0 --- /dev/null +++ b/cad/calculix/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: CalculiX +# Date created: 19 April 2003 +# Whom: Pedro Giffuni <giffunip@yahoo.com> +# +# $FreeBSD$ +# + +PORTNAME= CalculiX +PORTVERSION= 1.0 +CATEGORIES= cad +MASTER_SITES= http://www.dhondt.de/ +DISTFILES= ccx_${PORTVERSION}.src.tar.gz cgx_${PORTVERSION}.tar.gz +.if !defined(NOPORTDOCS) +DISTFILES+= ccx_${PORTVERSION}.ps.tar.gz cgx_${PORTVERSION}.ps.tar.gz +.endif + +MAINTAINER= ports@FreeBSD.org +COMMENT= A Three-Dimensional Structural Finite Element Program + +# These are required to build Crunchix (ccx) +BUILD_DEPENDS= ${LOCALBASE}/lib/libspooles.a:${PORTSDIR}/math/spooles \ + ${LOCALBASE}/lib/libarpack.a:${PORTSDIR}/math/arpack + +WRKSRC= ${WRKDIR}/${PORTNAME} +USE_MESA= yes +USE_REINPLACE= yes + +.if !defined(WITH_EXAMPLES) +PLIST_SUB= WITH_EXAMPLES="@comment " +.else +PLIST_SUB= WITH_EXAMPLES="" +.endif + +.ifndef (WITH_EXAMPLES) +pre-everything:: + @${ECHO} "You can define WITH_EXAMPLES=yes to install example files" +.endif + +post-patch: + @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g;' ${WRKSRC}/ccx_${PORTVERSION}/src/Makefile + @${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g;' ${WRKSRC}/ccx_${PORTVERSION}/src/Makefile + @${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/ccx_${PORTVERSION}/src/Makefile + @${REINPLACE_CMD} -e 's+%%X11BASE%%+${X11BASE}+g;' ${WRKSRC}/cgx_${PORTVERSION}/src/Makefile + @${REINPLACE_CMD} -e 's+%%CFLAGS%%+${CFLAGS}+g;' ${WRKSRC}/cgx_${PORTVERSION}/src/Makefile +do-build: + @(cd ${WRKSRC}/ccx_${PORTVERSION}/src; $(MAKE) ) + @(cd ${WRKSRC}/cgx_${PORTVERSION}/src; $(MAKE) ) +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/ccx_${PORTVERSION}/src/ccx_${PORTVERSION} \ + ${PREFIX}/bin/ccx + @${INSTALL_PROGRAM} ${WRKSRC}/cgx_${PORTVERSION}/src/cgx \ + ${PREFIX}/bin/cgx +.ifdef (WITH_EXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @${TAR} cf - -C ${WRKSRC}/cgx_${PORTVERSION}/examples . | ${TAR} xf - -C ${EXAMPLESDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} +.endif + +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/CalculiX + @${INSTALL_DATA} ${WRKSRC}/ccx_${PORTVERSION}/doc/*.ps \ + ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/cgx_${PORTVERSION}/doc/*.ps \ + ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/cad/calculix/distinfo b/cad/calculix/distinfo new file mode 100644 index 000000000000..454f8018acac --- /dev/null +++ b/cad/calculix/distinfo @@ -0,0 +1,4 @@ +MD5 (ccx_1.0.src.tar.gz) = 09073b6365bfe1ac7e1ddc55c86dc229 +MD5 (cgx_1.0.tar.gz) = 3c86372fe880526c48b8cb3f6221f02a +MD5 (ccx_1.0.ps.tar.gz) = 43a9cf8ea307eadc9383e2c13db8b05f +MD5 (cgx_1.0.ps.tar.gz) = 4b2e32c3cb924161b51161e35d2b3748 diff --git a/cad/calculix/files/patch-ccx_1.0+src+CalculiX.h b/cad/calculix/files/patch-ccx_1.0+src+CalculiX.h new file mode 100644 index 000000000000..eb7e74173594 --- /dev/null +++ b/cad/calculix/files/patch-ccx_1.0+src+CalculiX.h @@ -0,0 +1,11 @@ +--- ccx_1.0/src/CalculiX.h.orig Mon Mar 3 00:35:58 2003 ++++ ccx_1.0/src/CalculiX.h Mon May 5 21:15:50 2003 +@@ -24,6 +24,8 @@ + #define FORTRAN(A,B) A##_##B + #elif ARCH == HP + #define FORTRAN(A,B) A##B ++#else ++#define FORTRAN(A,B) A##_ B + #endif + + #define NNEW(a,b) (a *)u_calloc((b),sizeof(a)) diff --git a/cad/calculix/files/patch-ccx_1.0+src+Makefile b/cad/calculix/files/patch-ccx_1.0+src+Makefile new file mode 100644 index 000000000000..9e7fd378b593 --- /dev/null +++ b/cad/calculix/files/patch-ccx_1.0+src+Makefile @@ -0,0 +1,33 @@ +--- ccx_1.0/src/Makefile.orig Mon Mar 3 00:35:58 2003 ++++ ccx_1.0/src/Makefile Mon May 5 20:56:43 2003 +@@ -1,8 +1,8 @@ +-CFLAGS = -Wall -O -I ../../../SPOOLES.2.2 -DARCH="Linux" +-FFLAGS = -Wall -O ++CFLAGS += -Wall -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" ++FFLAGS += -Wall + +-CC=cc +-FC=g77 ++CC=%%CC%% ++FC=%%FC%% + + .c.o : + $(CC) $(CFLAGS) -c $< +@@ -195,15 +195,11 @@ + OCCXC = $(SCCXC:.c=.o) + OCCXMAIN = $(SCCXMAIN:.c=.o) + +-DIR=../../../SPOOLES.2.2 ++LIBS = -lspooles -larpack -lm + +-LIBS = \ +- $(DIR)/spooles.a \ +- ../../../ARPACK/libarpack_INTEL.a \ +- -lm + + ccx_1.0: $(OCCXMAIN) ccx_1.0.a $(LIBS) +- g77 -Wall -O -o $@ $(OCCXMAIN) ccx_1.0.a $(LIBS) ++ $(FC) -o $@ $(OCCXMAIN) ccx_1.0.a $(LIBS) -L%%LOCALBASE%%/lib + + ccx_1.0.a: $(OCCXF) $(OCCXC) + ar vr $@ $? diff --git a/cad/calculix/files/patch-cgx_1.0+src+Makefile b/cad/calculix/files/patch-cgx_1.0+src+Makefile new file mode 100644 index 000000000000..f65a324bd8b5 --- /dev/null +++ b/cad/calculix/files/patch-cgx_1.0+src+Makefile @@ -0,0 +1,23 @@ +--- cgx_1.0/src/Makefile.orig Tue Apr 8 04:38:13 2003 ++++ cgx_1.0/src/Makefile Mon May 5 21:21:22 2003 +@@ -1,14 +1,12 @@ +-CFLAGS = -O2 -Wall \ ++CFLAGS+= %%CFLAGS%% \ + -I./ \ +- -I/usr/include \ +- -I/usr/include/GL \ +- -I/usr/X11R6/include ++ -I%%X11BASE%%/include/GL \ ++ -I%%X11BASE%%/include + + LFLAGS = \ +- -L/usr/lib -lGL -lGLU -lglut \ +- -L/usr/X11R6/lib -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \ +- -lm +- ++ -L%%X11BASE%%/lib -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \ ++ -lGL -lGLU -lglut \ ++ -lm + + SLIB = \ + AsplitA.c \ diff --git a/cad/calculix/pkg-descr b/cad/calculix/pkg-descr new file mode 100644 index 000000000000..1a3cce5c3053 --- /dev/null +++ b/cad/calculix/pkg-descr @@ -0,0 +1,13 @@ +A Three-Dimensional Structural Finite Element Program + +CalculiX Finite Element Models can be build, calculated and +post-processed. The pre- and post-processor is an interactive 3D-tool +using the openGL API. + +Notice: The authors acknowledge that naming conventions and input style +formats for CalculiX are based on those used by ABAQUS, a proprietary, +general purpose finite element code developed and supported by Hibbitt, +Karlsson & Sorensen, Inc (HKS) and are used with kind permission from HKS. +Results obtained from CalculiX are in no way connected to ABAQUS. + +WWW: http://www.calculix.de/ diff --git a/cad/calculix/pkg-plist b/cad/calculix/pkg-plist new file mode 100644 index 000000000000..8f513444c309 --- /dev/null +++ b/cad/calculix/pkg-plist @@ -0,0 +1,23 @@ +bin/ccx +bin/cgx +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/basic/cylinder.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/basic/disc.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/basic/sphere.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/basic/sphere_seg.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/basic/sphere_vol.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/result.frd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/geometry.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/compressor/cgx/lavfm.fbd +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/compressor/ccx/lavfm_cyc.nam +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/compressor/ccx/lavfm_cyl.bou +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/compressor/ccx/lavfm.msh +%%WITH_EXAMPLES%%%%EXAMPLESDIR%%/compressor/ccx/cyc/lavfmcyc.inp +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/compressor/cgx +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/compressor/ccx/cyc +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/compressor/ccx +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/compressor +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/basic +%%WITH_EXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%%%DOCSDIR%%/ccx_1.0.ps +%%PORTDOCS%%%%DOCSDIR%%/cgx.ps +%%PORTDOCS%%@dirrm %%DOCSDIR%% |