diff --git a/editors/mg/Makefile b/editors/mg/Makefile index 6db8a3b90a71..c7320e0d4345 100644 --- a/editors/mg/Makefile +++ b/editors/mg/Makefile @@ -1,45 +1,40 @@ PORTNAME= mg DISTVERSION= 20231016 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 -STAGEOWN= ${USER} -# replace with STAGEGRP=${.MAKE.GID} once FreeBSD 12 is EOL -STAGEGRP!= id -gn -MAKE_ARGS+= BINOWN=${STAGEOWN} BINGRP=${STAGEGRP} MANOWN=${STAGEOWN} \ - MANGRP=${STAGEGRP} BINDIR=${PREFIX}/bin \ - MANDIR=${PREFIX}/man/man NCURSESLIB=${NCURSESLIB} \ - NCURSESINC=${NCURSESINC} +USES= ncurses uidfix +MAKE_ARGS+= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/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 \ 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