blob: 0119351c27e131a56838a9cae4426b834a8c2a17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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= ports@FreeBSD.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
.include <bsd.port.pre.mk>
.if ${ARCH}==sparc64
BROKEN= does not compile on ${ARCH}
.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.post.mk>
|