summaryrefslogtreecommitdiff
path: root/sysutils/gkrelltop/Makefile
blob: bcea56c4ecda8728a2a4767be099a12f20bc48aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Whom: David Gardner
# $FreeBSD$

PORTNAME=	gkrelltop
PORTVERSION=	2.2.10
CATEGORIES=	sysutils
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}_${PORTVERSION}.orig

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Plugin for gkrellm 2.x shows top three processes, requires procfs

RUN_DEPENDS=	gkrellmd:${PORTSDIR}/sysutils/gkrellm2
BUILD_DEPENDS:=	${RUN_DEPENDS}

USES=		gmake pkgconfig
MAKE_ARGS=	INSTALLDIR=${LOCALBASE}/libexec/gkrellm2/plugins \
		INSTALLDIRD=${PREFIX}/libexec/gkrellm2/plugins-gkrellmd

.if defined(GKRELLM_SERVER_ONLY)
ALL_TARGET=	server
INSTALL_TARGET=	install-server
PLIST_SUB+=	CLIENT="@comment "
.else
PLIST_SUB+=	CLIENT=""
.endif

WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}

post-patch:
.if defined(GKRELLM_SERVER_ONLY)
	${REINPLACE_CMD} 's/^\(PKG.*\)gkrellm/\1gkrellmd/' ${WRKSRC}/configure
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>