aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/est/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-08-27 08:13:12 +0800
committeredwin <edwin@FreeBSD.org>2004-08-27 08:13:12 +0800
commitd461ebe438e526f50d238ae33437aa7ed22c365e (patch)
treedcb6e36776a02031932def731acf512e96a6aa97 /sysutils/est/Makefile
parent2029ee39c7af013192629b78b46cc37895e169e9 (diff)
downloadfreebsd-ports-gnome-d461ebe438e526f50d238ae33437aa7ed22c365e.tar.gz
freebsd-ports-gnome-d461ebe438e526f50d238ae33437aa7ed22c365e.tar.zst
freebsd-ports-gnome-d461ebe438e526f50d238ae33437aa7ed22c365e.zip
[NEW PORT] sysutils/es
This port builds a kernel module providing two sysctls (hw.est_freqs, hw.est_curfreq) for controlling Enhanced SpeedStep on Intel Pentium M processors. PR: 71007 Submitted by: Colin Percival <cperciva@daemonology.net>
Diffstat (limited to 'sysutils/est/Makefile')
-rw-r--r--sysutils/est/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/est/Makefile b/sysutils/est/Makefile
new file mode 100644
index 000000000000..bd9aa4c60ef9
--- /dev/null
+++ b/sysutils/est/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: Enhanced SpeedStep driver
+# Date created: 21 August 2004
+# Whom: cperciva@daemonology.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= est
+PORTVERSION= 0.5
+CATEGORIES= sysutils
+MASTER_SITES= http://www.daemonology.net/freebsd-est/
+
+MAINTAINER= cperciva@daemonology.net
+COMMENT= Enhanced SpeedStep driver for Pentium M processors
+
+ONLY_FOR_ARCHS= i386
+KMODDIR= ${PREFIX}/modules
+MAKE_ARGS= KMODDIR="${KMODDIR}"
+
+PLIST_FILES= modules/est.ko \
+ etc/rc.d/est.sh
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500023
+EXTRA_PATCHES= ${FILESDIR}/est.c.diff.fbsd4
+.endif
+
+post-extract:
+ @${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${FILESDIR}/est.sh \
+ > ${WRKDIR}/est.sh
+
+pre-install:
+ ${MKDIR} ${KMODDIR}
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/
+
+.include <bsd.port.post.mk>