aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/herbstluftwm/Makefile
blob: 5926a29aa2230d10b9b911d4d16a65cdb77558db (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
55
56
57
58
59
60
61
# $FreeBSD$

PORTNAME=   herbstluftwm
PORTVERSION=    0.7.0
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   http://herbstluftwm.org/tarballs/

MAINTAINER= uzsolt@uzsolt.hu
COMMENT=    Manual tiling window manager for X11

LICENSE=    BSD2CLAUSE

USES=       compiler:c++11-lib gettext-runtime gmake pkgconfig shebangfix
SHEBANG_FILES=  scripts/*.sh share/autostart share/*.sh
USE_XORG=   x11 xext xinerama
USE_GNOME=  glib20

MAKE_ARGS=  PREFIX=${PREFIX} SYSCONFDIR=${PREFIX}/etc \
        DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \
        MANDIR=${PREFIX}/man LDXX=${CXX} \
        COLOR=0

OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES DEFAULTCONF
DEFAULTCONF_DESC=Install default configuration (requires bash)
OPTIONS_DEFAULT+=DEFAULTCONF
OPTIONS_SUB=    yes

ALL_TARGET= all-nodoc
INSTALL_TARGET= install-nodoc
DOCS_ALL_TARGET=    doc
DOCS_INSTALL_TARGET=    install
DEFAULTCONF_RUN_DEPENDS=bash:shells/bash

.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:MEXAMPLES}
    ${REINPLACE_CMD} -e '/EXAMPLESDIR/d' ${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MDEFAULTCONF}
    ${REINPLACE_CMD} -e '/CONFIGDIR/d' ${WRKSRC}/Makefile
.endif

do-install-DOCS-off:
    ${MKDIR} ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${MKDIR} ${STAGEDIR}${MANPREFIX}/man/man7
    ${INSTALL_MAN} ${WRKSRC}/doc/*.7 ${STAGEDIR}${MANPREFIX}/man/man7

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

.include <bsd.port.mk>