comms/minicom: Clean up

- Use USES=localbase instead of setting LIBS and CPPFLAGS
- Set LICENSE_FILE and do not install the license to the documentation
  directory.
- Replace unnecessary "+=" used for CONFIGURE_ARGS with "=".
- Remove no-op REINPLACE_CMD.
- Use MKDIR instead of INSTALL.
- Format the makefile with portfmt.
This commit is contained in:
Mateusz Piotrowski 2020-04-15 11:37:46 +00:00
parent 806cbf0194
commit 09e3a2ce74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531761
2 changed files with 13 additions and 17 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= minicom
PORTVERSION= 2.7.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= comms
MASTER_SITES= https://fossies.org/linux/misc/
@ -11,37 +11,34 @@ 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 ncurses
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lncurses
USES= iconv localbase ncurses
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
--sysconfdir=${PREFIX}/etc/minicom \
--enable-lock-dir=/var/spool/lock \
--enable-dfl-port=/dev/cuau0
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
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
${REINPLACE_CMD} -E -e "s@^(SUBDIRS = .*) intl@\1@" \
${WRKSRC}/Makefile.in
post-install:
${INSTALL} -d -m 0755 ${STAGEDIR}${PREFIX}/etc/minicom
${MKDIR} ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
${INSTALL} -d -m 0755 ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${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 \

View File

@ -26,7 +26,6 @@ man/man1/xminicom.1.gz
%%NLS%%share/locale/vi/LC_MESSAGES/minicom.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/minicom.mo
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/doc/Announce-1.78
%%PORTDOCS%%%%DOCSDIR%%/doc/Announce-1.82