aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gkrelltop/Makefile
blob: 84fe7ee95c8f9408c400a9a8dc53ffb49575520d (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
39
40
41
42
43
44
45
46
47
48
49
# Created by: David Gardner
# $FreeBSD$

PORTNAME=   gkrelltop
PORTVERSION=    2.2.13
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

LICENSE=    GPLv2

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

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

USES=       gmake pkgconfig
MAKE_ARGS=  CC="${CC} ${CFLAGS} $$(pkg-config gtk+-2.0 --cflags)" \
        CCD="${CC} ${CFLAGS} $$(pkg-config glib-2.0 --cflags)" \
        INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
        INSTALLDIRD=${PREFIX}/libexec/gkrellm2/plugins-gkrellmd

CFLAGS+=    -fPIC -DFREEBSD -DGKRELLM2

PLIST_FILES=    libexec/gkrellm2/plugins-gkrellmd/gkrelltopd.so
PLIST_DIRS= libexec/gkrellm2/plugins-gkrellmd \
        libexec/gkrellm2/plugins \
        libexec/gkrellm2

.if defined(GKRELLM_SERVER_ONLY)
ALL_TARGET= server
.else
PLIST_FILES+=   libexec/gkrellm2/plugins/gkrelltop.so
.endif

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins-gkrellmd
    (cd ${WRKSRC} && ${INSTALL_DATA} gkrelltopd.so \
        ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins-gkrellmd)
.if !defined(GKRELLM_SERVER_ONLY)
    @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
    (cd ${WRKSRC} && ${INSTALL_DATA} gkrelltop.so \
        ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins)
.endif

.include <bsd.port.mk>