aboutsummaryrefslogtreecommitdiffstats
path: root/math/blitz++/Makefile
blob: 21a61f69c05fda0b64f322184a58be4acbbd6df8 (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
# ex:ts=8
# Ports collection makefile for:    blitz++
# Date created:         Jul 25, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   blitz++
PORTVERSION=    0.7
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= blitz
DISTNAME=   Blitz++-${PORTVERSION}

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

USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-cxx=gcc --enable-optimize --disable-debug
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}"

INFO=       blitz
DOCSDIR=    ${PREFIX}/share/doc/blitz

post-patch:
    @${FIND} ${WRKSRC}/manual -name "Makefile.in" | ${XARGS} \
        ${REINPLACE_CMD} -e 's|[(]prefix[)]|(datadir)|g'
    @${REINPLACE_CMD} -e 's|g++|\$${CXX}|g ; \
         s|"-ftemplate-depth-30|"\$${CXXFLAGS} -ftemplate-depth-30|g ; \
         s|-O2||g' ${WRKSRC}/configure

.include <bsd.port.mk>