aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/plwm/Makefile
blob: 6680d62be2f42246c4e99e6bf64d71095f1937ee (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
# Created by: Mike Meyer <mwm@mired.org>
# $FreeBSD$

PORTNAME=	plwm
PORTVERSION=	2.6a
CATEGORIES=	x11-wm python
MASTER_SITES=	SF
DISTNAME=	${PORTNAME:tu}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Window manager construction kit

LICENSE=	GPLv2 # or later
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xlib>0:${PORTSDIR}/x11-toolkits/py-xlib
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xlib>0:${PORTSDIR}/x11-toolkits/py-xlib

NO_ARCH=	yes

USES=		python
USE_PYTHON=	distutils autoplist

PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e \
		's|whrandom|random|g' ${WRKSRC}/plwm/inspect.py
	@${REINPLACE_CMD} -e \
		's|$$Id|coding: utf-8 |g' ${WRKSRC}/plwm/mw_apm.py

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.pdf \
		${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.examplewm *.py \
		${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>