aboutsummaryrefslogtreecommitdiffstats
path: root/devel/log4cpp/Makefile
blob: 30c5dc032fd015f19d2e78825214af6530d338e8 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# ex:ts=8
# New ports collection makefile for:    log4cpp
# Date created:         May 1, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   log4cpp
DISTVERSION=    0.3.5rc3
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

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

USE_AUTOTOOLS=  libtool:15
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --with-pthreads --disable-html-docs
MAKE_ENV+=  RM=${RM}
USE_LDCONFIG=   yes

.include <bsd.port.pre.mk>

.if exists (${LOCALBASE}/bin/doxygen) || !defined (NOPORTDOCS)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen

MAN3=   log4cpp.3 log4cpp::AbortAppender.3 log4cpp::Appender.3 log4cpp::AppenderSkeleton.3\
    log4cpp::BasicConfigurator.3 log4cpp::BasicLayout.3 log4cpp::Category.3\
    log4cpp::CategoryNameComponent.3 log4cpp::CategoryStream.3\
    log4cpp::ConfigureFailure.3 log4cpp::FileAppender.3 log4cpp::Filter.3\
    log4cpp::FixedContextCategory.3 log4cpp::FormatModifierComponent.3\
    log4cpp::HierarchyMaintainer.3 log4cpp::IdsaAppender.3 log4cpp::Layout.3\
    log4cpp::LayoutAppender.3 log4cpp::LoggingEvent.3\
    log4cpp::MessageComponent.3 log4cpp::MillisSinceEpochComponent.3\
    log4cpp::NDC.3 log4cpp::NDC::DiagnosticContext.3 log4cpp::NDCComponent.3\
    log4cpp::NTEventLogAppender.3 log4cpp::OstreamAppender.3\
    log4cpp::PatternLayout.3 log4cpp::PatternLayout::PatternComponent.3\
    log4cpp::Priority.3 log4cpp::PriorityComponent.3\
    log4cpp::ProcessorTimeComponent.3 log4cpp::Properties.3\
    log4cpp::PropertyConfigurator.3 log4cpp::PropertyConfiguratorImpl.3\
    log4cpp::RemoteSyslogAppender.3 log4cpp::RollingFileAppender.3\
    log4cpp::SecondsSinceEpochComponent.3 log4cpp::SimpleConfigurator.3\
    log4cpp::SimpleLayout.3 log4cpp::StringLiteralComponent.3\
    log4cpp::StringQueueAppender.3 log4cpp::StringUtil.3\
    log4cpp::SyslogAppender.3 log4cpp::ThreadNameComponent.3\
    log4cpp::TimeStamp.3 log4cpp::TimeStampComponent.3 log4cpp::width.3\
    log4cpp::Win32DebugAppender.3 log4cpp::tab.3 log4cpp::threading.3\
    log4cpp::threading::MSMutex.3 log4cpp::threading::MSScopedLock.3\
    log4cpp::threading::Mutex.3 log4cpp::threading::ScopedLock.3\
    log4cpp::threading::ThreadLocalDataHolder.3
.else
NOPORTDOCS=     true
CONFIGURE_ARGS+=    --disable-doxygen
.endif

.if !exists (${LOCALBASE}/bin/doxygen) && !defined (NOPORTDOCS)
pre-everything::
    @${ECHO_CMD}
    @${ECHO_CMD} By default, this port uses doxygen to build its documentation.\
It currently is not present your system, and if you do not want to install it, abort\
this build by hitting CTRL+C and re-run the installation with -DNOPORTDOCS | ${FMT} 74
    @${ECHO_CMD}
    @sleep 3
.endif

post-patch:
    @${REINPLACE_CMD} -e 's| -pedantic||g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>