Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P435
Command-Line Input
Active
Public
Actions
Authored by
swills
on Oct 9 2020, 4:35 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F9738076: Command-Line Input
Oct 9 2020, 4:35 PM
2020-10-09 16:35:09 (UTC+0)
Subscribers
None
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>
Event Timeline
swills
created this paste.
Oct 9 2020, 4:35 PM
2020-10-09 16:35:09 (UTC+0)
Log In to Comment