summaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2001-01-03 10:38:25 +0000
committernbm <nbm@FreeBSD.org>2001-01-03 10:38:25 +0000
commit2a2b2ed09fbb764271fd16fcdcaf1301301526f5 (patch)
tree9fbf110d3792d2c182dea7256aaa98a6d91962f9 /x11-wm
parent417796d2724f2f208fde04315c1e6cf2b36280f4 (diff)
downloadFreeBSD-ports-2a2b2ed09fbb764271fd16fcdcaf1301301526f5.zip
FreeBSD-ports-2a2b2ed09fbb764271fd16fcdcaf1301301526f5.tar.gz
Cleanup from Ports Fury.
PR: 23894 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/pwm/Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/x11-wm/pwm/Makefile b/x11-wm/pwm/Makefile
index 0e7dc45..ae1dec2 100644
--- a/x11-wm/pwm/Makefile
+++ b/x11-wm/pwm/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: pwm
+# New ports collection makefile for: pwm
# Date created: 02 Oct 2000
# Whom: Neil Blakey-Milner
#
@@ -7,23 +7,38 @@
PORTNAME= pwm
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://www.students.tut.fi/~tuomov/dl/
MAINTAINER= nbm@FreeBSD.org
-USE_XLIB= YES
-USE_GMAKE= YES
+USE_X_PREFIX= yes
+USE_GMAKE= yes
MAN1= pwm.1x
post-patch:
- @perl -i -pe 's#^DOCDIR.*$$#DOCDIR=${PREFIX}/share/doc#' ${WRKSRC}/Makefile
- @perl -i -p \
+ @${PERL} -pi \
-e 's#^PREFIX.*$$#PREFIX=${PREFIX}#;' \
+ -e 's#^X11_PREFIX.*$$#X11_PREFIX=${X11BASE}#;' \
-e 's#^CC=.*$$#CC=${CC}#;' \
-e 's#^CFLAGS=-g -O2 (.*)$$#CFLAGS=${CFLAGS} \1#;' \
-e 's#^LDFLAGS=-g (.*)$$#LDFLAGS=${LDFLAGS} \1#;' \
${WRKSRC}/system.mk
+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
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud