blob: 5d73c25884e6e898a2be7c940aa68587c8901946 (
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
|
# 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/
DIST_SUBDIR= repacked
MAINTAINER= ports@FreeBSD.org
COMMENT= Small window manager for X11
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENCE
USES= gmake tar
USE_XORG= x11 xext
MAKE_ENV= XROOT="${LOCALBASE}" SYSCONFDIR="${ETCDIR}"
PORTDOCS= CHANGELOG README
PLIST_FILES= bin/windowlab %%ETCDIR%%/menurc \
man/man1/windowlab.1x.gz
OPTIONS_DEFINE= XFT DOCS
XFT_USE= XORG=xft
XFT_USES= pkgconfig
XFT_MAKE_ENV= EXTRA_INC="$$(pkg-config --cflags xft)" \
EXTRA_LIBS="$$(pkg-config --libs xft)"
XFT_CFLAGS= -DXFT
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 ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${ETCDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${STAGEDIR}${ETCDIR}/menurc)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>
|