Prune devel/py-EnthoughtBase
[dports.git] / devel / cutter / Makefile
1 # Created by: Romain Tartiere <romain@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       cutter
5 PORTVERSION=    1.2.4
6 PORTREVISION=   1
7 CATEGORIES=     devel
8 MASTER_SITES=   SF
9
10 MAINTAINER=     romain@FreeBSD.org
11 COMMENT=        Unit Testing Framework for C and C++
12
13 LIB_DEPENDS=    libcairo.so:${PORTSDIR}/graphics/cairo \
14                 libpangocairo-1.0.so:${PORTSDIR}/x11-toolkits/pango
15
16 CPPFLAGS+=      "-I${LOCALBASE}/include"
17 CONFIGURE_ARGS= --disable-gtk-doc-html --with-html-dir=${PREFIX}/share/doc
18 GNU_CONFIGURE=  yes
19 USES=           gettext gmake libtool pathfix pkgconfig
20 USE_GNOME=      intlhack glib20 gtk20
21 USE_LDCONFIG=   yes
22 INSTALL_TARGET= install-strip
23
24 OPTIONS_DEFINE= GOFFICE SOUP LCOV
25 GOFFICE_DESC=   GOffice support
26 SOUP_DESC=      libsoup support
27 LCOV_DESC=      Force dependency on lcov
28
29 regression-test: build
30         @${SETENV} LC_ALL=C ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC} check
31
32 .include <bsd.port.options.mk>
33
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=""
39 .else
40 CONFIGURE_ARGS+=--disable-goffice
41 PLIST_SUB+=     GOFFICE="@comment "
42 .endif
43
44 .if ${PORT_OPTIONS:MLCOV}
45 RUN_DEPENDS+=   lcov:${PORTSDIR}/devel/lcov
46 .endif
47
48 .if ${PORT_OPTIONS:MSOUP}
49 CONFIGURE_ARGS+=--enable-libsoup
50 LIB_DEPENDS+=   libsoup-2.4.so:${PORTSDIR}/devel/libsoup
51 PLIST_SUB+=     SOUP=""
52 .else
53 CONFIGURE_ARGS+=--disable-libsoup
54 PLIST_SUB+=     SOUP="@comment "
55 .endif
56
57 .if ${PORT_OPTIONS:MNLS}
58 USES+=          gettext
59 PLIST_SUB+=     NLS=""
60 .else
61 CONFIGURE_ARGS+=--disable-nls
62 PLIST_SUB+=     NLS="@comment "
63 .endif
64
65 .include <bsd.port.mk>