aboutsummaryrefslogtreecommitdiffstats
path: root/x11/i3status/Makefile
blob: 2ada0124a38a8bdd194b7348d6a73e01cbf9881c (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
# $FreeBSD$

PORTNAME=   i3status
PORTVERSION=    2.8
PORTREVISION=   1
CATEGORIES= x11
MASTER_SITES=   http://i3wm.org/i3status/

MAINTAINER= bapt@FreeBSD.org
COMMENT=    Small program for generating a status bar

LICENSE=    BSD3CLAUSE

LIB_DEPENDS=    libconfuse.so:${PORTSDIR}/devel/libconfuse \
        libyajl.so:${PORTSDIR}/devel/yajl

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
USES=       gmake tar:bzip2

post-patch:
    @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/i3status.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/i3status ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/man/i3status.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/i3status.conf ${STAGEDIR}${PREFIX}/etc/i3status.conf.sample

.include <bsd.port.mk>