diff options
author | Boris Samorodov <bsam@FreeBSD.org> | 2013-05-26 15:32:09 +0000 |
---|---|---|
committer | Boris Samorodov <bsam@FreeBSD.org> | 2013-05-26 15:32:09 +0000 |
commit | e9277ce26f2cfc54202645e69247d77276f4fde5 (patch) | |
tree | 05e56fa3c4dd311ba6b204d3b55dd29df531ca64 /sysutils/mapchan/Makefile | |
parent | c9d29cc04c66e07b2297fa47184ed419f4ab2dc8 (diff) | |
download | ports-e9277ce26f2cfc54202645e69247d77276f4fde5.tar.gz ports-e9277ce26f2cfc54202645e69247d77276f4fde5.zip |
Notes
Diffstat (limited to 'sysutils/mapchan/Makefile')
-rw-r--r-- | sysutils/mapchan/Makefile | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sysutils/mapchan/Makefile b/sysutils/mapchan/Makefile index 5234496be58f..b43586bb5188 100644 --- a/sysutils/mapchan/Makefile +++ b/sysutils/mapchan/Makefile @@ -1,43 +1,43 @@ -# New ports collection makefile for: Utility "mapchan" of SCO Unix -# Date created: 17 February 2004 -# Whom: Konstantin Reznichenko <kot@premierbank.dp.ua> -# +# Created by: Konstantin Reznichenko <kot@premierbank.dp.ua> # $FreeBSD$ -# PORTNAME= mapchan -PORTVERSION= 2.0 +PORTVERSION= 3.2 CATEGORIES= sysutils converters -MASTER_SITES= http://www.iceb.vc.ukrtel.net/download/ +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} +EXTRACT_SUFX= .tgz MAINTAINER= bsam@FreeBSD.org -COMMENT= Implementation of the utility "mapchan" from SCO Unix - -USE_BZIP2= yes +COMMENT= Transform the input and output of a terminal (SCO Unix alike) +USES= iconv WRKSRC= ${WRKDIR}/${PORTNAME} - MAKE_ENV= MAPDIR=${PREFIX}/etc/${PORTNAME} - ETCDAT= *.map default.sample - MAN8= mapchan.8 - PORTDOCS= README +OPTIONS_DEFINE= DOCS post-extract: @${CP} ${WRKSRC}/doc/mapchan.F ${WRKSRC}/doc/mapchan.8 -post-patch: - @${FIND} ${WRKSRC} -name '*.orig' | ${XARGS} ${RM} - @${CP} ${WRKSRC}/examples/default ${WRKSRC}/examples/default.sample - @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/mapchan.c +.include <bsd.port.options.mk> post-install: - ${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${MANPREFIX}/man/man8 -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${MANPREFIX}/man/man8 +.endif + +.include <bsd.port.pre.mk> + +post-patch: + ${FIND} ${WRKSRC} -name '*.orig' -delete + ${CP} ${WRKSRC}/examples/default ${WRKSRC}/examples/default.sample + ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/mapchan.c +.if ${OSVERSION} > 900007 + ${REINPLACE_CMD} -e "s|utmp.h|utmpx.h|" ${WRKSRC}/mapchan.c .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |