1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/editors/mg/Makefile
Mark Willson 37579ae72a editors/mg: Update to 20240405
ChangeLog: https://cvsweb.openbsd.org/src/usr.bin/mg/

 * Reinstate space-to-tabstop entry in manpage
 * Call vttidy in the exit path for batch mode
 * Fix hang for (regexp-replace "^.*$" "")

PR:		278248
Reported by:	cdr.nil@gmail.com
2024-04-11 08:14:33 +02:00

41 lines
941 B
Makefile

PORTNAME= mg
DISTVERSION= 20240405
PORTEPOCH= 1
CATEGORIES= editors
MASTER_SITES= https://hydrus.org.uk/downloads/
MAINTAINER= cdr.nil@gmail.com
COMMENT= Small, fast Emacs-like editor
WWW= https://man.openbsd.org/mg
LICENSE= PD
USES= ncurses uidfix
MAKE_ARGS+= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man/man \
NCURSESLIB=${NCURSESLIB} NCURSESINC=${NCURSESINC}
FLAVORS= dynamic static
FLAVOR?= ${FLAVORS:[1]}
static_PKGNAMESUFFIX= -static
.if ${FLAVOR} == static
COMMENT+= (rescue(8) version)
MAKE_ARGS+= NO_SHARED=yes
PLIST_FILES= /rescue/mg
.else
PLIST_FILES= bin/mg \
share/man/man1/mg.1.gz
PORTDOCS= README tutorial
OPTIONS_DEFINE= DOCS
.endif
.if ${FLAVOR} == static
do-install:
@${MKDIR} ${STAGEDIR}/rescue
${INSTALL_PROGRAM} ${WRKSRC}/mg ${STAGEDIR}/rescue
.else
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>