1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

- Fix build with clang [1]

- Improve COMMENT
- Allow staging
- Remove DOCS option, it does nothing anyway
- Fix install when DOXYGEN=on, use generated plist
  for doxygen documentation files
- Use option helpers
- Move declarations to their proper places

PR:		ports/184172 [1]
Submitted by:	Jens Bäckman <jens.backman@gmail.com> [1]
This commit is contained in:
Pawel Pekala 2013-11-22 20:28:02 +00:00
parent af1313a291
commit a7e7bec3c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334615
2 changed files with 43 additions and 27 deletions

View File

@ -10,46 +10,38 @@ MASTER_SITE_SUBDIR= logging/${PORTNAME}/${PORTVERSION}
DISTNAME= apache-${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Log4cxx is a port to C++ of the Log4j project
COMMENT= C++ port of the Log4j project
LICENSE= AL2
LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr1
OPTIONS_DEFINE= BOOST DOCS DOXYGEN
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
.else
CONFIGURE_ARGS+= --disable-doxygen
.endif
.if ${PORT_OPTIONS:MBOOST}
BUILD_DEPENDS+= ${LOCALBASE}/include/boost/regex.hpp:${PORTSDIR}/devel/boost-libs
.endif
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake:env autoconf:env libtool:env
USES= pathfix
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= BOOST DOXYGEN
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
PORTDOCS= *
.endif
BOOST_BUILD_DEPENDS= ${LOCALBASE}/include/boost/regex.hpp:${PORTSDIR}/devel/boost-libs
USES= pathfix
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
.include <bsd.port.options.mk>
post-configure:
@${REINPLACE_CMD} -e 's|-dpR|-pr|' \
-e '/^htmldest/ s|$$(pkgdatadir)|${DOCSDIR}|' \
${WRKSRC}/src/site/doxy/Makefile
post-install:
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
${MKDIR} ${DOCSDIR}
for f in ${PORTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
done
.if ${PORT_OPTIONS:MDOXYGEN}
@cd ${STAGEDIR}${PREFIX} && \
${FIND} ${DOCSDIR:S|${PREFIX}/||} ! -type d >> ${TMPPLIST} && \
${FIND} ${DOCSDIR:S|${PREFIX}/||} -type d | ${SORT} -r | \
${SED} 's|^|@dirrm |' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,24 @@
--- src/main/cpp/stringhelper.cpp 2008-04-01 00:34:09.000000000 +0200
+++ src/main/cpp/stringhelper.cpp 2013-11-22 11:27:50.000000000 +0100
@@ -28,6 +28,7 @@
#endif
#include <log4cxx/private/log4cxx_private.h>
#include <cctype>
+#include <cstdlib>
#include <apr.h>
--- src/main/include/log4cxx/helpers/simpledateformat.h 2008-04-01 00:34:26.000000000 +0200
+++ src/main/include/log4cxx/helpers/simpledateformat.h 2013-11-22 11:27:27.000000000 +0100
@@ -27,10 +27,9 @@
#include <log4cxx/helpers/dateformat.h>
#include <vector>
+#include <locale>
#include <time.h>
-namespace std { class locale; }
-
namespace log4cxx
{
namespace helpers