1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- unbreak this port on 5.x

PR:		71853
Submitted by:	leeym
Approved by:	portmgr (marcus)
This commit is contained in:
Yen-Ming Lee 2004-09-19 02:09:40 +00:00
parent 7274852ff6
commit 5a33db37d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118284
2 changed files with 27 additions and 9 deletions

View File

@ -20,26 +20,24 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-pub-${PORTVERSION}a37
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAKE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
MAKE_ENV+= CC="${CC}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --libdir=${PREFIX}/share
USE_BISON= yes
USE_PERL5= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
post-extract:
@(cd ${WRKSRC} && ${TAR} xfvz libedit.src.tar.gz > /dev/null)
@cd ${WRKSRC} && ${TAR} xfz libedit.src.tar.gz
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS+=-g -O0||g; \
s|CC=gcc||' \
${WRKSRC}/libedit/Makefile.in \
${WRKSRC}/libedit/Makefile
@${REINPLACE_CMD} -e "s,tr '\[a-z\]' '\[A-Z\]',tr 'a-z' 'A-Z',g" \
${WRKSRC}/libedit/makelist
@${REINPLACE_CMD} -E -e 's,(const char\*) const (helpstring),\1 \2,g' \
${WRKSRC}/DebugCmds.h
pre-configure:
@${ECHO_CMD} "Configure libedit..."
@ -61,4 +59,4 @@ post-install:
@${GZIP_CMD} ${DOCSDIR}/bro-CN99.ps
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
--- Conn.h.orig Sat Sep 18 15:42:16 2004
+++ Conn.h Sat Sep 18 15:42:30 2004
@@ -223,6 +223,8 @@
return 1;
}
+ void DeleteTimer(double t);
+
protected:
virtual void UpdateEndpointVal(RecordVal* endp, int is_orig) = 0;
@@ -235,8 +237,6 @@
friend class ConnectionTimer;
void RemoveTimer(Timer* t);
-
- void DeleteTimer(double t);
void InactivityTimer(double t);