diff options
author | lippe <lippe@FreeBSD.org> | 2012-05-25 00:12:25 +0800 |
---|---|---|
committer | lippe <lippe@FreeBSD.org> | 2012-05-25 00:12:25 +0800 |
commit | 8cab21a72107db70b0f959bf51f058923b434fe2 (patch) | |
tree | 9b260c44c157adceaaad500585999fa6a2f3c92f /misc | |
parent | 0ebdde795301e96c9dea5510e9cf5f8a85eca3f1 (diff) | |
download | freebsd-ports-gnome-8cab21a72107db70b0f959bf51f058923b434fe2.tar.gz freebsd-ports-gnome-8cab21a72107db70b0f959bf51f058923b434fe2.tar.zst freebsd-ports-gnome-8cab21a72107db70b0f959bf51f058923b434fe2.zip |
- Add OPTIONS to use openpty instead.
- Bump PORTREVISION.
PR: ports/161087
Submitted by: aakuusta@gmail.com
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ttyrec/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/misc/ttyrec/Makefile b/misc/ttyrec/Makefile index aa0a328cedca..fc47b6b39af3 100644 --- a/misc/ttyrec/Makefile +++ b/misc/ttyrec/Makefile @@ -7,7 +7,7 @@ PORTNAME= ttyrec PORTVERSION= 1.0.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= http://0xcc.net/ttyrec/ @@ -21,6 +21,10 @@ PLIST_FILES= bin/ttyplay \ MAN1= ttyplay.1 ttyrec.1 BINS= ttyplay ttyrec ttytime +OPTIONS= OPENPTY "Use openpty instead" off + +.include <bsd.port.pre.mk> + post-patch: @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \ ${WRKSRC}/Makefile @@ -29,4 +33,8 @@ do-install: ${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin ${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/,} ${MAN1PREFIX}/man/man1 -.include <bsd.port.mk> +.if defined(WITH_OPENPTY) +CFLAGS+= -DHAVE_openpty -lutil +.endif + +.include <bsd.port.post.mk> |