aboutsummaryrefslogtreecommitdiff
path: root/sysutils/klaptopdaemon
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-10-05 14:52:51 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-10-05 14:52:51 +0000
commit5acc115897b33077e2164648e79d94a983931596 (patch)
treed8513d89fe92e0c643c66c449a95adcdef92af57 /sysutils/klaptopdaemon
parentfd959c7d6e612fba1dbc6276e192e436099ff1ba (diff)
Notes
Diffstat (limited to 'sysutils/klaptopdaemon')
-rw-r--r--sysutils/klaptopdaemon/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/sysutils/klaptopdaemon/Makefile b/sysutils/klaptopdaemon/Makefile
index b6619679c5cb..c27d275e52a4 100644
--- a/sysutils/klaptopdaemon/Makefile
+++ b/sysutils/klaptopdaemon/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: klaptopdaemon
-# Date created: July 08 2004
-# Whom: Michael Nottebrock <lofi@FreeBSD.org>
-#
+# Created by: Michael Nottebrock <lofi@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= klaptopdaemon
PORTVERSION= ${KDE_VERSION}
@@ -18,7 +14,8 @@ DIST_SUBDIR= KDE
MAINTAINER= ports@FreeBSD.org
COMMENT= APM monitor for KDE
-OPTIONS= #no options for amd64
+OPTIONS_DEFINE_i386= ACPI
+ACPI_DESC= Contributed ACPI support patch
USE_KDELIBS_VER=3
@@ -33,15 +30,7 @@ USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386"
-OPTIONS= ACPI "Contributed ACPI support patch" off
-.endif
-
-.if ${ARCH} == "amd64"
-WITH_ACPI= yes
-.endif
-
-.if defined(WITH_ACPI)
+.if ${PORT_OPTIONS:MACPI} || ${ARCH} == "amd64"
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-acpi-support
ONLY_FOR_ARCHS+=amd64
.endif