aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/orage/Makefile
blob: a4ad9f61a9d4ad3ca2f66501ef31ea9753ab1d66 (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
# New ports collection makefile for:    xfce4-calendar
# Date created:     2003-01-14
# Whom:         Matt Lancereau <matt@rimasec.net>
#
# $FreeBSD$
#

PORTNAME=   orage
PORTVERSION=    4.4.3
CATEGORIES= deskutils xfce
MASTER_SITES=   ${MASTER_SITE_XFCE}
DIST_SUBDIR=    xfce4

MAINTAINER= oliver@FreeBSD.org
COMMENT=    A calendar application to manage your time with XFce 4

GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  gnometarget gtk20 intltool intlhack pkgconfig
USE_XFCE=   configenv libgui libmcs mcsmanager panel
USE_XORG=   xext xrender xinerama xi xrandr xcursor xcomposite xdamage x11 \
        xfixes

OPTIONS=    BDB "Enable BDB support"        off \
        ICAL    "Enable libical support"    off

.include <bsd.port.pre.mk>

.if defined(WITH_BDB)
CONFIGURE_ARGS+=--with-bdb4=yes --with-bdb4_dir=${LOCALBASE}
USE_BDB=    40
.else
CONFIGURE_ARGS+=--with-bdb4=no
.endif

.if defined(WITH_ICAL)
LIB_DEPENDS+=   ical.27:${PORTSDIR}/devel/libical
.endif

post-patch:
.if !defined(WITH_ICAL)
    @${REINPLACE_CMD} -e 's|libical-|no-&|g' ${WRKSRC}/configure
.endif
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/configure

.include <bsd.port.post.mk>