1 # Created by: Romain Tartiere <romain@FreeBSD.org>
10 MAINTAINER= romain@FreeBSD.org
11 COMMENT= Unit Testing Framework for C and C++
13 LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
14 libpangocairo-1.0.so:${PORTSDIR}/x11-toolkits/pango
16 CPPFLAGS+= "-I${LOCALBASE}/include"
17 CONFIGURE_ARGS= --disable-gtk-doc-html --with-html-dir=${PREFIX}/share/doc
19 USES= gettext gmake libtool pathfix pkgconfig
20 USE_GNOME= intlhack glib20 gtk20
22 INSTALL_TARGET= install-strip
24 OPTIONS_DEFINE= GOFFICE SOUP LCOV
25 GOFFICE_DESC= GOffice support
26 SOUP_DESC= libsoup support
27 LCOV_DESC= Force dependency on lcov
29 regression-test: build
30 @${SETENV} LC_ALL=C ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC} check
32 .include <bsd.port.options.mk>
34 .if ${PORT_OPTIONS:MGOFFICE}
35 CONFIGURE_ARGS+=--enable-goffice
36 # the 0.8 is part of the library name don't remove it.
37 LIB_DEPENDS+= libgoffice-0.8.so:${PORTSDIR}/devel/goffice
38 PLIST_SUB+= GOFFICE=""
40 CONFIGURE_ARGS+=--disable-goffice
41 PLIST_SUB+= GOFFICE="@comment "
44 .if ${PORT_OPTIONS:MLCOV}
45 RUN_DEPENDS+= lcov:${PORTSDIR}/devel/lcov
48 .if ${PORT_OPTIONS:MSOUP}
49 CONFIGURE_ARGS+=--enable-libsoup
50 LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/devel/libsoup
53 CONFIGURE_ARGS+=--disable-libsoup
54 PLIST_SUB+= SOUP="@comment "
57 .if ${PORT_OPTIONS:MNLS}
61 CONFIGURE_ARGS+=--disable-nls
62 PLIST_SUB+= NLS="@comment "
65 .include <bsd.port.mk>