aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/windowlab/Makefile
blob: 4e03941760eef30c47fb9d7012370ce6717685f8 (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
# Created by: Pierre-Paul Lavoie <ppl@nbnet.nb.ca>
# $FreeBSD$

PORTNAME=   windowlab
PORTVERSION=    1.40
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   http://nickgravgaard.com/windowlab/
EXTRACT_SUFX=   .tar
DIST_SUBDIR=    repacked

MAINTAINER= ports@FreeBSD.org
COMMENT=    Small window manager for X11

LICENSE=    GPLv2

OPTIONS_DEFINE= XFT DOCS

USE_XORG=   x11 xext
USE_GMAKE=  yes
MAKE_ENV=   XROOT="${LOCALBASE}" SYSCONFDIR="${ETCDIR}"
MAKE_JOBS_SAFE= yes

MAN1=       windowlab.1x
PORTDOCS=   CHANGELOG README
PLIST_FILES=    bin/windowlab %%ETCDIR%%/menurc
PLIST_DIRS= %%ETCDIR%%

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXFT}
USE_XORG+=  xft
USES+=      pkgconfig
MAKE_ENV+=  EXTRA_INC="$$(pkg-config --cflags xft)" \
        EXTRA_LIBS="$$(pkg-config --libs xft)"
CFLAGS+=    -DXFT
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|^\(PREFIX\) =|\1 ?=| ; \
         s|^\(XROOT\) =|\1 ?=| ; \
         s|^\(SYSCONFDIR\) =|\1 ?=| ; \
         s|^\(CC\) =|\1 ?=|' ${WRKSRC}/Makefile

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} windowlab ${PREFIX}/bin)
    (cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${MANPREFIX}/man/man1)
    @${MKDIR} ${ETCDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${ETCDIR}/menurc)
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif

.include <bsd.port.mk>