aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/pwm/Makefile
blob: 4d2076d68296d0e9a81285b180a4a90e16feb976 (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
# Created by: Neil Blakey-Milner
# $FreeBSD$

PORTNAME=   pwm
PORTVERSION=    2007.07.20
PORTREVISION=   3
CATEGORIES= x11-wm
MASTER_SITES=   http://modeemi.fi/~tuomov/dl/ \
        http://schot.a-eskwadraat.nl/files/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.//g}

MAINTAINER= schot@a-eskwadraat.nl
COMMENT=    lightweight window manager with emphasis on usability

USE_XORG=   x11
USES=       gmake
MAKE_ENV=   X11_PREFIX="${LOCALBASE}" HAS_SYSTEM_ASPRINTF=1

post-patch:
    @${REINPLACE_CMD} -e \
        's|^PREFIX=|PREFIX?=|g ; \
         s|^X11_PREFIX=|X11_PREFIX?=|g ; \
         s|^CC=|CC?=|g ; \
         s|^CFLAGS=-g -O2|CFLAGS+=|g ; \
         s|^LDFLAGS=-g|LDFLAGS=|g ; \
         s|-pedantic-errors||g' ${WRKSRC}/system.mk

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pwm ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/pwm.1x ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/pwm ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/etc/pwm/*.conf ${STAGEDIR}${PREFIX}/etc/pwm
    ${MV} ${STAGEDIR}${PREFIX}/etc/pwm/sample.conf ${STAGEDIR}${PREFIX}/etc/pwm/pwm.conf.sample
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/config.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>