summaryrefslogtreecommitdiff
path: root/wm/pwm/Makefile
blob: a3e1e3f006d6a122956ff0163fad7e185d10e75a (plain)
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
# $NetBSD: Makefile,v 1.37 2017/09/03 08:37:02 wiz Exp $
#

DISTNAME=	pwm-20060517
PKGNAME=	${DISTNAME:S/-/-1.0./}
PKGREVISION=	2
CATEGORIES=	wm x11
MASTER_SITES=	http://modeemi.fi/~tuomov/pwm/dl/

MAINTAINER=	salo@NetBSD.org
#HOMEPAGE=	http://modeemi.fi/~tuomov/ion/pwm.html
COMMENT=	Window manager that frames multiple client windows in a single frame

# pwm is linked against libtu.a before it is build.
MAKE_JOBS_SAFE=	no

CONFLICTS+=	ion<=20040729nb2

USE_TOOLS+=	gmake

CFLAGS+=	-DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
MAKE_FLAGS+=	HAS_SYSTEM_ASPRINTF=1
.endif

PKG_SYSCONFSUBDIR=	pwm

EGDIR=		${PREFIX}/share/examples/pwm
CONF_FILES=	${EGDIR}/pwm.conf.default ${PKG_SYSCONFDIR}/pwm.conf

CONFS=		buttons-default.conf
CONFS+=		keys-default.conf
CONFS+=		menus-default.conf
CONFS+=		look-beoslike.conf
CONFS+=		look-brownsteel.conf
CONFS+=		look-cdelike.conf
.for f in ${CONFS}
CONF_FILES+=	${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor

post-install:
	${INSTALL_DATA} ${FILESDIR}/look-cdelike.conf ${DESTDIR}${EGDIR}

.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"