aboutsummaryrefslogtreecommitdiff
path: root/devel/lmdbg/Makefile
blob: 0b848f078e882e620c23ba80d463469cfea8e6f0 (plain) (blame)
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
43
44
45
46
47
48
49
50
# New ports collection makefile for:	lmdbg
# Date created:				14 March 2009
# Whom:					Mikolaj Golub <to.my.trociny@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	lmdbg
PORTVERSION=	0.17.0
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	trociny@FreeBSD.org
COMMENT=	Lightweight malloc debugger

BUILD_DEPENDS=	mk-configure>=0.20:${PORTSDIR}/devel/mk-configure
LIB_DEPENDS=	Judy:${PORTSDIR}/devel/judy
RUN_DEPENDS=	runawk:${PORTSDIR}/lang/runawk \
		${LOCALBASE}/bin/pipestatus:${PORTSDIR}/devel/pipestatus
USE_LDCONFIG=	yes

LICENSE=	MIT

MKCMAKE?=	${LOCALBASE}/bin/mkcmake
INSTALL_TARGET=	installdirs install

PORTDOCS=	ChangeLog NEWS README TODO

MAN1=		lmdbg-run.1 lmdbg-leaks.1 lmdbg-sysleaks.1 lmdbg-sym.1 lmdbg.1 \
		lmdbg-stat.1 lmdbg-grep.1 lmdbg-sort.1

MKCMAKE_ENV+=	CPPFLAGS=-I${LOCALBASE}/include
MKCMAKE_ENV+=	LDFLAGS=-L${LOCALBASE}/lib
MKCMAKE_ENV+=	HAVE_HEADER.execinfo_h=0

do-build:
	${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC}

do-install:
	${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC} ${INSTALL_TARGET}

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>