Page MenuHomeFreeBSD

Command-Line Input

Authored By
swills
Oct 9 2020, 4:35 PM
Size
703 B
Referenced Files
None
Subscribers
None

Command-Line Input

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>

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2840319
Default Alt Text
Command-Line Input (703 B)

Event Timeline