2007-01-15 00:21:36 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hal
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
HAL_VERSION:=0.5.8
|
|
|
|
HAL_SOURCE:=hal-$(HAL_VERSION).tar.gz
|
2007-01-15 00:21:36 +01:00
|
|
|
HAL_SITE:=http://people.freedesktop.org/~david/dist/
|
2007-07-11 16:06:06 +02:00
|
|
|
HAL_DIR:=$(BUILD_DIR)/hal-$(HAL_VERSION)
|
2007-01-15 00:21:36 +01:00
|
|
|
HAL_CAT:=$(ZCAT)
|
|
|
|
HAL_BINARY:=hald/hald
|
|
|
|
HAL_TARGET_BINARY:=usr/sbin/hald
|
|
|
|
|
2007-08-12 00:26:56 +02:00
|
|
|
GLIB_CFLAGS:=-I$(STAGING_DIR)/usr/include/glib-2.0 \
|
2007-01-15 00:21:36 +01:00
|
|
|
-I$(STAGING_DIR)/lib/glib/include
|
2007-08-22 13:47:22 +02:00
|
|
|
GLIB_LIBS:=$(STAGING_DIR)/lib/libglib-2.0.so \
|
2007-01-15 00:21:36 +01:00
|
|
|
$(STAGING_DIR)/lib/libgmodule-2.0.so \
|
|
|
|
$(STAGING_DIR)/lib/libgobject-2.0.so \
|
|
|
|
$(STAGING_DIR)/lib/libgthread-2.0.so
|
|
|
|
DBUS_GLIB_LIBS:=$(STAGING_DIR)/usr/lib/libdbus-glib-1.so
|
|
|
|
|
|
|
|
$(DL_DIR)/$(HAL_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(HAL_SITE),$(HAL_SOURCE))
|
2007-01-15 00:21:36 +01:00
|
|
|
|
|
|
|
hal-source: $(DL_DIR)/$(HAL_SOURCE)
|
|
|
|
|
|
|
|
$(HAL_DIR)/.unpacked: $(DL_DIR)/$(HAL_SOURCE)
|
|
|
|
$(HAL_CAT) $(DL_DIR)/$(HAL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(HAL_DIR) package/hal/ \*.patch
|
|
|
|
touch $(HAL_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(HAL_DIR)/.configured: $(HAL_DIR)/.unpacked /usr/bin/pkg-config
|
|
|
|
(cd $(HAL_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-15 00:21:36 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/lib/glib-2.0/include" \
|
|
|
|
GLIB_CFLAGS="$(GLIB_CFLAGS)" \
|
|
|
|
GLIB_LIBS="$(GLIB_LIBS)" \
|
|
|
|
DBUS_CFLAGS="-I$(STAGING_DIR)/usr/include/dbus-1.0 -I$(STAGING_DIR)/usr/lib/dbus-1.0/include" \
|
|
|
|
DBUS_LIBS="$(STAGING_DIR)/usr/lib/libdbus-1.so" \
|
|
|
|
VOLUME_ID_CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
VOLUME_ID_LIBS="$(STAGING_DIR)/usr/lib/libvolume_id.so" \
|
|
|
|
ac_cv_path_LIBUSB_CONFIG= \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-01-15 00:21:36 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-hwdata=$(TARGET_DIR)/usr/share/hwdata \
|
|
|
|
--disable-policy-kit \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-static \
|
|
|
|
--disable-acpi-acpid \
|
|
|
|
--disable-acpi-proc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-08-22 14:35:41 +02:00
|
|
|
touch $(HAL_DIR)/.configured
|
2007-01-15 00:21:36 +01:00
|
|
|
|
|
|
|
$(HAL_DIR)/hald/hald: $(HAL_DIR)/.configured
|
|
|
|
$(MAKE) STAGING_DIR="$(STAGING_DIR)" DESTDIR="$(TARGET_DIR)" DBUS_GLIB_LIBS="$(DBUS_GLIB_LIBS)" -C $(HAL_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(HAL_TARGET_BINARY): $(HAL_DIR)/hald/hald
|
|
|
|
$(MAKE) STAGING_DIR="$(STAGING_DIR)" DESTDIR="$(TARGET_DIR)" -C $(HAL_DIR) install
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/locale
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/doc
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/gtk-doc
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/hal/device-manager
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/pkgconfig
|
2007-08-12 00:26:56 +02:00
|
|
|
# remove _everything_ in $(TARGET_DIR)/usr/include?
|
2007-08-13 01:33:44 +02:00
|
|
|
# rm -rf $(TARGET_DIR)/usr/include
|
2007-01-15 00:21:36 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/libhal*.so
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/libhal*.la
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/hal
|
|
|
|
rm -rf $(TARGET_DIR)/etc/PolicyKit
|
2007-05-10 00:48:41 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/hal/S98haldaemon $(TARGET_DIR)/etc/init.d
|
2007-01-15 00:21:36 +01:00
|
|
|
rm -rf $(TARGET_DIR)/etc/rc.d
|
2007-08-22 13:47:22 +02:00
|
|
|
for file in hald-addon-acpi* hald-addon-cpufreq \
|
|
|
|
hald-addon-keyboard hald-addon-pmu \
|
|
|
|
hald-probe-pc-floppy hald-probe-printer \
|
|
|
|
hald-probe-serial hald-probe-smbios \
|
|
|
|
hal-storage-eject hal-storage-closetray \
|
|
|
|
hal-system-power-pmu hald-probe-input \
|
|
|
|
hald-probe-hiddev hald-addon-hid-ups; \
|
|
|
|
do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/libexec/$$file; \
|
2007-01-15 00:21:36 +01:00
|
|
|
done
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libhal*
|
2007-01-15 00:21:36 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
hal: host-pkgconfig dbus-glib hwdata udev-volume_id $(TARGET_DIR)/$(HAL_TARGET_BINARY)
|
2007-01-15 00:21:36 +01:00
|
|
|
|
|
|
|
hal-clean:
|
|
|
|
rm -f $(TARGET_DIR)/etc/dbus-1/system.d/hal.conf
|
|
|
|
rm -rf $(TARGET_DIR)/etc/hal $(TARGET_DIR)/usr/share/hal
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S98haldaemon
|
|
|
|
rm -f $(TARGET_DIR)/etc/udev/rules.d/90-hal.rules
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/hal-* $(TARGET_DIR)/usr/bin/lshal
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/hald
|
|
|
|
rm -f $(TARGET_DIR)/usr/libexec/hald-* $(TARGET_DIR)/usr/libexec/hal-*
|
|
|
|
rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/libexec
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libhal.so.1*
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libhal-storage.so.1*
|
|
|
|
-$(MAKE) -C $(HAL_DIR) clean
|
|
|
|
|
|
|
|
hal-dirclean:
|
|
|
|
rm -rf $(HAL_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAL),y)
|
2007-01-15 00:21:36 +01:00
|
|
|
TARGETS+=hal
|
|
|
|
endif
|