GARNAME = hal
GARVERSION = 0.5.8.1
CATEGORIES = freedesktop
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
PATCHFILES = hal-0.5.8.1-dont-crash-on-cdrom-drives.patch hal-0.5.8.1-fedora-eject.patch hal-0.5.8.1-fixppc.patch hal-0.5.8.1-partutil-fix.patch hal-0.5.8.1-remove-link-not-remove.patch hal-0.5.8.1-stat-devicefile-not-mountpoint.patch hal-alignment.patch macbookpro_detection.patch

MASTER_SITES = http://freedesktop.org/~david/dist/

LIBDEPS = bootstrap/libvolume_id freedesktop/dbus-glib 

DESCRIPTION = hal
define BLURB
 #FIXME: blurb goes here
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

# work around borked configure file
CONFIGURE_ENV = PKG_CONFIG="$(bindir)/pkg-config"

CONFIGURE_ARGS = $(DIRPATHS)  --with-dbus-sys=$(sysconfdir)/dbus-1/system.d
 
## disable PolicyKit [for now]
CONFIGURE_ARGS += --enable-policy-kit=no

include ../category.mk

post-install:
	@ mkdir -p $(datadir)/applications
	@cp -f files/hal-device-manager.desktop $(datadir)/applications/
	@$(MAKECOOKIE)
