2013-09-20 17:58:41 +02:00
|
|
|
# Created by: Pedro Giffuni
|
2003-05-05 15:06:37 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-30 18:19:08 +01:00
|
|
|
PORTNAME= calculix
|
2019-04-19 19:16:35 +02:00
|
|
|
PORTVERSION= 2.15
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 22:46:53 +02:00
|
|
|
PORTREVISION= 1
|
2003-05-05 15:06:37 +02:00
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= http://www.dhondt.de/
|
2005-03-19 11:28:48 +01:00
|
|
|
DISTFILES= ${DIST_SOURCES}
|
2003-08-08 18:06:50 +02:00
|
|
|
DIST_SUBDIR= calculix
|
2005-03-19 11:28:48 +01:00
|
|
|
EXTRACT_ONLY= ${DIST_SOURCES}
|
2003-05-05 15:06:37 +02:00
|
|
|
|
2017-08-15 02:18:22 +02:00
|
|
|
MAINTAINER= pfg@FreeBSD.org
|
2014-06-09 13:21:52 +02:00
|
|
|
COMMENT= Three-Dimensional Structural Finite Element Program
|
2003-05-05 15:06:37 +02:00
|
|
|
|
2013-03-05 03:20:24 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2018-07-07 08:44:07 +02:00
|
|
|
BROKEN_aarch64= fails to link: shapeFunctions.c:(function attach_new): relocation R_AARCH64_CALL26 out of range
|
2017-12-20 16:30:55 +01:00
|
|
|
|
2018-04-01 17:36:23 +02:00
|
|
|
RUN_DEPENDS= ccx:cad/calculix-ccx
|
|
|
|
|
2019-04-19 19:16:35 +02:00
|
|
|
USES= gmake tar:bzip2 compiler:c++11-lib
|
|
|
|
USE_XORG= ice sm x11 xext xi xmu xt
|
|
|
|
USE_GL= gl glu # uses its own glut
|
|
|
|
|
2017-08-15 02:18:22 +02:00
|
|
|
DIST_SOURCES= cgx_${PORTVERSION}.all${EXTRACT_SUFX}
|
|
|
|
DIST_HTM= cgx_${PORTVERSION}.htm${EXTRACT_SUFX}
|
2011-05-11 07:02:58 +02:00
|
|
|
DIST_PDF= cgx_${PORTVERSION}.pdf
|
2017-08-15 02:18:22 +02:00
|
|
|
DIST_EXAMPLES= cgx_${PORTVERSION}.exa${EXTRACT_SUFX}
|
2005-03-19 11:28:48 +01:00
|
|
|
|
2017-08-15 02:18:22 +02:00
|
|
|
WRKSRC= ${WRKDIR}/CalculiX
|
2014-03-04 01:18:31 +01:00
|
|
|
CGX_VER= cgx_${PORTVERSION}
|
|
|
|
|
2019-04-19 19:16:35 +02:00
|
|
|
CXXFLAGS+= -std=c++98
|
2005-02-06 04:09:06 +01:00
|
|
|
|
2013-03-05 03:20:24 +01:00
|
|
|
BROWSER?= firefox
|
2003-08-08 18:06:50 +02:00
|
|
|
PSVIEWER?= gv
|
2003-05-05 15:06:37 +02:00
|
|
|
|
2017-08-15 02:18:22 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2015-03-14 07:41:37 +01:00
|
|
|
|
2013-08-27 06:22:46 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-07-15 17:00:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
DISTFILES+= ${DIST_EXAMPLES}
|
|
|
|
EXTRACT_ONLY+= ${DIST_EXAMPLES}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2017-08-15 02:18:22 +02:00
|
|
|
DISTFILES+= ${DIST_HTM} ${DIST_PDF}
|
|
|
|
EXTRACT_ONLY+= ${DIST_HTM}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/CalculiX
|
2007-02-27 03:54:26 +01:00
|
|
|
.endif
|
2014-07-15 17:00:15 +02:00
|
|
|
|
2007-01-09 08:39:39 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
2006-03-15 09:12:00 +01:00
|
|
|
CFLAGS+= -fPIC
|
2007-01-09 08:39:39 +01:00
|
|
|
FFLAGS+= -fPIC
|
|
|
|
.else
|
|
|
|
CFLAGS+= -fpic
|
|
|
|
FFLAGS+= -fpic
|
2006-03-15 09:12:00 +01:00
|
|
|
.endif
|
|
|
|
|
2003-06-30 21:37:39 +02:00
|
|
|
pre-build:
|
2017-12-20 16:30:55 +01:00
|
|
|
@${REINPLACE_CMD} -e 's!c++!${CXX}!g;' \
|
2010-06-06 01:09:26 +02:00
|
|
|
${WRKSRC}/libSNL/src/makefile
|
2003-08-08 18:06:50 +02:00
|
|
|
@${REINPLACE_CMD} -e 's+%%DOCSDIR%%+${DOCSDIR}+g; \
|
2013-03-18 02:19:49 +01:00
|
|
|
s+"firefox"+"${BROWSER}"+ ; \
|
|
|
|
s+"gv"+"${PSVIEWER}"+ ;' \
|
2013-08-16 03:45:13 +02:00
|
|
|
${WRKSRC}/${CGX_VER}/src/cgx.h
|
2003-06-30 21:37:39 +02:00
|
|
|
|
2003-05-05 15:06:37 +02:00
|
|
|
do-build:
|
2014-06-25 00:11:41 +02:00
|
|
|
@(cd ${WRKSRC}/libSNL/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} )
|
|
|
|
@(cd ${WRKSRC}/${CGX_VER}/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} )
|
2003-06-30 21:37:39 +02:00
|
|
|
|
2003-05-05 15:06:37 +02:00
|
|
|
do-install:
|
2015-03-11 12:59:50 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${CGX_VER}/src/cgx \
|
2014-03-04 01:18:31 +01:00
|
|
|
${STAGEDIR}${PREFIX}/bin/cgx
|
2014-01-03 16:53:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-03-04 01:18:31 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/cgx
|
|
|
|
@(cd ${WRKSRC}/${CGX_VER}/doc/cgx && ${COPYTREE_SHARE} . \
|
|
|
|
${STAGEDIR}${DOCSDIR}/cgx)
|
2015-03-11 12:59:50 +01:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/cgx_${PORTVERSION}.pdf \
|
2014-03-04 01:18:31 +01:00
|
|
|
${STAGEDIR}${DOCSDIR}
|
2003-06-30 21:37:39 +02:00
|
|
|
.endif
|
2014-07-15 17:00:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2018-07-18 18:42:31 +02:00
|
|
|
# Some garbage crept in
|
|
|
|
@${RM} ${WRKSRC}/${CGX_VER}/examples/OpenFOAM/couette/constant/polyMesh/*~
|
|
|
|
@${RM} ${WRKSRC}/${CGX_VER}/examples/OpenFOAM/couette/constant/*~
|
|
|
|
@${RM} ${WRKSRC}/${CGX_VER}/examples/OpenFOAM/couette/system/*~
|
|
|
|
@${RM} ${WRKSRC}/${CGX_VER}/examples/ifwhiledemo/*.*~
|
2014-03-04 01:18:31 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/${CGX_VER}/examples && ${COPYTREE_SHARE} . \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR})
|
2003-05-05 15:06:37 +02:00
|
|
|
.endif
|
|
|
|
|
2014-02-16 18:15:31 +01:00
|
|
|
.include <bsd.port.mk>
|