summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-05-02 22:54:43 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-05-02 22:54:43 +0800
commitfe1abba4e48a76018c7420df9dbff2f638009a2b (patch)
tree0ba5d9dc26d8486d58f518f81fa4d88ea26594f5
parent1cb54195d13ef910cd2cc0f4f01b47df5db4c197 (diff)
downloadmarcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar.gz
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar.bz2
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar.lz
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar.xz
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.tar.zst
marcuscom-ports-fe1abba4e48a76018c7420df9dbff2f638009a2b.zip
- Only depend on (optional) dmidecode if ${ARCH}=[i386|ia64|amd64] to allow
use on sparc and maybe others. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6196 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--sysutils/hal/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
index b95bf8acd..acdffea18 100644
--- a/sysutils/hal/Makefile
+++ b/sysutils/hal/Makefile
@@ -3,7 +3,7 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom$
+# $MCom: ports/sysutils/hal/Makefile,v 1.1 2006/05/02 05:52:50 marcus Exp $
#
PORTNAME= hal
@@ -15,8 +15,7 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= Hardware Abstraction Layer for simplifying device access
LIB_DEPENDS= polkit.0:${PORTSDIR}/sysutils/policykit
-RUN_DEPENDS= ${LOCALBASE}/share/pci.ids:${PORTSDIR}/sysutils/pciutils \
- dmidecode:${PORTSDIR}/sysutils/dmidecode
+RUN_DEPENDS= ${LOCALBASE}/share/pci.ids:${PORTSDIR}/sysutils/pciutils
USE_BZIP2= yes
USE_GETTEXT= yes
@@ -41,6 +40,12 @@ SNAPVERSION= 20060502
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${HALVERSION}
PLIST_SUB= VERSION=${HALVERSION}
+.include <bsd.port.pre.mk>
+
+.if ${ARCH}=="i386" || ${ARCH}=="amd64" || ${ARCH}=="ia64"
+RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
post-install:
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@@ -50,4 +55,4 @@ post-install:
${DOCSDIR}/README.freebsd
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>