freebsd-ports/devel/monotone/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

67 lines
1.8 KiB
Makefile

# New ports collection makefile for: monotone
# Date created: 05 Feb 2004
# Whom: Mark A. Wicks <mwicks@kettering.edu>
#
# $FreeBSD$
#
PORTNAME= monotone
PORTVERSION= 0.35
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://monotone.ca/downloads/${PORTVERSION}/
MAINTAINER= lapo@lapo.it
COMMENT= A distributed version control system with digital signatures
SUB_FILES= pkg-message
USE_GCC= 3.4+
USE_PERL5_BUILD=yes
USE_ICONV= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
PLIST_FILES= bin/mtn share/zsh/site-functions/_mtn \
"@unexec [ -f %D/bin/zsh ] || rmdir %D/share/zsh/site-functions 2>/dev/null || true" \
"@dirrmtry share/zsh"
INFO= monotone
PORTDOCS= NEWS UPGRADE monotone.html
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
LIB_DEPENDS+= boost_regex.4:${PORTSDIR}/devel/boost-gcc3
.else
LIB_DEPENDS+= boost_regex.4:${PORTSDIR}/devel/boost
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
.else
USE_GETTEXT= yes
PLIST_FILES+= share/locale/de/LC_MESSAGES/monotone.mo \
share/locale/es/LC_MESSAGES/monotone.mo \
share/locale/fr/LC_MESSAGES/monotone.mo \
share/locale/it/LC_MESSAGES/monotone.mo \
share/locale/ja/LC_MESSAGES/monotone.mo \
share/locale/pt_BR/LC_MESSAGES/monotone.mo \
share/locale/sv/LC_MESSAGES/monotone.mo
.endif
post-extract:
@${RM} -f ${WRKSRC}/monotone.info*
post-install:
${MKDIR} ${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/contrib/monotone.zsh_completion ${PREFIX}/share/zsh/site-functions/_mtn
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>