54a0b86543
in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# New ports collection makefile for: log4cplus
|
|
# Date created: 16 November 2004
|
|
# Whom: Petri Totterman <petri.totterman@hmv.fi>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= log4cplus
|
|
PORTVERSION= 1.0.2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
MASTER_SITE_SUBDIR= log4cplus
|
|
DISTFILES= log4cplus-${PORTVERSION}.tar.gz log4cplus-${PORTVERSION}-docs.tar.gz
|
|
|
|
MAINTAINER= petri.totterman@hmv.fi
|
|
COMMENT= A logging library for C++
|
|
|
|
INSTALLS_SHLIB= yes
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_REINPLACE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/license.apl ${PREFIX}/include/log4cplus
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/docs/*.config ${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/docs/*.html ${DOCSDIR}
|
|
${MKDIR} ${DOCSDIR}/html
|
|
${INSTALL_MAN} ${WRKSRC}/docs/html/*.html ${DOCSDIR}/html
|
|
${INSTALL_MAN} ${WRKSRC}/docs/html/*.png ${DOCSDIR}/html
|
|
${INSTALL_MAN} ${WRKSRC}/docs/html/doxygen.css ${DOCSDIR}/html
|
|
${INSTALL_MAN} ${WRKSRC}/docs/html/graph_legend.dot ${DOCSDIR}/html
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|