1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- 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
This commit is contained in:
Alexey Dokuchaev 2013-08-01 01:54:24 +00:00
parent 86baa50702
commit 13b9045987
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324079
2 changed files with 20 additions and 23 deletions

View File

@ -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>

View File

@ -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/