freebsd-ports/sysutils/wmtop/Makefile
Alexey Dokuchaev 13b9045987 - 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
2013-08-01 01:54:24 +00:00

40 lines
876 B
Makefile

# Created by: Dan Piponi <wmtop@tanelorn.demon.co.uk>
# $FreeBSD$
PORTNAME= wmtop
PORTVERSION= 0.84
PORTREVISION= 3
CATEGORIES= sysutils windowmaker
MASTER_SITES= SF
MAINTAINER= uqs@FreeBSD.org
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
MAN1= wmtop.1
PORTDOCS= BUGS CHANGES README TODO
PLIST_FILES= bin/wmtop
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${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 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>