summaryrefslogtreecommitdiff
path: root/devel/log4cxx/Makefile
blob: ff115e107194577d3f0306712e4880b1b4804b34 (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
# Created by: Thaddeus Covert <tcovert@grimmy.sahuagin.net>
# $FreeBSD$

PORTNAME=	log4cxx
PORTVERSION=	0.10.0
PORTREVISION=	18
CATEGORIES=	devel
MASTER_SITES=	APACHE/logging/${PORTNAME}/${PORTVERSION}
DISTNAME=	apache-${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C++ port of the Log4j project

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libapr-1.so:devel/apr1

GNU_CONFIGURE=	yes
USES=		pathfix libtool
USE_CXXSTD=	c++98
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip
MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	BOOST DOXYGEN

BOOST_BUILD_DEPENDS=	${LOCALBASE}/include/boost/regex.hpp:devel/boost-libs

DOXYGEN_CONFIGURE_OFF=	--disable-doxygen
DOXYGEN_BUILD_DEPENDS=	${LOCALBASE}/bin/doxygen:devel/doxygen

post-configure:
	@${REINPLACE_CMD} -e 's|-dpR|-pr|' \
		-e '/^htmldest/ s|$$(pkgdatadir)|${DOCSDIR}|' \
		${WRKSRC}/src/site/doxy/Makefile

post-install-DOXYGEN-on:
	@cd ${STAGEDIR}${PREFIX} && \
		${FIND} ${DOCSDIR:S|${PREFIX}/||} ! -type d >> ${TMPPLIST}

.include <bsd.port.mk>