aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/xfce4-notification-daemon/Makefile
blob: 0146f41c0e42a1495fcffd0f5e8ccee2f4186061 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$

PORTNAME=   notification-daemon
PORTVERSION=    0.3.7
PORTREVISION=   22
CATEGORIES= deskutils xfce
MASTER_SITES=   LOCAL/ehaupt/
PKGNAMEPREFIX=  xfce4-
DISTNAME=   ${PORTNAME}-xfce-${PORTVERSION}
DIST_SUBDIR=    xfce4

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Port of Gnome's notification-daemon for the Xfce desktop

LICENSE=    GPLv2

BUILD_DEPENDS=  p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS=    libsexy.so:${PORTSDIR}/x11-toolkits/libsexy \
        libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS=    dbus-daemon:${PORTSDIR}/devel/dbus

GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USES=       gmake libtool pkgconfig gettext-tools xfce tar:bzip2
USE_GNOME=  librsvg2
USE_LDCONFIG=   yes
USE_XFCE=   libgui

CONFIGURE_ARGS+=    --libdir=${PREFIX}/lib/xfce4 \
            --libexecdir=${PREFIX}/libexec/xfce4 \
            --with-dbus-services=${PREFIX}/share/dbus-1/services

CONFLICTS=  notify-osd-[0-9]*

OPTIONS_DEFINE= GRADIENT CLOSE NLS

GRADIENT_DESC=  Show a gradient look in the default theme
CLOSE_DESC= Show the close button in the default theme

OPTIONS_DEFAULT=CLOSE NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext-runtime
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MGRADIENT}
CONFIGURE_ARGS+=    --enable-gradient-look
.endif

.if ${PORT_OPTIONS:MCLOSE}
CONFIGURE_ARGS+=    --disable-close-button
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|\(notification-daemon-xfce\)-1.0|\1|' \
        ${WRKSRC}/src/daemon/Makefile.in \
        ${WRKSRC}/src/themes/bubble/Makefile.in \
        ${WRKSRC}/src/themes/standard/Makefile.in
    @${REINPLACE_CMD} '/GTK_LIBS =/s/$$/ -lgmodule-2.0 -lX11/' \
        ${WRKSRC}/src/daemon/Makefile.in
.if empty(PORT_OPTIONS:MNLS)
    @${REINPLACE_CMD} -e 's|\(USE_NLS=\)yes|\1no|' ${WRKSRC}/configure
.endif

.include <bsd.port.mk>