2013-09-20 20:55:04 +00:00
|
|
|
# Created by: ijliao
|
2002-07-25 08:12:48 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tvmet
|
2007-07-02 12:12:11 +00:00
|
|
|
PORTVERSION= 1.7.2
|
2014-05-30 18:42:05 +00:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
2013-11-30 11:04:51 +00:00
|
|
|
LICENSE= LGPL21 # (or later)
|
2014-05-30 18:42:05 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-11-30 11:04:51 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= CPPUNIT DEBUG DOCS EXAMPLES
|
|
|
|
|
2014-05-30 18:42:05 +00:00
|
|
|
USES= gmake tar:bzip2 libtool
|
|
|
|
GNU_CONFIGURE= yes
|
2013-11-30 11:04:51 +00:00
|
|
|
CONFIGURE_ARGS= --with-cxx=${CXX}
|
2002-10-18 21:27:36 +00:00
|
|
|
|
2013-11-30 11:04:51 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2005-06-06 18:11:49 +00:00
|
|
|
|
2013-11-30 11:04:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MCPPUNIT}
|
|
|
|
LIB_DEPENDS+= libcppunit-1.12.so:${PORTSDIR}/devel/cppunit
|
2005-06-06 18:11:49 +00:00
|
|
|
CONFIGURE_ARGS+= --with-cppunit-prefix=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no
|
|
|
|
.endif
|
2002-10-16 21:28:17 +00:00
|
|
|
|
2013-11-30 11:04:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2007-07-02 12:12:11 +00:00
|
|
|
CXXFLAGS+= -DTVMET_DEBUG
|
|
|
|
.else
|
|
|
|
CXXFLAGS+= -DTVMET_OPTIMIZE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2011-11-18 23:30:13 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
|
2007-07-02 12:12:11 +00:00
|
|
|
|
2002-10-18 21:27:36 +00:00
|
|
|
post-install:
|
2013-11-30 11:04:51 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2003-05-01 22:32:09 +00:00
|
|
|
.for ext in dox cc css h png
|
2013-11-30 11:04:51 +00:00
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.${ext} \
|
|
|
|
${STAGEDIR}${DOCSDIR})
|
2002-10-18 21:27:36 +00:00
|
|
|
.endfor
|
2013-11-30 11:04:51 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2002-10-18 21:27:36 +00:00
|
|
|
.for ext in cc
|
2013-11-30 11:04:51 +00:00
|
|
|
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.${ext} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR})
|
2002-10-18 21:27:36 +00:00
|
|
|
.endfor
|
2002-07-25 08:12:48 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|