summaryrefslogtreecommitdiffstats
path: root/x11-wm/pawm/Makefile
blob: ba754fffe29a8e5ac42b2b2c9b7c39649e0bdc74 (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
# Created by: trevor
# $FreeBSD$

PORTNAME=	pawm
PORTVERSION=	2.3.0
PORTREVISION=	1
CATEGORIES=	x11-wm
MASTER_SITES=	http://www.pleyades.net/pawm/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The Puto Amo Window Manager

LICENSE=	GPLv2 # only
LICENSE_FILE=	${WRKSRC}/GPL

USE_XORG=	x11 xft xrandr xrender xpm
USES=		cmake pkgconfig ninja tar:bzip2
CMAKE_ARGS=	-DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \
		-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
LDFLAGS+=	-L${LOCALBASE}/lib -lXext -lXrender

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		'/"\/etc"/s|^|#| ; \
		 /"-O2"/s|^|#| ; \
		 /LINK_DIRECTORIES/s|\.|| ; \
		 /INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for ii in AUTHORS Changelog.old INSTALL README TODO
	${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud