aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dunst/Makefile
blob: f1f4acb90ad776840181f59ec26cb69eecce6fcb (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
# Created by: Rod Person <rodperson@rodperson.com>
# $FreeBSD$

PORTNAME=   dunst
DISTVERSIONPREFIX=  v
DISTVERSION=    1.4.1
CATEGORIES= sysutils

MAINTAINER= dg@syrec.org
COMMENT=    Lightweight notification daemon

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libdbus-1.so:devel/dbus

USES=       gmake gnome perl5 pkgconfig

USE_GITHUB= yes
GH_ACCOUNT= dunst-project

USE_GNOME=  cairo gdkpixbuf2 pango
USE_PERL5=  build
USE_XORG=   x11 xext xinerama xrandr xscrnsaver

MAKE_ARGS=  MANPREFIX="${PREFIX}/man"
ALL_TARGET= dunst
TEST_TARGET=    test

PLIST_FILES=    bin/dunst \
        share/dunst/dunstrc \
        man/man1/dunst.1.gz \
        share/dbus-1/services/org.knopwob.dunst.service

OPTIONS_DEFINE= DUNSTIFY
OPTIONS_DEFAULT=    DUNSTIFY

DUNSTIFY_DESC=  Install dunstify (alternative to the notify-send)

DUNSTIFY_ALL_TARGET=    dunstify
DUNSTIFY_LIB_DEPENDS=   libnotify.so:devel/libnotify
DUNSTIFY_PLIST_FILES=   bin/dunstify

pre-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/dunst/
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/services/

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dunst

post-install-DUNSTIFY-on:
    ${INSTALL_PROGRAM} ${WRKSRC}/dunstify ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>