1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/sysutils/mapchan/Makefile
Boris Samorodov 0370805218 . remove unneeded include of bsd.port.options.mk;
. fix stage orphans error;
. mute temporary file manipulation (mv, rm).
2013-11-21 19:43:18 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Konstantin Reznichenko <kot@premierbank.dp.ua>
# $FreeBSD$
PORTNAME= mapchan
PORTVERSION= 3.2
CATEGORIES= sysutils converters
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= bsam@FreeBSD.org
COMMENT= Transform the input and output of a terminal (SCO Unix alike)
USES= iconv
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= STAGEDIR=${STAGEDIR} MAPDIR=${STAGEDIR}${PREFIX}/etc/${PORTNAME}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
OPTIONS_DEFINE= DOCS
post-extract:
@${CP} ${WRKSRC}/doc/mapchan.F ${WRKSRC}/doc/mapchan.8
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.pre.mk>
post-patch:
@${MV} ${WRKSRC}/examples/default ${WRKSRC}/examples/default.sample
@${RM} ${WRKSRC}/examples/default.orig
${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.post.mk>