aboutsummaryrefslogtreecommitdiff
path: root/devel/libstatgrab/Makefile
blob: 726d166f7511b8752b05397bece9bc545561687f (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
50
51
52
53
54
55
56
57
# New ports collection makefile for:	libstatgrab
# Date created:		30 March 2003
# Whom:			Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#

PORTNAME=	libstatgrab
PORTVERSION=	0.10
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
		http://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
		ftp://ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
		http://www.i-scream.org/pub/i-scream/%SUBDIR%/
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	tim@bishnet.net
COMMENT=	Provides a useful interface to system statistics

DIST_SUBDIR=	i-scream
GNU_CONFIGURE=	yes
INSTALLS_SHLIB=	yes
USE_INC_LIBTOOL_VER=	13
USE_GNOME=	gnomehack gnometarget pkgconfig lthack

MAN3=		sg_get_cpu_percents.3 sg_get_cpu_stats.3 \
		sg_get_cpu_stats_diff.3 sg_get_disk_io_stats.3 \
		sg_get_disk_io_stats_diff.3 sg_get_fs_stats.3 \
		sg_get_host_info.3 sg_get_load_stats.3 sg_get_mem_stats.3 \
		sg_get_network_iface_stats.3 sg_get_network_io_stats.3 \
		sg_get_network_io_stats_diff.3 sg_get_page_stats.3 \
		sg_get_page_stats_diff.3 sg_get_process_count.3 \
		sg_get_process_stats.3 sg_get_swap_stats.3 \
		sg_get_user_stats.3 statgrab.3

CONFIGURE_ARGS+=	--disable-examples

.if defined(WITHOUT_STATGRAB)
CONFIGURE_ARGS+=	--disable-statgrab
PLIST_SUB+=		STATGRAB="@comment "
.else
PLIST_SUB+=		STATGRAB=""
.endif

.if defined(WITHOUT_SAIDAR)
CONFIGURE_ARGS+=	--disable-saidar
PLIST_SUB+=		SAIDAR="@comment "
.else
PLIST_SUB+=		SAIDAR=""
.endif

# setgid kmem binaries needed on FreeBSD 4 only
.if defined(WITHOUT_SETGID_BINARIES)
CONFIGURE_ARGS+=	--disable-setgid-binaries
.endif

.include <bsd.port.mk>