freebsd-ports/math/tvmet/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

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
MAINTAINER= ports@FreeBSD.org
COMMENT= Tiny Vector and Matrix template library
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
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>