summaryrefslogtreecommitdiffstats
path: root/misc/dirtree/Makefile
blob: ab8d2b9c84cf2f356c817d0b7909fe0774321137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ex:ts=8
# New ports collection makefile for:	dirtree
# Date created:			Jun 19, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	dirtree
PORTVERSION=	1.2.0
PORTREVISION=	3
CATEGORIES=	misc
MASTER_SITES=	http://kingleo.pages.at/development/cpp/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A command line tool for displaying directory trees

LIB_DEPENDS=	LeoArg.2:${PORTSDIR}/devel/leoarg

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib -lintl"
USE_GETTEXT=	yes

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
.else
PLIST_FILES+=	share/locale/de/LC_MESSAGES/dirtree.mo
.endif

PLIST_FILES+=	bin/dirtree
MAN1=		dirtree.1

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud