aboutsummaryrefslogtreecommitdiff
path: root/science/lamprop/Makefile
blob: 325ca59659910422c3892424ceb842d8043645d9 (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
# New ports collection makefile for:	lamprop
# Date created:				15 May 2005
# Whom:					rsmith@xs4all.nl
#
# $FreeBSD$
#

PORTNAME=	lamprop
PORTVERSION=	1.3.1
CATEGORIES=	science
MASTER_SITES=	http://www.xs4all.nl/~rsmith/software/

MAINTAINER=	rsmith@xs4all.nl
COMMENT=	Calculates properties of fiber reinforced composites

PLIST_FILES=	bin/lamprop

MAN1=		lamprop.1
MAN5=		lamprop.5
MANCOMPRESSED=	yes

.if defined(NOPORTDOCS)
MAKE_ENV=	NOPORTDOCS=yes
.else
PORTDOCS=	LICENSE README NEWS
.endif

.include <bsd.port.pre.mk>

REP=	's|-pipe||; s|-fmerge-constants||; s|--fast-math||'
.if ${OSVERSION} < 500000
REP2+=	's|-fno-unit-at-a-time||;'
.endif

post-patch:
	@${REINPLACE_CMD} -e ${REP} ${WRKSRC}/Makefile
.if ${OSVERSION} < 500000
	@${REINPLACE_CMD} -e ${REP2} ${WRKSRC}/Makefile
.endif

.include <bsd.port.post.mk>