freebsd-ports/sysutils/mapchan/Makefile
Guido Falsi 642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00

45 lines
1.2 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= MAPDIR=${PREFIX}/etc/${PORTNAME}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
ETCDAT= *.map default.sample
MAN8= mapchan.8
PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-extract:
@${CP} ${WRKSRC}/doc/mapchan.F ${WRKSRC}/doc/mapchan.8
.include <bsd.port.options.mk>
post-install:
.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.post.mk>