aboutsummaryrefslogtreecommitdiffstats
path: root/finance/quantlib/Makefile
blob: cc4d40838bce2023bf57dc03fe73610c392fc21b (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   quantlib
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= finance
MASTER_SITES=   SF/${PORTNAME}/QuantLib/${PORTVERSION}
DISTNAME=   QuantLib-${PORTVERSION}

MAINTAINER= dikshie@sfc.wide.ad.jp
COMMENT=    A comprehensive software framework for quantitative finance

LIB_DEPENDS=    boost_thread:${PORTSDIR}/devel/boost-libs

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

USE_AUTOTOOLS=  libtool
GNU_CONFIGURE=  yes
CPPFLAGS+=  ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+=   ${PTHREAD_LIBS} -L${LOCALBASE}/lib
USE_LDCONFIG=   yes

DEPRECATED= Broken for more than 6 month
EXPIRATION_DATE=    2013-12-22

BROKEN=     fails to build

MAN1=       quantlib-config.1 quantlib-test-suite.1

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "alpha"
BROKEN=     Does not build on ia64 or alpha
.endif

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|: install-dist_lispLISP|:|g ; \
         s|@CPPUNIT_FOUND_TRUE@|#|g ; \
         s|@CPPUNIT_FOUND_FALSE@||g'
    @${REINPLACE_CMD} -e 's|-release $$(PACKAGE_VERSION)||' ${WRKSRC}/ql/Makefile.in

post-install:
    ${INSTALL_DATA} ${WRKSRC}/quantlib.el ${PREFIX}/share/emacs/site-lisp

.include <bsd.port.post.mk>