freebsd-ports/devel/cppunit/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

54 lines
1.4 KiB
Makefile

# New ports collection makefile for: cppunit
# Date created: 14 Feb 2002
# Whom: Graeme Cross <gcross@netspace.net.au>
#
# $FreeBSD$
PORTNAME= cppunit
PORTVERSION= 1.12.1
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= yzlin@FreeBSD.org
COMMENT= C++ port of the JUnit framework for unit testing
USE_AUTOTOOLS= libtool:22
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
.if defined(WITH_DOXYGEN)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
CONFIGURE_ARGS+= --enable-doc --enable-doxygen --enable-html-docs
PLIST_SUB+= HTMLDOCS="" PORTDOCS=""
.else
CONFIGURE_ARGS+= --disable-doc --disable-doxygen
PLIST_SUB+= HTMLDOCS="@comment "
.endif
MAN1= cppunit-config.1
#MANCOMPRESSED= no
pre-everything::
.if !defined(WITH_DOXYGEN)
@${ECHO_MSG}
@${ECHO_MSG} "You could define WITH_DOXYGEN if you want HTML documentation"
@${ECHO_MSG}
.endif
post-patch:
@${REINPLACE_CMD} -Ee "s,^(pkgconfigdatadir).*,\1 = $$\(prefix\)/libdata/pkgconfig," \
${WRKSRC}/Makefile.in
post-install:
@${FIND} ${PREFIX}/include/cppunit ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${PREFIX}/include/cppunit -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS) || defined(WITH_DOXYGEN)
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/FAQ ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>