diff options
Diffstat (limited to 'misc/quantlib/Makefile')
-rw-r--r-- | misc/quantlib/Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/misc/quantlib/Makefile b/misc/quantlib/Makefile index 83853fd..0775d3e 100644 --- a/misc/quantlib/Makefile +++ b/misc/quantlib/Makefile @@ -7,30 +7,33 @@ # PORTNAME= quantlib -PORTVERSION= 0.3.0 +PORTVERSION= 0.3.1 CATEGORIES= 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_BZIP2= yes USE_LIBTOOL= yes -CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} INSTALLS_SHLIB= yes MAN1= DiscreteHedging.1 EuropeanOption.1 SwapValuation.1 \ quantlib-config.1 -pre-patch: - @${REINPLACE_CMD} -e 's|-g -O3|\$$CXXFLAGS|g' ${WRKSRC}/configure - @${FIND} ${WRKSRC} -name "Makefile.in" | \ - ${XARGS} ${REINPLACE_CMD} -e 's|-g -O.|\@CXXFLAGS\@|g' - @${FIND} ${WRKSRC}/Examples -name "Makefile.in" | \ - ${XARGS} ${REINPLACE_CMD} -e 's|-pedantic -Wall|-O0|g' +.include <bsd.port.pre.mk> -.include <bsd.port.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> |