7 MASTER_SITES= SF/${PORTNAME}/Tar.Gz_Bz2%20Archive/${PORTVERSION}
9 MAINTAINER= ports@FreeBSD.org
10 COMMENT= Tiny Vector and Matrix template library
12 LICENSE= LGPL21 # (or later)
14 OPTIONS_DEFINE= CPPUNIT DEBUG DOCS EXAMPLES
18 USE_AUTOTOOLS= libtool
19 CONFIGURE_ARGS= --with-cxx=${CXX}
21 .include <bsd.port.options.mk>
23 .if ${PORT_OPTIONS:MCPPUNIT}
24 LIB_DEPENDS+= libcppunit-1.12.so:${PORTSDIR}/devel/cppunit
25 CONFIGURE_ARGS+= --with-cppunit-prefix=${LOCALBASE}
27 CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no
30 .if ${PORT_OPTIONS:MDEBUG}
31 CXXFLAGS+= -DTVMET_DEBUG
33 CXXFLAGS+= -DTVMET_OPTIMIZE
37 @${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
40 @${MKDIR} ${STAGEDIR}${DOCSDIR}
41 .for ext in dox cc css h png
42 (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.${ext} \
43 ${STAGEDIR}${DOCSDIR})
45 @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
47 (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.${ext} \
48 ${STAGEDIR}${EXAMPLESDIR})
51 .include <bsd.port.mk>