summaryrefslogtreecommitdiffstats
path: root/finance/quantlib/Makefile
blob: e33c86879852ed47d00df52a92808cd3b8991e82 (plain)
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
# ex:ts=8
# New ports collection makefile for:	quantlib
# Date created:			Aug 12, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	quantlib
PORTVERSION=	0.3.1
CATEGORIES=	finance misc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	QuantLib-${PORTVERSION}-src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A comprehensive software framework for quantitative finance

WRKSRC=		${WRKDIR}/QuantLib-${PORTVERSION}

USE_REINPLACE=	yes
USE_LIBTOOL=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB=	yes

MAN1=		DiscreteHedging.1 EuropeanOption.1 SwapValuation.1 \
		quantlib-config.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
CFLAGS+=	-O0
.endif

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|(prefix)/aclocal|(datadir)/aclocal|g'

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud