summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorahoka <ahoka>2008-12-21 14:17:20 +0000
committerahoka <ahoka>2008-12-21 14:17:20 +0000
commit0e22f816384e58e96553d29f1534010321a3f138 (patch)
tree5eaab7136f979e16c10772974e28bae89a6bb37b /sysutils
parent9a88cc441cbea1a64f7e253274db1eab2568130f (diff)
downloadpkgsrc-0e22f816384e58e96553d29f1534010321a3f138.tar.gz
Rework platform logic to fall back properly to dummy backend.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/hal/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
index b1a97a5016d..a6c46b2066e 100644
--- a/sysutils/hal/Makefile
+++ b/sysutils/hal/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2008/12/21 13:58:28 jmcneill Exp $
+# $NetBSD: Makefile,v 1.27 2008/12/21 14:17:20 ahoka Exp $
#
DISTNAME= hal-0.5.11
@@ -39,25 +39,25 @@ CONFIGURE_ARGS+= --with-usb-ids=${PREFIX}/share/usbids
CONFIGURE_ARGS+= --with-eject=/usr/sbin/cdcontrol
CONFIGURE_ARGS+= --with-backend=freebsd
PLIST_SRC= PLIST.FreeBSD PLIST
-.endif
-.if !empty(MACHINE_PLATFORM:MNetBSD-[5-9]*)
+.elif !empty(MACHINE_PLATFORM:MNetBSD-[5-9]*)
.include "../../devel/libvolume_id/buildlink3.mk"
CONFIGURE_ARGS+= --with-backend=netbsd
HAL_GROUP= operator
-.elif ${OPSYS} == "NetBSD"
-# Pull in the dummy backend for older NetBSD
-CONFIGURE_ARGS+= --with-backend=dummy
-PLIST_SRC= PLIST
-.endif
-.if ${OPSYS} == "Linux"
+.elif ${OPSYS} == "Linux"
.include "../../devel/libusb/buildlink3.mk"
.include "../../devel/libvolume_id/buildlink3.mk"
.include "../../sysutils/pciutils/buildlink3.mk"
CONFIGURE_ARGS+= --with-backend=linux
CONF_FILES+= ${EGDIR}/90-hal.rules \
${PKG_SYSCONFBASE}/udev/rules.d/90-hal.rules
+
+.else # Unsupported systems
+# Pull in the dummy backend
+.include "../../devel/libvolume_id/buildlink3.mk"
+CONFIGURE_ARGS+= --with-backend=dummy
+PLIST_SRC= PLIST
.endif
.if ${OPSYS} == "Darwin"