freebsd-ports/devel/libstatgrab/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

54 lines
1.5 KiB
Makefile

# New ports collection makefile for: libstatgrab
# Date created: 30 March 2003
# Whom: Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#
PORTNAME= libstatgrab
PORTVERSION= 0.15
CATEGORIES= devel
MASTER_SITES= ftp://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \
http://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \
ftp://ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
http://ftp.i-scream.org/pub/i-scream/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= tdb@FreeBSD.org
COMMENT= Provides a useful interface to system statistics
DIST_SUBDIR= i-scream
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_GNOME= gnomehack gnometarget pkgconfig
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
.ifdef(WITHOUT_STATGRAB)
CONFIGURE_ARGS+= --disable-statgrab
PLIST_SUB+= STATGRAB="@comment "
.else
PLIST_SUB+= STATGRAB=""
MAN1+= statgrab.1 statgrab-make-mrtg-config.1 \
statgrab-make-mrtg-index.1
.endif
.ifdef(WITHOUT_SAIDAR)
CONFIGURE_ARGS+= --disable-saidar
PLIST_SUB+= SAIDAR="@comment "
.else
PLIST_SUB+= SAIDAR=""
MAN1+= saidar.1
.endif
.include <bsd.port.mk>