blob: 0a7f9feac248343212a867395e03511d87be4ee3 (
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.5.1
CATEGORIES= x11-wm
MASTER_SITES= http://wwwcip.cs.fau.de/~re06huxa/herbstluftwm/tarballs/
MAINTAINER= crshd@mail.com
COMMENT= Manual tiling window manager for X11
LICENSE= BSD
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USE_GMAKE= yes
USE_XORG= x11 xinerama
USE_GNOME= glib20
MAKE_ARGS= PREFIX=${PREFIX} SYSCONFDIR=${PREFIX}/etc \
DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \
MANDIR=${PREFIX}/man
MAN1= herbstclient.1 herbstluftwm.1
MAN7= herbstluftwm-tutorial.7
OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBASH}
PLIST_SUB+= BASH=""
.else
PLIST_SUB+= BASH="@comment "
.endif
.if ${PORT_OPTIONS:MZSH}
PLIST_SUB+= ZSH=""
.else
PLIST_SUB+= ZSH="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e '/-[LI]\/usr/s,usr,${LOCALBASE},' \
${WRKSRC}/config.mk
${REINPLACE_CMD} -e '/LICENSEDIR/d' ${WRKSRC}/Makefile
${GREP} -Rl --null '^#!/bin/bash' ${WRKSRC} | ${XARGS} -0 \
${REINPLACE_CMD} -e 's,/bin/bash,/usr/bin/env bash,'
.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>
|