565f8cc360
Pet portlint, portfmt. Changelog: * Ignore universal ctags extended metadata in tagaddress, making search patterns work again * Fix auto-indent-mode with custom tab widths * Add handling for C-u modifier in M-! and M-| * Dired-up-directory bound to ^ to go up a directory in dired buffers PR: 282052 Approved by: submitter is maintainer
46 lines
951 B
Makefile
46 lines
951 B
Makefile
PORTNAME= mg
|
|
DISTVERSION= 20241008
|
|
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
|
|
|
|
FLAVORS= dynamic static
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
static_PKGNAMESUFFIX= -static
|
|
|
|
USES= ncurses uidfix
|
|
|
|
.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
|
|
|
|
MAKE_ARGS+= BINDIR=${PREFIX}/bin \
|
|
MANDIR=${PREFIX}/share/man/man \
|
|
NCURSESINC=${NCURSESINC} \
|
|
NCURSESLIB=${NCURSESLIB}
|
|
|
|
.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>
|