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

PORTNAME=	asmon
PORTVERSION=	0.61
PORTREVISION=	2
CATEGORIES=	sysutils afterstep
MASTER_SITES=	${MASTER_SITE_AFTERSTEP}
MASTER_SITE_SUBDIR=	apps/asmon

MAINTAINER=	5u623l20@gmail.com
COMMENT=	Swallowable applet monitors the CPU usage, memory, and swap, etc

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=	bin/asmon

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

do-install:
	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g kmem -m 2755 ${WRKSRC}/asmon/asmon ${PREFIX}/bin

.include <bsd.port.mk>