mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
0370805218
. fix stage orphans error; . mute temporary file manipulation (mv, rm).
39 lines
1.1 KiB
Makefile
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>
|