aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-15 20:19:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-15 20:19:58 +0000
commitcf06ce6af8f34d95b44efce44a5261a0c0b2ba44 (patch)
tree927ae027b15bacf15e723af765208d03c1a43604 /misc
parentd8f493e9bcf4338efc9bf4b232c02749b976265c (diff)
downloadports-cf06ce6af8f34d95b44efce44a5261a0c0b2ba44.tar.gz
ports-cf06ce6af8f34d95b44efce44a5261a0c0b2ba44.zip
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/ttyrec/Makefile17
-rw-r--r--misc/ttyrec/files/patch-ttyrec.c4
-rw-r--r--misc/ttyrec/pkg-descr9
3 files changed, 11 insertions, 19 deletions
diff --git a/misc/ttyrec/Makefile b/misc/ttyrec/Makefile
index c303d98ba298..bac11cd32684 100644
--- a/misc/ttyrec/Makefile
+++ b/misc/ttyrec/Makefile
@@ -10,8 +10,7 @@ MASTER_SITES= http://0xcc.net/ttyrec/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tty recorder
-MANPAGE= ttyplay.1 ttyrec.1
-BINS= ttyplay ttyrec ttytime
+LICENSE= BSD4CLAUSE
OPTIONS_DEFINE= OPENPTY
OPENPTY_DESC= Use openpty instead
@@ -19,19 +18,13 @@ OPENPTY_DESC= Use openpty instead
PLIST_FILES= bin/ttyplay bin/ttyrec bin/ttytime \
man/man1/ttyplay.1.gz man/man1/ttyrec.1.gz
-.include <bsd.port.options.mk>
+OPENPTY_CFLAGS= -DHAVE_openpty -lutil
post-patch:
- @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \
- ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${MANPAGE:S,^,${WRKSRC}/,} \
- ${STAGEDIR}${MANPREFIX}/man/man1
-
-.if ${PORT_OPTIONS:MOPENPTY}
-CFLAGS+= -DHAVE_openpty -lutil
-.endif
+ cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ttyplay ttyrec ttytime ${STAGEDIR}${PREFIX}/bin/
+ cd ${WRKSRC}/ && ${INSTALL_MAN} ttyplay.1 ttyrec.1 ${STAGEDIR}${MANPREFIX}/man/man1/
.include <bsd.port.mk>
diff --git a/misc/ttyrec/files/patch-ttyrec.c b/misc/ttyrec/files/patch-ttyrec.c
index aa0ba715e199..ad9aae940b75 100644
--- a/misc/ttyrec/files/patch-ttyrec.c
+++ b/misc/ttyrec/files/patch-ttyrec.c
@@ -1,5 +1,5 @@
---- ttyrec.c.orig Tue Jun 4 21:52:00 2002
-+++ ttyrec.c Tue Jun 4 21:52:12 2002
+--- ttyrec.c.orig 2002-06-04 21:52:00 UTC
++++ ttyrec.c
@@ -202,11 +202,7 @@
void
finish()
diff --git a/misc/ttyrec/pkg-descr b/misc/ttyrec/pkg-descr
index 95e6b106fe1d..695e30c11abc 100644
--- a/misc/ttyrec/pkg-descr
+++ b/misc/ttyrec/pkg-descr
@@ -1,7 +1,6 @@
-ttyrec is a tty recorder. Recorded data can be played back with the
-included ttyplay command. ttyrec is just a derivative of script
-command for recording timing information with microsecond accuracy
-as well. It can record emacs -nw, vi, lynx, or any programs running
-on tty.
+ttyrec is a tty recorder. Recorded data can be played back with the included
+ttyplay command. ttyrec is just a derivative of script command for recording
+timing information with microsecond accuracy as well. It can record emacs -nw,
+vi, lynx, or any programs running on tty.
WWW: http://0xcc.net/ttyrec/index.html.en