diff options
author | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2012-05-24 16:12:25 +0000 |
---|---|---|
committer | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2012-05-24 16:12:25 +0000 |
commit | 3d20e1be985bd9a64aa5301a2358044c9a4616d4 (patch) | |
tree | 283522e784b50693ade9ff28f74e9f9a9d9fc225 /misc | |
parent | 551978050585de24003447cbff28ea9703ea46b3 (diff) |
Notes
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> |