diff options
author | perky <perky@FreeBSD.org> | 2002-12-15 06:10:24 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2002-12-15 06:10:24 +0800 |
commit | 2a3018be4b386b58ea76abb556f7492adc86ca7a (patch) | |
tree | f21429ce8f5c038d14307b8e510d9f6c66635797 /misc/dirtree/Makefile | |
parent | ae97b03f885dce59661e7fc3d0f36638a869ee7b (diff) | |
download | freebsd-ports-graphics-2a3018be4b386b58ea76abb556f7492adc86ca7a.tar.gz freebsd-ports-graphics-2a3018be4b386b58ea76abb556f7492adc86ca7a.tar.zst freebsd-ports-graphics-2a3018be4b386b58ea76abb556f7492adc86ca7a.zip |
Fix build on -current.
Diffstat (limited to 'misc/dirtree/Makefile')
-rw-r--r-- | misc/dirtree/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/misc/dirtree/Makefile b/misc/dirtree/Makefile index 6fea716b228..072281120e5 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> |