mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
ac6da6d61b
- Fix build with clang - Add LICENSE (LGPL21) - USES gmake - Allow staging PR: ports/184240 Submitted by: KATO Tsuguru <tkato432 yahoo.com>
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# Created by: 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
|
|
|
|
LICENSE= LGPL21 # (or later)
|
|
|
|
OPTIONS_DEFINE= CPPUNIT DEBUG DOCS EXAMPLES
|
|
|
|
USE_BZIP2= yes
|
|
USES= gmake
|
|
USE_AUTOTOOLS= libtool
|
|
CONFIGURE_ARGS= --with-cxx=${CXX}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCPPUNIT}
|
|
LIB_DEPENDS+= libcppunit-1.12.so:${PORTSDIR}/devel/cppunit
|
|
CONFIGURE_ARGS+= --with-cppunit-prefix=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CXXFLAGS+= -DTVMET_DEBUG
|
|
.else
|
|
CXXFLAGS+= -DTVMET_OPTIMIZE
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for ext in dox cc css h png
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.${ext} \
|
|
${STAGEDIR}${DOCSDIR})
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for ext in cc
|
|
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.${ext} \
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|