aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sensors-applet/Makefile
blob: 9ad3fe4a6a30c3aa0259c7161a4bad694e4901a0 (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
# New ports collection makefile for:	sensors-applet
# Date created:			03 May 2006
# Whom:				Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	sensors-applet
PORTVERSION=	1.6.1
PORTREVISION=	10
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/GNOME%20Sensors%20Applet%20Version%20${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A GNOME applet displaying hardware sensor values

RUN_DEPENDS=	mbmon:${PORTSDIR}/sysutils/mbmon \
		smartctl:${PORTSDIR}/sysutils/smartmontools

USE_GNOME=	gnomehack gnomeprefix intlhack gnomepanel libgnomeui
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
DEFINES=	-DMBMON_EXECUTABLE=\\\"${LOCALBASE}/bin/mbmon\\\" \
		-DSMARTCTL_HELPER=\\\"${PREFIX}/libexec/smartctl-helper\\\"
CPPFLAGS+=	-I${LOCALBASE}/include ${DEFINES}
LDFLAGS+=	-L${LOCALBASE}/lib

post-patch:
	@${CP} -f ${FILESDIR}/mbmon-sensors-interface.* \
		${FILESDIR}/smartctl-sensors-interface.* ${WRKSRC}/src

post-build:
	${CC} ${CFLAGS} -DSMARTCTL=\"${LOCALBASE}/sbin/smartctl\" \
		-o ${WRKSRC}/smartctl-helper ${FILESDIR}/smartctl-helper.c

post-install:
	${INSTALL_PROGRAM} ${WRKSRC}/smartctl-helper ${PREFIX}/libexec
	${CHMOD} u+s ${PREFIX}/libexec/smartctl-helper

.include <bsd.port.mk>