aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/tomboy/Makefile
blob: 6ad1f74e01c06e644da8abe3d0fbc529412dd405 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
# $FreeBSD$

PORTNAME=   tomboy
PORTVERSION=    1.15.4
CATEGORIES= deskutils gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= mono@FreeBSD.org
COMMENT=    Personal note taking system for the GNOME desktop

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgtkspell.so:${PORTSDIR}/textproc/gtkspell
BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/dbus-sharp-glib-1.0.pc:${PORTSDIR}/devel/dbus-sharp-glib \
        mautil:${PORTSDIR}/devel/mono-addins
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/dbus-sharp-glib-1.0.pc:${PORTSDIR}/devel/dbus-sharp-glib \
        mautil:${PORTSDIR}/devel/mono-addins

USES=       cpe gettext gmake libtool mono pathfix pkgconfig tar:xz
USE_GNOME=  intlhack gnomeprefix gnomedocutils gnomesharp20
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
INSTALLS_OMF=   yes
USE_LDCONFIG=   yes
GCONF_SCHEMAS=  tomboy.schemas
CPE_VENDOR= gnome

MAKE_JOBS_UNSAFE=yes

OPTIONS_DEFINE= EVOLUTION
EVOLUTION_DESC= Build evolution addin

# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT=  limitw:1,even

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MEVOLUTION}
CONFIGURE_ARGS+=--enable-evolution
BUILD_DEPENDS+= ${LOCALBASE}/lib/mono/gmime-sharp-2.6/gmime-sharp.dll:${PORTSDIR}/mail/gmime26-sharp
RUN_DEPENDS+=   ${LOCALBASE}/lib/mono/gmime-sharp-2.6/gmime-sharp.dll:${PORTSDIR}/mail/gmime26-sharp
PLIST_SUB+= EVOLUTION=""
.else
CONFIGURE_ARGS+=--disable-evolution
PLIST_SUB+= EVOLUTION="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} 's|/bin/bash|/bin/sh|g' \
        ${WRKSRC}/Tomboy/tomboy*.in

.include <bsd.port.post.mk>