2003-07-23 14:21:51 +00:00
|
|
|
# New ports collection makefile for: gmsh
|
|
|
|
# Date created: 19 April 2003
|
2003-08-22 05:24:42 +00:00
|
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
2003-07-23 14:21:51 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gmsh
|
2005-11-29 21:50:05 +00:00
|
|
|
PORTVERSION= 1.61.3
|
2003-07-23 14:21:51 +00:00
|
|
|
CATEGORIES= cad
|
2004-11-15 10:41:13 +00:00
|
|
|
MASTER_SITES= http://www.geuz.org/gmsh/src/
|
2003-07-23 14:21:51 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= An automatic 3D finite element mesh generator
|
|
|
|
|
2004-11-16 22:59:36 +00:00
|
|
|
RUN_DEPENDS= getdp:${PORTSDIR}/science/getdp
|
2005-05-02 13:00:18 +00:00
|
|
|
LIB_DEPENDS= gsl.7:${PORTSDIR}/math/gsl \
|
2003-07-23 14:21:51 +00:00
|
|
|
fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
|
2004-11-16 22:59:36 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
WITHOUT_TRIANGLE= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_TRIANGLE)
|
2004-11-15 10:41:13 +00:00
|
|
|
EXTRACT_DEPENDS+= ${NONEXISTENT}:${TRIANGLE_PORTDIR}:patch
|
|
|
|
.endif
|
|
|
|
|
2003-07-23 14:21:51 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2004-11-15 23:02:12 +00:00
|
|
|
TRIANGLE_PORTDIR= ${PORTSDIR}/math/triangle
|
2003-07-23 14:21:51 +00:00
|
|
|
|
2004-08-23 18:49:45 +00:00
|
|
|
USE_REINPLACE= yes
|
2003-07-23 14:21:51 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-08-23 18:49:45 +00:00
|
|
|
CONFIGURE_ARGS= --with-fltk-prefix=${X11BASE} \
|
|
|
|
--with-gsl-prefix=${LOCALBASE} \
|
|
|
|
--with-jpeg-prefix=${LOCALBASE} \
|
|
|
|
--with-png-prefix=${LOCALBASE}
|
2004-10-21 21:47:28 +00:00
|
|
|
ALL_TARGET= all utils
|
2003-07-23 14:21:51 +00:00
|
|
|
|
|
|
|
MAN1= gmsh.1
|
|
|
|
|
2004-11-16 22:59:36 +00:00
|
|
|
.if !defined(WITHOUT_TRIANGLE)
|
2005-11-28 15:22:07 +00:00
|
|
|
NO_CDROM= "Triangle must not be sold for profit"
|
2004-08-23 18:49:45 +00:00
|
|
|
.endif
|
|
|
|
|
2004-12-23 12:23:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
CONFIGURE_ARGS+= --disable-netgen # Problem with Netgen & gcc-295
|
2005-11-29 19:48:17 +00:00
|
|
|
BROKEN= "Does not compile with gcc-295"
|
2004-12-23 12:23:05 +00:00
|
|
|
.endif
|
|
|
|
|
2004-08-23 18:49:45 +00:00
|
|
|
post-extract:
|
2004-11-16 22:59:36 +00:00
|
|
|
.if !defined(WITHOUT_TRIANGLE)
|
2005-11-28 15:22:07 +00:00
|
|
|
${CP} `cd ${TRIANGLE_PORTDIR}; ${MAKE} -V WRKSRC`/triangle.* \
|
|
|
|
${WRKSRC}/contrib/Triangle
|
2004-08-23 18:49:45 +00:00
|
|
|
.endif
|
2004-06-13 19:31:27 +00:00
|
|
|
|
2005-01-08 12:08:22 +00:00
|
|
|
pre-configure:
|
|
|
|
.for demo in lowmem-anim.geo
|
2004-06-13 19:31:27 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|../tutorial|${DOCSDIR}/tutorial|" \
|
|
|
|
${WRKSRC}/demos/${demo}
|
|
|
|
.endfor
|
|
|
|
|
2004-10-21 21:47:28 +00:00
|
|
|
do-install:
|
2004-11-16 22:59:36 +00:00
|
|
|
.for f in dxf2geo gmsh mshsort
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/bin
|
2004-10-21 21:47:28 +00:00
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/gmsh.1 ${MANPREFIX}/man/man1
|
2003-07-23 14:21:51 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-23 18:49:45 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-07-23 14:21:51 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${DOCSDIR}
|
2004-08-23 18:49:45 +00:00
|
|
|
cd ${WRKSRC} && ${FIND} tutorial | \
|
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC} && ${FIND} demos ! -name "*.bak" | \
|
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2003-07-23 14:21:51 +00:00
|
|
|
.endif
|
|
|
|
|
2004-12-23 12:23:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|