aboutsummaryrefslogtreecommitdiff
path: root/devel/cppunit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cppunit/Makefile')
-rw-r--r--devel/cppunit/Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/devel/cppunit/Makefile b/devel/cppunit/Makefile
index 881d7046a020..90df7d372686 100644
--- a/devel/cppunit/Makefile
+++ b/devel/cppunit/Makefile
@@ -3,40 +3,40 @@
PORTNAME= cppunit
PORTVERSION= 1.12.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= C++ port of the JUnit framework for unit testing
-OPTIONS_DEFINE= DOXYGEN DOCS
+OPTIONS_DEFINE= DOXYGEN
-USES= libtool
+USES= libtool pathfix
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+INSTALL_TARGET= install-strip
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
+BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
+ dot:${PORTSDIR}/graphics/graphviz
CONFIGURE_ARGS+= --enable-doc --enable-doxygen --enable-html-docs
-PLIST_SUB+= HTMLDOCS="" PORTDOCS=""
+PLIST_SUB+= PORTDOCS=""
.else
-CONFIGURE_ARGS+= --disable-doc --disable-doxygen
-PLIST_SUB+= HTMLDOCS="@comment "
+CONFIGURE_ARGS+= --disable-doc --disable-doxygen --disable-html-docs
+PLIST_SUB+= PORTDOCS="@comment "
.endif
-post-patch:
- @${REINPLACE_CMD} -Ee "s,^(pkgconfigdatadir).*,\1 = $$\(prefix\)/libdata/pkgconfig," \
- ${WRKSRC}/Makefile.in
-
post-install:
- @${FIND} ${STAGEDIR}${PREFIX}/include/cppunit ! -type d | \
+ ${FIND} ${STAGEDIR}${PREFIX}/include/cppunit ! -type d | \
${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${STAGEDIR}${PREFIX}/include/cppunit -type d | ${SORT} -r | \
- ${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${FIND} ${WRKSRC}/doc/html -not -type d \
+ | ${SED} 's,^${WRKSRC}/doc/html,${DOCSDIR_REL},' >> ${TMPPLIST}
+ ${FIND} ${STAGEDIR}${PREFIX}/include/cppunit -type d | ${SORT} -r | \
+ ${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
${INSTALL_MAN} ${WRKSRC}/doc/FAQ ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}