Import math/tvmet version 1.7.2
[dports.git] / math / tvmet / Makefile
1 # ex:ts=8
2 # Ports collection makefile for:        tvmet
3 # Date created:                 Jul 25, 2002
4 # Whom:                         ijliao
5 #
6 # $FreeBSD: ports/math/tvmet/Makefile,v 1.22 2012/11/17 05:59:31 svnexp Exp $
7 #
8
9 PORTNAME=       tvmet
10 PORTVERSION=    1.7.2
11 CATEGORIES=     math
12 MASTER_SITES=   SF/${PORTNAME}/Tar.Gz_Bz2%20Archive/${PORTVERSION}
13
14 MAINTAINER=     ports@FreeBSD.org
15 COMMENT=        Tiny Vector and Matrix template library
16
17 USE_BZIP2=      yes
18 USE_GMAKE=      yes
19 USE_AUTOTOOLS=  libtool
20 MAKE_ARGS=      CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
21
22 MAN1=           tvmet-config.1
23
24 .if defined(WITH_CPPUNIT)
25 LIB_DEPENDS+=   cppunit-1.10.2:${PORTSDIR}/devel/cppunit
26 CONFIGURE_ARGS+=        --with-cppunit-prefix=${LOCALBASE}
27 .else
28 CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no
29 .endif
30
31 .if defined(WITH_DEBUG)
32 CXXFLAGS+=      -DTVMET_DEBUG
33 .else
34 CXXFLAGS+=      -DTVMET_OPTIMIZE
35 .endif
36
37 post-patch:
38         @${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
39
40 post-install:
41 .if !defined(NOPORTDOCS)
42         @${MKDIR} ${DOCSDIR}
43 .for ext in dox cc css h png
44         ${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR}
45 .endfor
46         @${MKDIR} ${EXAMPLESDIR}
47 .for ext in cc
48         ${INSTALL_DATA} ${WRKSRC}/examples/*.${ext} ${EXAMPLESDIR}
49 .endfor
50 .endif
51
52 .include <bsd.port.mk>