summaryrefslogtreecommitdiff
path: root/misc/dirtree
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-12-14 22:10:24 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-12-14 22:10:24 +0000
commit651e167f0e81c1fad80781dd324b8d48cdd65545 (patch)
treeb91013cfb016151a41bbee7c2c2c2b51da1750ce /misc/dirtree
parentFix build on -current. (diff)
Fix build on -current.
Notes
Notes: svn path=/head/; revision=71640
Diffstat (limited to 'misc/dirtree')
-rw-r--r--misc/dirtree/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/misc/dirtree/Makefile b/misc/dirtree/Makefile
index 6fea716b2287..072281120e57 100644
--- a/misc/dirtree/Makefile
+++ b/misc/dirtree/Makefile
@@ -20,13 +20,16 @@ LIB_DEPENDS= LeoArg.2:${PORTSDIR}/devel/leoarg \
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
+USE_REINPLACE= yes
MAN1= dirtree.1
-.include <bsd.port.pre.mk>
+post-patch:
+.for f in src/CppDir.hh src/CppDir.cpp
+ ${REINPLACE_CMD} -e 's,^class ostream;$$,#include <ostream.h>,g' \
+ -e 's,ostream\([^.]\),std::ostream\1,g' ${WRKSRC}/${f}
+.endfor
+ ${REINPLACE_CMD} -e 's,const.*PATH_MAX =\(.*\);,#define\
+ PATH_MAX \1,g' ${WRKSRC}/src/xgetcwd.cpp
-.if ${OSVERSION} >= 500035
-BROKEN= "Does not compile on 5.0"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>