freebsd-ports/sysutils/mtm/Makefile
Alexey Dokuchaev 8b63b54d43 Cleanup: drop redundant DESTDIR propagation via MAKE_{ARGS,ENV}
Our framework usually DTRT; sometimes it's necessary to pass it
explicitly, e.g. for ports with USES+=qmake or which use exotic
build systems, but these are mostly staging dawn and apparently
debug leftovers, so remove them to not confuse the reader.
2023-05-16 03:57:46 +00:00

47 lines
1 KiB
Makefile

PORTNAME= mtm
DISTVERSION= 1.2.1
CATEGORIES= sysutils
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Terminal multiplexer focused on simplicity, compatibility and stability
WWW= https://github.com/deadpixi/mtm
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/README.rst
# NB: ncurses 6.1 is required.
USES= localbase
USE_CSTD= gnu99
USE_GITHUB= yes
GH_ACCOUNT= deadpixi
CFLAGS+= -I${NCURSESINC} ${CPPFLAGS}
LIBS+= -L${NCURSESLIB} -lncurses -lutil
BINARY_ALIAS= strip=true
PLIST_FILES= bin/mtm \
share/man/man1/mtm.1.gz
PORTDATA= mtm.ti
do-install:
${INSTALL_MAN} ${WRKSRC}/mtm.1 \
${STAGEDIR}${MAN1PREFIX}/share/man/man1/mtm.1
@${MKDIR} ${STAGEDIR}/bin
${INSTALL_PROGRAM} ${WRKSRC}/mtm ${STAGEDIR}${PREFIX}/bin/mtm
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mtm.ti ${STAGEDIR}${DATADIR}/mtm.ti
.include <bsd.port.options.mk>
.if make(makesum) || make(fetch) && "${NO_CHECKSUM}" == yes
.else
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
USES+= ncurses:base
.else
USES+= ncurses:port
.endif
.endif
.include <bsd.port.mk>