pkgsrc/misc/ttyrec/Makefile
leot 420c9750eb Fix ttyrec "Out of pty's" error.
Reported by jwodder via PR pkg/43209 (patch similar in spirit but it's a bit
less intrusive).
2016-05-31 08:13:45 +00:00

32 lines
941 B
Makefile

# $NetBSD: Makefile,v 1.15 2016/05/31 08:13:45 leot Exp $
DISTNAME= ttyrec-1.0.8
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://0xcc.net/ttyrec/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://0xcc.net/ttyrec/
COMMENT= Tty recorder
LICENSE= original-bsd
CFLAGS.SunOS+= -DSVR4
.include "../../mk/bsd.prefs.mk"
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
CFLAGS+= -DHAVE_openpty
LDFLAGS+= -lutil
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttyplay ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ttyrec ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ttytime ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ttyplay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/ttyrec.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/ttytime.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"