summaryrefslogtreecommitdiff
path: root/x11-wm/pwm/Makefile
blob: 0e7dc458709e0feb75cf37ee84a6aec9bd8c6f82 (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
# New ports collection makefile for: pwm
# Date created:		02 Oct 2000
# Whom:			Neil Blakey-Milner
#
# $FreeBSD$
#

PORTNAME=	pwm
PORTVERSION=	1.0
CATEGORIES=	x11-wm
MASTER_SITES=	http://www.students.tut.fi/~tuomov/dl/

MAINTAINER=	nbm@FreeBSD.org

USE_XLIB=	YES
USE_GMAKE=	YES

MAN1=		pwm.1x

post-patch:
	@perl -i -pe 's#^DOCDIR.*$$#DOCDIR=${PREFIX}/share/doc#' ${WRKSRC}/Makefile
	@perl -i -p \
		-e 's#^PREFIX.*$$#PREFIX=${PREFIX}#;' \
		-e 's#^CC=.*$$#CC=${CC}#;' \
		-e 's#^CFLAGS=-g -O2 (.*)$$#CFLAGS=${CFLAGS} \1#;' \
		-e 's#^LDFLAGS=-g (.*)$$#LDFLAGS=${LDFLAGS} \1#;' \
		${WRKSRC}/system.mk

.include <bsd.port.mk>