blob: 6b8e44be74600cf96dcadaf8ea16eaa868a496eb (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# New ports collection makefile for: xfce4-calendar
# Date created: 2003-01-14
# Whom: Matt Lancereau <matt@rimasec.net>
#
# $FreeBSD$
#
PORTNAME= orage
PORTVERSION= 4.8.3
CATEGORIES= deskutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR=/src/apps/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= A calendar application to manage your time with Xfce 4
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gtk20 intltool intlhack pkgconfig desktopfileutils
USE_XFCE= configenv libmenu panel
USE_XORG= xext xrender xinerama xi xrandr xcursor xcomposite xdamage x11 \
xfixes
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS= BDB "Enable BDB support" off \
ICAL "Enable libical support" off \
DBUS "Enable D-BUS support" on \
NOTIFY "Enable notification support" on
MAN1= globaltime.1 orage.1 tz_convert.1
.include <bsd.port.pre.mk>
.if defined(WITH_BDB)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure
CONFIGURE_ARGS+=--with-bdb4=yes --with-bdb4_dir=${LOCALBASE}
USE_BDB= yes
# Only Berkeley DB 4.x
INVALIDE_BDB_VER= 5
.else
CONFIGURE_ARGS+=--with-bdb4=no
.endif
.if defined(WITH_ICAL)
CONFIGURE_ARGS+=--enable-libical
LIB_DEPENDS+= ical.44:${PORTSDIR}/devel/libical
CFLAGS+= -I${LOCALBASE}/include/libical
PLIST_SUB+= WITH_ICAL="@comment "
.else
CONFIGURE_ARGS+=--disable-libical
PLIST_SUB+= WITH_ICAL=""
.endif
.if !defined(WITHOUT_DBUS)
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
CONFIGURE_ARGS+=--enable-dbus
PLIST_SUB+= DBUS=""
.else
CONFIGURE_ARGS+=--disable-dbus
PLIST_SUB+= DBUS="@comment "
.endif
.if !defined(WITHOUT_NOTIFY)
LIB_DEPENDS+= notify.4:${PORTSDIR}/devel/libnotify
CONFIGURE_ARGS+=--enable-libnotify
.else
CONFIGURE_ARGS+=--disable-libnotify
.endif
post-patch:
.if defined(WITH_BDB)
@${REINPLACE_CMD} -e 's|%%BDB_INCLUDE_DIR%%|${BDB_INCLUDE_DIR}|g ; \
s|%%BDB_LIB_DIR%%|${BDB_LIB_DIR}|g ; \
s|%%BDB_LIB_NAME%%|${BDB_LIB_NAME}|g' ${WRKSRC}/configure
.endif
.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
@${REINPLACE_CMD} -e 's|(datadir)/orage/doc/C|(datadir)/doc/orage/C|' \
${WRKSRC}/doc/C/Makefile.in \
${WRKSRC}/doc/C/images/Makefile.in
post-install:
@-update-desktop-database
.include <bsd.port.post.mk>
|