1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/cad/gmsh/Makefile

83 lines
2.1 KiB
Makefile
Raw Normal View History

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