aboutsummaryrefslogtreecommitdiffstats
path: root/net/wmpiki/Makefile
blob: 4c36e504c2b10d97f68831e8f6accba201be0ca8 (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
# Created by: Thomas Kempka <t.kempka@web.de>
# $FreeBSD$

PORTNAME=   wmpiki
PORTVERSION=    0.2.1
PORTREVISION=   2
CATEGORIES= net windowmaker
MASTER_SITES=   http://mirror2.unixfreunde.de/ \
        http://freebsd.unixfreunde.de/sources/

MAINTAINER= t.kempka@web.de
COMMENT=    Multiping host checker dockapp

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_XORG=   xpm

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/X11R6|$$(LOCALBASE)|g' \
        -e 's|/include/X11|/include|g' \
        -e 's|gcc|cc|g' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|ping_options\=-c 1 -w 1|ping_options\=-c 1 -i 1|g' \
        -e 's|ping host -c 1 -w 1|ping host -c 1 -i 1|g' \
        ${WRKSRC}/README
    @${REINPLACE_CMD} -e 's|ping_options\=-c 1 -w 1|ping_options\=-c 1 -i 1|g' \
        ${WRKSRC}/config.example

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/config.example ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/wmpiki ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>