Page MenuHomeFreeBSD
Paste P435

Command-Line Input
ActivePublic

Authored by swills on Oct 9 2020, 4:35 PM.
diff --git sysutils/mtm/Makefile sysutils/mtm/Makefile
index 90315ca0ec6b..6895e8e40305 100644
--- sysutils/mtm/Makefile
+++ sysutils/mtm/Makefile
@@ -11,7 +11,8 @@ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/README.rst
# NB: ncurses 6.1 is required.
-USES= localbase:ldflags ncurses:port
+USES= localbase:ldflags
+
USE_CSTD= gnu99
USE_GITHUB= yes
GH_ACCOUNT= deadpixi
@@ -32,4 +33,12 @@ do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mtm.ti ${STAGEDIR}${DATADIR}/mtm.ti
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
+USES+= ncurses:base
+.else
+USES+= ncurses:port
+.endif
+
+.include <bsd.port.post.mk>