# $NetBSD: Makefile,v 1.3 2008/05/24 15:34:10 tnn2 Exp $ # DISTNAME= hal-0.5.10 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ MAINTAINER= pkgsrc@blackmouse.biz HOMEPAGE= http://www.freedesktop.org/wiki/Software/hal COMMENT= Specification and an implementation of a hardware abstraction layer GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= gmake pkg-config intltool USE_LANGUAGES+= c c++ HAL_USER?= haldaemon HAL_GROUP?= haldaemon PKG_GROUPS= ${HAL_GROUP} PKG_USERS= ${HAL_USER}:${HAL_GROUP} CONFIGURE_ARGS+= --with-os-type=${LOWER_VENDOR} CONFIGURE_ARGS+= --with-hal-user=${HAL_USER} CONFIGURE_ARGS+= --with-hal-group=${HAL_GROUP} CONFIGURE_ARGS+= --with-pid-file=${VARBASE}run/hald.pid CONFIGURE_ARGS+= --with-socket-dir=${VARBASE} CONFIGURE_ARGS+= --localstatedir=${VARBASE} CONFIGURE_ARGS+= --with-pci-ids=${PREFIX}/share/pciids CONFIGURE_ARGS+= --with-usb-ids=${PREFIX}/share/usbids PKGCONFIG_OVERRIDE+= hal.pc.in PKGCONFIG_OVERRIDE+= hal-storage.pc.in RCD_SCRIPTS+= hald DBUS_DIR= ${PKG_SYSCONFDIR}/dbus-1/system.d BUILD_DEFS+= HAL_USER HAL_GROUP UDEV_RULES_DIR VARBASE .include "options.mk" EGDIR= ${PREFIX}/share/examples/hal CONF_FILES= ${EGDIR}/hal.conf ${DBUS_DIR}/hal.conf .if ${OPSYS} == "Linux" # i can't get OS_VERSION as number :( so it could be easer way # in if clause MAJOR_OS_VERSION= ${OS_VERSION:S/${OS_VERSION:C/^[0-9]*\.[0-9]*//}//} MINOR_OS_VERSION= ${OS_VERSION:C/^[0-9]*\.[0-9]*\.//:C/[^0-9].*//} # works only with kernel 2.6.15 or higher . if ${MAJOR_OS_VERSION} < 2.6 || (${MAJOR_OS_VERSION} == 2.6 && ${MINOR_OS_VERSION} < 15) ONLY_FOR_PLATFORM= Linux>=-2.6.15-* . endif # SS like System Script PLIST_SUBST+= SS= UDEV_RULES_DIR?= /etc/udev/rules.d CONF_FILES+= ${EGDIR}/90-hal.rules ${UDEV_RULES_DIR}/90-hal.rules .else PLIST_SUBST+= SS=@comment .endif CHECK_PORTABILITY_SKIP+= configure tools/hal-system-power-reboot CHECK_PORTABILITY_SKIP+= tools/linux/hal-system-power-suspend-linux CHECK_PORTABILITY_SKIP+= tools/hal-system-power-shutdown CHECK_PORTABILITY_SKIP+= tools/hal-system-power-hibernate CHECK_PORTABILITY_SKIP+= tools/hal-system-power-suspend .include "../../devel/glib2/buildlink3.mk" .include "../../devel/libusb/buildlink3.mk" .include "../../sysutils/dbus/buildlink3.mk" .include "../../sysutils/dbus-glib/buildlink3.mk" .include "volume_id.mk" .include "../../mk/bsd.pkg.mk"