summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-08-01 01:54:24 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-08-01 01:54:24 +0000
commit13b9045987b2839ec7eb1d4a91e275e4eb548db7 (patch)
tree5b461e078915584b241207f573a792c788d4cef7 /sysutils
parentFix build with clang (diff)
- Unbreak parallel (-jX) builds by switching to GNU make
- Define LICENSE (GPLv2) and do not spam portdocs with COPYING - Remove non-working URL from master sites, improve pkg-descr - Tidy up post-patch and do-install targets, convert NOPORTDOCS
Notes
Notes: svn path=/head/; revision=324079
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/wmtop/Makefile36
-rw-r--r--sysutils/wmtop/pkg-descr7
2 files changed, 20 insertions, 23 deletions
diff --git a/sysutils/wmtop/Makefile b/sysutils/wmtop/Makefile
index e485130c1a88..117b925b10c6 100644
--- a/sysutils/wmtop/Makefile
+++ b/sysutils/wmtop/Makefile
@@ -5,38 +5,36 @@ PORTNAME= wmtop
PORTVERSION= 0.84
PORTREVISION= 3
CATEGORIES= sysutils windowmaker
-MASTER_SITES= http://ftp1.sourceforge.net/wmtop/ \
- SF
+MASTER_SITES= SF
MAINTAINER= uqs@FreeBSD.org
-COMMENT= Windowmaker dock app to display top 3 CPU consuming processes
+COMMENT= Dockapp to display top three CPU consuming processes
+LICENSE= GPLv2
+
+USES= gmake # gmake is needed for -jX builds
USE_XORG= xpm x11
USE_CSTD= gnu89
ALL_TARGET= freebsd
-MAKE_JOBS_UNSAFE= yes
MAN1= wmtop.1
+PORTDOCS= BUGS CHANGES README TODO
PLIST_FILES= bin/wmtop
-.if !defined(NOPORTDOCS)
-PORTDOCS= BUGS CHANGES COPYING README TODO
-.endif
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-patch:
- ${REINPLACE_CMD} -e 's/^\(LIBS.*\)/\1 -lkvm/' ${WRKSRC}/Makefile
- ${REINPLACE_CMD} -e 's/^\(FLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's/^\(LIBS.*\)/\1 -lkvm/ ; \
+ s/^\(FLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/wmtop ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/wmtop.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 \
- ${PREFIX}/share/doc/${PORTNAME}
-.for file in BUGS CHANGES COPYING README TODO
- @${INSTALL_DATA} ${WRKSRC}/${file} \
- ${PREFIX}/share/doc/${PORTNAME}
-.endfor
-.endif # !NOPORTDOCS
+ ${INSTALL_PROGRAM} ${WRKSRC}/wmtop ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/wmtop.1 ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/sysutils/wmtop/pkg-descr b/sysutils/wmtop/pkg-descr
index 9e40e5065291..a00f8b254673 100644
--- a/sysutils/wmtop/pkg-descr
+++ b/sysutils/wmtop/pkg-descr
@@ -1,6 +1,5 @@
-This is a port of wmtop which is a Windowmaker dock app which
-monitors the top 3 processes (in terms of CPU usage). You can
-configure which processes are displayed and it can be used as an
-application launcher.
+This is port of wmtop, a Windowmaker dockapp which monitors the top three
+processes (in terms of CPU usage). You can configure which processes are
+displayed, and it can also be used as an application launcher.
WWW: http://wmtop.sourceforge.net/