mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: tvmet
|
|
# Date created: Jul 25, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tvmet
|
|
PORTVERSION= 1.7.2
|
|
CATEGORIES= math
|
|
MASTER_SITES= SF/${PORTNAME}/Tar.Gz_Bz2%20Archive/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tiny Vector and Matrix template library
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= libtool:22
|
|
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
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
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CXXFLAGS+= -DTVMET_DEBUG
|
|
.else
|
|
CXXFLAGS+= -DTVMET_OPTIMIZE
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for ext in dox cc css h png
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for ext in cc
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.${ext} ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|