1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/science/oof/Makefile
Ion-Mihai Tetcu 2dc373dbdf Objecto Oriented Finite Element Analysis of Real Material Microstructures
__________________

OOF is designed to help materials scientists calculate macroscopic
properties from images of real or simulated microstructures. It is
composed of two cooperating parts: ppm2oof and oof. ppm2oof reads images
in the ppm (Portable Pixel Map) format and assigns material properties to
features in the image. oof conducts virtual experiments on the data
structures created by ppm2oof to determine the macroscopic properties of
the microstructure. Currently, the programs calculate stresses and
strains, but someday we hope to include thermal, electric, and magnetic
field calculations.

Check the Homepage for online manuals and new versions

WWW:	 http://www.ctcms.nist.gov/oof/

PR:		ports/98601
Submitted by:	Pedro F. Giffuni
2006-06-12 18:58:44 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: oof
# Date created: 19 June 2006
# Whom: Pedro F. Giffuni
#
# $FreeBSD$
#
PORTNAME= oof
PORTVERSION= 1.037
CATEGORIES= science
MASTER_SITES= http://www.ctcms.nist.gov/~langer/OOFdownload/SRC/
DISTNAME= ${PORTNAME}-dist${PORTVERSION}
MAINTAINER= giffunip@asme.org
COMMENT= Finite Element Analysis of Real Material Microstructures
LIB_DEPENDS= forms.1:${PORTSDIR}/x11-toolkits/xforms
.ifdef WITH_ATLAS
LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
.else
LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas
.endif
.ifdef WITH_ATLAS
BLAS_LIBS= -lf77blas -latlas
.else
BLAS_LIBS?= -lblas
.endif
CXXFLAGS+= -DDONT_HAVE_STRSTREAM_H -DNEED_FDSTREAM
.ifdef WITH_THERMAL
CXXFLAGS+= -DTHERMAL
.endif
CXXFLAGS+= -Wno-deprecated
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cxxflags='${CXXFLAGS}' \
--with-libdirs=-L${LOCALBASE}/lib \
--with-blas="-L${LOCALBASE}/lib ${BLAS_LIBS} -lg2c"
USE_GCC= 3.2+
ALL_TARGET= all
PLIST_FILES= bin/oof bin/ppm2oof
.ifndef WITH_THERMAL
ALL_TARGET+= oof2abaqus
PLIST_FILES+= bin/oof2abaqus
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/XOOF/oof ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/XPPM2OOF/ppm2oof ${PREFIX}/bin
.ifndef WITH_THERMAL
@${INSTALL_PROGRAM} ${WRKSRC}/OOF2ABAQUS/oof2abaqus ${PREFIX}/bin
.endif
.include <bsd.port.mk>