diff options
Diffstat (limited to 'cad/netgen/Makefile')
-rw-r--r-- | cad/netgen/Makefile | 73 |
1 files changed, 26 insertions, 47 deletions
diff --git a/cad/netgen/Makefile b/cad/netgen/Makefile index 0a6e55b0ac2..5a5473ad536 100644 --- a/cad/netgen/Makefile +++ b/cad/netgen/Makefile @@ -6,87 +6,66 @@ # PORTNAME= netgen -PORTVERSION= 4.4 -PORTREVISION= 5 +PORTVERSION= 4.9.13 CATEGORIES= cad -MASTER_SITES= http://www.hpfem.jku.at/cgi/download.cgi?ID= -DISTNAME= ngs${PORTVERSION:S/.//g} +MASTER_SITES= SF/netgen-mesher/netgen-mesher/${PORTVERSION}/ MAINTAINER= stephen@missouri.edu COMMENT= An automatic 3D tetrahedral mesh generator -LIB_DEPENDS= tix8184:${PORTSDIR}/x11-toolkits/tix USE_GMAKE= yes USE_TK= 84 USE_TK_BUILD= 84 USE_GL= yes USE_XORG= xmu xi - -ALL_TARGET= ng +GNU_CONFIGURE= yes +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} -I${TK_LIBDIR}/Togl-1.7 +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" +CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR} --enable-jpeglib +LIB_DEPENDS+= tix8184:${PORTSDIR}/x11-toolkits/tix \ + jpeg.11:${PORTSDIR}/graphics/jpeg \ + togl.1:${PORTSDIR}/graphics/togl FETCH_BEFORE_ARGS+= -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} +OPTIONS= OCC "Compile with OpenCascade geometry kernel" on \ + FFMPEG "video recording with FFmpeg" off + +.include <bsd.port.options.mk> + .if defined(WITH_OCC) LIB_DEPENDS+= TKernel.0:${PORTSDIR}/cad/opencascade -CXXFLAGS+= -DOCCGEOMETRY -DOCC52 -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H -D${ARCH} -I${LOCALBASE}/OpenCAS/ros/inc +CXXFLAGS+= -DOCCGEOMETRY -DOCC63 -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H -D${ARCH} -I${LOCALBASE}/OpenCAS/ros/inc +CONFIGURE_ARGS+= --enable-occ .endif -TUTOS= boxcyl.geo cone.geo cube.geo cubeandspheres.geo cubemcyl.geo \ - cubemsphere.geo cylinder.geo cylsphere.geo demo2d.in2d ellipsoid.geo \ - ellipticcyl.geo fichera.geo hinge.stl lshape3d.geo manyholes.geo \ - matrix.geo part1.stl period.geo sculpture.geo shaft.geo sphere.geo \ - sphereincube.geo square.in2d test.msz trafo.geo twobricks.geo \ - twocubes.geo twocyl.geo - -DIRTCL= demoapp ngsolve ngtcltk +.if defined(WITH_FFMPEG) +LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg +CONFIGURE_ARGS+= --enable-ffmpeg +.endif MACHINE= ${OPSYS:U} +SUB_LIST= PREFIX=${PREFIX} +SUB_FILES= pkg-message MAKE_ENV= TK_VER=${TK_VER} TCL_VER=${TCL_VER} \ TCL_INCLUDEDIR="${TCL_INCLUDEDIR}" \ TK_INCLUDEDIR="${TK_INCLUDEDIR}" \ MACHINE=${MACHINE} MAKE=${GMAKE} \ PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} - .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" BROKEN= internal gcc error (Bug 23159) .endif -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} "Define WITH_OCC if IGES and STEP support is required." - @${ECHO_MSG} - pre-configure: ${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ - ${WRKSRC}/ngtcltk/ngappinit.cpp -.if defined(WITH_OCC) - ${REINPLACE_CMD} -e 's|^# occlib|occlib|;s|-pthread|${PTHREAD_LIBS}|' \ - ${WRKSRC}/libsrc/makefile.mach.FREEBSD \ - ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e 's|^#OCC|OCC|;s|ros/lin/|ros/bsd/|; \ - s|/opt/OpenCASCADE5.2|${LOCALBASE}/OpenCAS|' \ - ${WRKSRC}/Makefile -.endif + ${WRKSRC}/ng/ngappinit.cpp -do-install: - ${MKDIR} ${DIRTCL:S|^|${PREFIX}/netgen/|g} - ${INSTALL_PROGRAM} ${WRKSRC}/ng ${PREFIX}/netgen - ${LN} -s ${PREFIX}/netgen/ng ${PREFIX}/bin -.for tcls in . ${DIRTCL} - ${CP} ${WRKSRC}/${tcls}/*.tcl ${PREFIX}/netgen/${tcls} -.endfor -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR}/tutorials ${DOCSDIR}/ngsolve - ${INSTALL_DATA} ${WRKSRC}/doc/ng4.pdf ${DOCSDIR} -. for doc in ${TUTOS} - ${INSTALL_DATA} ${WRKSRC}/tutorials/${doc} ${DOCSDIR}/tutorials -. endfor - ${CP} ${WRKSRC}/ngsolve/doc/* ${DOCSDIR}/ngsolve - @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." -.endif +post-install: + ${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |