aboutsummaryrefslogtreecommitdiff
path: root/comms/minicom/Makefile
blob: a1ba83e716fdc494c015ffb741fa595bc07fd48e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: obrien@cs.ucdavis.edu

PORTNAME=	minicom
PORTVERSION=	2.7.1
PORTREVISION=	2
CATEGORIES=	comms
MASTER_SITES=	https://fossies.org/linux/misc/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	MS-DOS Telix serial communication program "workalike"

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	lrz:comms/lrzsz

USES=		iconv localbase ncurses
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-dfl-baud=57600 \
		--enable-dfl-port=/dev/cuau0 \
		--enable-lock-dir=/var/spool/lock \
		--sysconfdir=${PREFIX}/etc/minicom
LIBS+=		${ICONV_LIB} -lncurses

OPTIONS_DEFINE=		DOCS NLS
OPTIONS_SUB=		yes
NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

post-patch:
	${REINPLACE_CMD} -e "s@/usr/local/bin/@${LOCALBASE}/bin/@; \
		s@/sz@/lsz@;s@/sb@/lsb@;s@/sx@/lsx@;s@/rz@/lrz@; \
		s@/rb@/lrb@;s@/rx@/lrx@" ${WRKSRC}/src/rwconf.c

post-install:
	${MKDIR} ${STAGEDIR}${ETCDIR}

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}/
	(umask 022 && cd ${WRKSRC} && ${TAR} --exclude '*/Makefile*' \
		 --exclude '*.orig' -chf - extras doc | ${TAR}  -xf - -C \
		${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>