aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/devd-notifier/Makefile
blob: fee4e36a6533c1c76f619afa2d44093a178c2ad7 (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
# Created by: Florian Unglaub <f.unglaub@googlemail.com>
# $FreeBSD$

PORTNAME=   devd-notifier
PORTVERSION=    0.1
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   GHC http://roladder.net/~flo/dist/

MAINTAINER= f.unglaub@googlemail.com
COMMENT=    Daemon notifying the user about devd(8) events \
        with libnotify

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libnotify.so:devel/libnotify

USES=       pkgconfig
PLIST_FILES=    bin/devd-notifier \
        man/man1/devd-notifier.1.gz
USE_GITHUB= yes
GH_ACCOUNT= funglaub

pre-everything::
    @${ECHO_MSG} "You can build devd-notifier with your own config.h using the DEVD-NOTIFIER_CONF knob:"
    @${ECHO_MSG} "make DEVD-NOTIFIER_CONF=/path/to/devd-notifier/config.h install clean"

post-extract:
.if defined(DEVD-NOTIFIER_CONF)
    @${ECHO_MSG} "creating config.h from ${DEVD-NOTIFIER_CONF}"
    @${CP} ${DEVD-NOTIFIER_CONF} ${WRKSRC}/config.h
.endif

post-patch:
    @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/config.mk

.include <bsd.port.mk>