GARNAME = hal
GARVERSION = 0.5.5.1
CATEGORIES = freedesktop
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

# [slackware / suse fix] uncomment the following line to fix defines that are not included in your distribution.
#PATCHFILES += hal-kernel-includes.diff

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

LIBDEPS = freedesktop/dbus

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

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

CONFIGURE_ARGS = $(DIRPATHS) --with-hotplug=$(sysconfdir)/hotplug.d


include ../category.mk

CC := $(shell echo $(CC) | sed -e 's/ccache //g')
CXX := $(shell echo $(CXX) | sed -e 's/ccache //g')

post-install:
	@echo "To finish installation become root and create a soft link:"
	@echo "ln -s $(prefix)/libexec/hal.hotplug /etc/hotplug.d/default/20-hal.hotplug"
	@$(MAKECOOKIE)
