aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/herbstluftwm/Makefile
blob: a89dbdde3b130c1dd015ac255c1898ff6972cd5b (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
# $FreeBSD$

PORTNAME=   herbstluftwm
PORTVERSION=    0.6.2
CATEGORIES= x11-wm
MASTER_SITES=   http://herbstluftwm.org/tarballs/

MAINTAINER= crshd@mail.com
COMMENT=    Manual tiling window manager for X11

LICENSE=    BSD2CLAUSE

RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

USES=       gmake pkgconfig shebangfix
SHEBANG_FILES=scripts/*.sh
USE_XORG=   x11 xinerama
USE_GNOME=  glib20

MAKE_ARGS=  PREFIX=${PREFIX} SYSCONFDIR=${PREFIX}/etc \
        DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \
        MANDIR=${PREFIX}/man

OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES
OPTIONS_SUB=    yes

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e '/LICENSEDIR/d' ${WRKSRC}/Makefile
.if ! ${PORT_OPTIONS:MBASH}
    ${REINPLACE_CMD} -e '/BASHCOMPLETIONDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MZSH}
    ${REINPLACE_CMD} -e '/ZSHCOMPLETIONDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MDOCS}
    ${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
    ${REINPLACE_CMD} -e '/EXAMPLESDIR/d' ${WRKSRC}/Makefile
.endif

.include <bsd.port.mk>