- Add OPTIONS to use openpty instead.

- Bump PORTREVISION.

PR:	ports/161087
Submitted by:	aakuusta@gmail.com
This commit is contained in:
Felippe de Meirelles Motta 2012-05-24 16:12:25 +00:00
parent 5519780505
commit 3d20e1be98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297345

View file

@ -7,7 +7,7 @@
PORTNAME= ttyrec PORTNAME= ttyrec
PORTVERSION= 1.0.8 PORTVERSION= 1.0.8
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= misc CATEGORIES= misc
MASTER_SITES= http://0xcc.net/ttyrec/ MASTER_SITES= http://0xcc.net/ttyrec/
@ -21,6 +21,10 @@ PLIST_FILES= bin/ttyplay \
MAN1= ttyplay.1 ttyrec.1 MAN1= ttyplay.1 ttyrec.1
BINS= ttyplay ttyrec ttytime BINS= ttyplay ttyrec ttytime
OPTIONS= OPENPTY "Use openpty instead" off
.include <bsd.port.pre.mk>
post-patch: post-patch:
@${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \ @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \
${WRKSRC}/Makefile ${WRKSRC}/Makefile
@ -29,4 +33,8 @@ do-install:
${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin ${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin
${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/,} ${MAN1PREFIX}/man/man1 ${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>