2002-07-25 08:12:48 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: tvmet
|
|
|
|
# Date created: Jul 25, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tvmet
|
2007-07-02 12:12:11 +00:00
|
|
|
PORTVERSION= 1.7.2
|
2002-07-25 08:12:48 +00:00
|
|
|
CATEGORIES= math
|
2009-08-22 00:28:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Tar.Gz_Bz2%20Archive/${PORTVERSION}
|
2002-07-25 08:12:48 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Tiny Vector and Matrix template library
|
2002-07-25 08:12:48 +00:00
|
|
|
|
2003-05-01 22:32:09 +00:00
|
|
|
USE_BZIP2= yes
|
2005-06-06 18:11:49 +00:00
|
|
|
USE_GMAKE= yes
|
2009-08-02 19:36:34 +00:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2007-07-02 12:12:11 +00:00
|
|
|
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
2002-10-18 21:27:36 +00:00
|
|
|
|
2005-06-06 18:11:49 +00:00
|
|
|
MAN1= tvmet-config.1
|
|
|
|
|
|
|
|
.if defined(WITH_CPPUNIT)
|
|
|
|
LIB_DEPENDS+= cppunit-1.10.2:${PORTSDIR}/devel/cppunit
|
|
|
|
CONFIGURE_ARGS+= --with-cppunit-prefix=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no
|
|
|
|
.endif
|
2002-10-16 21:28:17 +00:00
|
|
|
|
2007-07-02 12:12:11 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CXXFLAGS+= -DTVMET_DEBUG
|
|
|
|
.else
|
|
|
|
CXXFLAGS+= -DTVMET_OPTIMIZE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
|
|
|
|
|
2002-10-18 21:27:36 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-05-01 22:32:09 +00:00
|
|
|
.for ext in dox cc css h png
|
2002-10-18 21:27:36 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for ext in cc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.${ext} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2002-07-25 08:12:48 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|