2001-01-03 10:38:25 +00:00
|
|
|
# New ports collection makefile for: pwm
|
2000-10-01 22:28:52 +00:00
|
|
|
# Date created: 02 Oct 2000
|
|
|
|
# Whom: Neil Blakey-Milner
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pwm
|
|
|
|
PORTVERSION= 1.0
|
2001-01-03 10:38:25 +00:00
|
|
|
PORTREVISION= 1
|
2000-10-01 22:28:52 +00:00
|
|
|
CATEGORIES= x11-wm
|
|
|
|
MASTER_SITES= http://www.students.tut.fi/~tuomov/dl/
|
|
|
|
|
|
|
|
MAINTAINER= nbm@FreeBSD.org
|
|
|
|
|
2001-01-03 10:38:25 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2000-10-01 22:28:52 +00:00
|
|
|
|
|
|
|
MAN1= pwm.1x
|
|
|
|
|
|
|
|
post-patch:
|
2001-01-03 10:38:25 +00:00
|
|
|
@${PERL} -pi \
|
2000-10-01 22:28:52 +00:00
|
|
|
-e 's#^PREFIX.*$$#PREFIX=${PREFIX}#;' \
|
2001-01-03 10:38:25 +00:00
|
|
|
-e 's#^X11_PREFIX.*$$#X11_PREFIX=${X11BASE}#;' \
|
2000-10-01 22:28:52 +00:00
|
|
|
-e 's#^CC=.*$$#CC=${CC}#;' \
|
|
|
|
-e 's#^CFLAGS=-g -O2 (.*)$$#CFLAGS=${CFLAGS} \1#;' \
|
|
|
|
-e 's#^LDFLAGS=-g (.*)$$#LDFLAGS=${LDFLAGS} \1#;' \
|
|
|
|
${WRKSRC}/system.mk
|
|
|
|
|
2001-01-03 10:38:25 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pwm ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pwm.1x ${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${PREFIX}/etc/pwm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/pwm/*.conf ${PREFIX}/etc/pwm
|
|
|
|
.if !exists(${PREFIX}/etc/pwm/pwm.conf)
|
|
|
|
${CP} ${PREFIX}/etc/pwm/sample.conf ${PREFIX}/etc/pwm/pwm.conf
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/pwm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/pwm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/share/doc/pwm
|
|
|
|
.endif
|
|
|
|
|
2000-10-01 22:28:52 +00:00
|
|
|
.include <bsd.port.mk>
|