# $MidnightBSD: trunk/sysutils/gnome-system-monitor/Makefile 15462 2013-09-17 03:15:41Z laffer1 $
# $FreeBSD: ports/sysutils/gnome-system-monitor/Makefile,v 1.78 2007/05/29 02:31:24 mezz Exp $

PORTNAME=	gnome-system-monitor
PORTVERSION=	2.28.2
PORTREVISION=	1
CATEGORIES=	sysutils gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome2

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	GNOME 2 system monitor program
LICENSE=	gpl2

BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme
LIB_DEPENDS=	gtop-2.0.7:${PORTSDIR}/devel/libgtop \
		gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme

CONFLICTS=	gnome-system-monitor-3.[0-9]*

USE_BZIP2=	yes
USES=		gettext
INSTALLS_OMF=	yes
USE_GMAKE=	yes
USE_GNOME=	gnomeprefix intlhack gnomehack libwnck gnomevfs2 gnomedocutils \
		librsvg2
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lutil

GCONF_SCHEMAS=	gnome-system-monitor.schemas

post-patch:
	@${REINPLACE_CMD} -e 's|<glib/gtypes.h>|<glib.h>|g' \
		-e 's|<glib/gmacros.h>|<glib.h>|g' \
		-e 's|<glib/gstring.h>|<glib.h>|g' \
		${WRKSRC}/src/*.[ch] ${WRKSRC}/src/*.cpp

.include <bsd.port.mk>
