1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/comms/minicom/Makefile
Johan van Selst 495733685f - Update minicom to 2.7
- Run-time dependency lrz is not optional
- Simplify options handling
2014-01-02 17:50:04 +00:00

57 lines
1.8 KiB
Makefile

# Created by: obrien@cs.ucdavis.edu
# $FreeBSD$
PORTNAME= minicom
PORTVERSION= 2.7
CATEGORIES= comms
MASTER_SITES= https://alioth.debian.org/frs/download.php/file/3977/ \
http://alioth.debian.org/frs/download.php/file/3977/ \
http://fossies.org/linux/misc/
MAINTAINER= johans@FreeBSD.org
COMMENT= An MS-DOS Telix serial communication program "workalike"
RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
LRZSZ_DESC= Install X/Y/ZMODEM protocol handlers
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
USES= iconv
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
--sysconfdir=${PREFIX}/etc/minicom \
--enable-lock-dir=/var/spool/lock \
--enable-dfl-port=/dev/cuau0
MAKE_ARGS+= LIBS+="${ICONV_LIB} -lcurses"
.include <bsd.port.pre.mk>
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
${REINPLACE_CMD} -E -e "s@^(SUBDIRS = .*) intl@\1@" \
${WRKSRC}/Makefile.in
post-install:
${CHOWN} uucp:dialer ${STAGEDIR}${PREFIX}/bin/minicom
${CHMOD} 4511 ${STAGEDIR}${PREFIX}/bin/minicom
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${PREFIX}/etc/minicom
${CHOWN} uucp ${STAGEDIR}${PREFIX}/etc/minicom
.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/COPYING ${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})
.endif
.include <bsd.port.post.mk>