2013-03-28 04:28:30 +01:00
|
|
|
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
|
2006-05-03 22:37:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sensors-applet
|
|
|
|
PORTVERSION= 1.6.1
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 10
|
2006-05-03 22:37:12 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/GNOME%20Sensors%20Applet%20Version%20${PORTVERSION}
|
2006-05-03 22:37:12 +02:00
|
|
|
|
2008-04-29 07:11:44 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-05-03 22:37:12 +02:00
|
|
|
COMMENT= A GNOME applet displaying hardware sensor values
|
|
|
|
|
2006-05-04 05:35:14 +02:00
|
|
|
RUN_DEPENDS= mbmon:${PORTSDIR}/sysutils/mbmon \
|
|
|
|
smartctl:${PORTSDIR}/sysutils/smartmontools
|
2006-05-03 22:37:12 +02:00
|
|
|
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= pathfix pkgconfig
|
2013-03-28 04:28:30 +01:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomepanel libgnomeui
|
2006-05-03 22:37:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-05-04 05:35:14 +02:00
|
|
|
DEFINES= -DMBMON_EXECUTABLE=\\\"${LOCALBASE}/bin/mbmon\\\" \
|
|
|
|
-DSMARTCTL_HELPER=\\\"${PREFIX}/libexec/smartctl-helper\\\"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${DEFINES}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-05-03 22:37:12 +02:00
|
|
|
|
2013-09-21 01:05:58 +02:00
|
|
|
NO_STAGE= yes
|
2006-05-03 22:37:12 +02:00
|
|
|
post-patch:
|
2006-05-04 05:35:14 +02:00
|
|
|
@${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
|
2006-05-03 22:37:12 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|