aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/asmon/Makefile
blob: ff5d6ae2d3e8c4c27e1cf67ab5a1217af5f3a7b7 (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
# Created by: jack
# $FreeBSD$

PORTNAME=   asmon
PORTVERSION=    0.61
PORTREVISION=   3
CATEGORIES= sysutils afterstep
MASTER_SITES=   AFTERSTEP/apps/asmon

MAINTAINER= bofh@FreeBSD.org
COMMENT=    Swallowable applet monitors the CPU usage, memory, and swap, etc

LICENSE=    GPLv2

BROKEN_armv6=       fails to compile: asmon.c: variable has incomplete type 'struct vmmeter'
BROKEN_mips=        fails to compile: asmon.c: storage size of 'sum' isn't known
BROKEN_mips64=      fails to compile: asmon.c: storage size of 'sum' isn't known
BROKEN_powerpc64=   fails to compile: asmon.c: storage size of 'sum' isn't known

USE_XORG=   xpm x11

BUILD_WRKSRC=   ${WRKDIR}/${PORTNAME}-${PORTVERSION}/asmon
CFLAGS+=    -I${LOCALBASE}/include
USES=       gmake
USE_CSTD=   gnu89
ALL_TARGET= asmon
MAKE_ARGS+= LIBDIR="-L${LOCALBASE}/lib" \
        SOLARIS_LIBS=-lkvm

PLIST_FILES=    "@(,kmem,) bin/asmon"

post-patch:
    ${REINPLACE_CMD} -e 's:gcc:${CC} ${CFLAGS}:' ${BUILD_WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/asmon/asmon ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>