aboutsummaryrefslogtreecommitdiffstats
path: root/math/blitz++/Makefile
blob: 467f113ae54183362f222e7fb38fb8b133b18f03 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   blitz++
PORTVERSION=    1.0.1
CATEGORIES= math

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ class library for scientific computing

LICENSE=    GPLv3 BSD3CLAUSE
LICENSE_COMB=   multi

USES=       gmake libtool pathfix python:2.7
USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared CXX_OPTIMIZE_FLAGS="${CFLAGS}"
MAKE_JOBS_UNSAFE=   yes

USE_GITHUB= yes
GH_ACCOUNT= blitzpp
GH_PROJECT= blitz

PORTDOCS=   AUTHORS ChangeLog* LEGAL README NEWS \
        README.binutils TODO doc/*.txt

OPTIONS_DEFINE= DOCS
OPTIONS_SUB=    yes
DOCS_INFO=  blitz
DOCS_USES=  makeinfo

ALL_TARGET= all
DOCS_ALL_TARGET=    info

INSTALL_TARGET= install-strip
DOCS_INSTALL_TARGET=    install-info

post-patch:
    @${REINPLACE_CMD} -e 's|g++|\$${CXX}|g ; \
         s|"-ftemplate-depth-30|"\$${CXXFLAGS} -ftemplate-depth-30|g ; \
         s|-O3|-O2|g ; s|-funroll-loops||g' ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's,python,${PYTHON_CMD},' ${WRKSRC}/blitz/generate/Makefile.in

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

post-install:
    @${RM} -r ${STAGEDIR}${PREFIX}/share/doc/blitz-0.10

.include <bsd.port.mk>