summaryrefslogtreecommitdiff
path: root/devel/log4cpp/Makefile
blob: a5b67a74acb3b38cfadb5d78a6643860030fdd76 (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
# Created by: ijliao@FreeBSD.org
# $FreeBSD$

PORTNAME=	log4cpp
PORTVERSION=	1.1.1
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}.x%20%28new%29/${PORTNAME}-${PORTVERSION:R}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library of C++ classes for flexible logging

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/COPYING

WRKSRC=		${WRKDIR}/${PORTNAME}

USES=		gmake libtool pathfix
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-html-docs
REINPLACE_ARGS=	-i ""
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

OPTIONS_DEFINE=		DOXYGEN
OPTIONS_SUB=		yes

DOXYGEN_BUILD_DEPENDS=		doxygen:devel/doxygen
DOXYGEN_CONFIGURE_ENABLE=	doxygen

post-patch:
	@${REINPLACE_CMD} -e \
		's|^MAX_|#MAX_|' \
		${WRKSRC}/doc/Doxyfile.in
	@${REINPLACE_CMD} -e \
		's|$$(prefix)/doc/.*|@docdir@| ; \
		 s|\([[:blank:]]\)\($$(man3dir)\)|\1$$(DESTDIR)\2| ; \
		 s|\([[:blank:]]\)\($$(docdir)\)|\1$$(DESTDIR)\2|' \
		${WRKSRC}/doc/Makefile.in

.include <bsd.port.mk>