############################################################# # # lirc # ############################################################# LIRC_VER:=0.8.2 LIRC_SOURCE_URL:=http://$(SF_DL_HOST)/sourceforge/lirc LIRC_SOURCE:=lirc-$(LIRC_VER).tar.gz LIRC_BUILD_DIR:=$(BUILD_DIR)/lirc-$(LIRC_VER) $(DL_DIR)/$(LIRC_SOURCE): $(WGET) -P $(DL_DIR) $(LIRC_SOURCE_URL)/$(LIRC_SOURCE) $(LIRC_BUILD_DIR)/.unpacked: $(DL_DIR)/$(LIRC_SOURCE) zcat $(DL_DIR)/$(LIRC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(PATCH) $(LIRC_BUILD_DIR) package/lirc lirc.patch touch $(LIRC_BUILD_DIR)/.unpacked $(LIRC_BUILD_DIR)/.configured: $(LIRC_BUILD_DIR)/.unpacked ( cd $(LIRC_BUILD_DIR); \ CFLAGS="$(TARGET_CFLAGS)"; \ ./configure \ --with-driver=serial \ --with-kerneldir=$(LINUX_DIR) \ --with-transmitter \ ) touch $(LIRC_BUILD_DIR)/.configured $(LIRC_BUILD_DIR)/drivers/lirc_dev/lirc_dev.ko $(LIRC_BUILD_DIR)/drivers/lirc_serial/lirc_serial.ko: $(LIRC_BUILD_DIR)/.configured $(MAKE) -C $(LIRC_BUILD_DIR)/drivers $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_dev.ko: $(LIRC_BUILD_DIR)/drivers/lirc_dev/lirc_dev.ko install -D -m 644 $(LIRC_BUILD_DIR)/drivers/lirc_dev/lirc_dev.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_dev.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_serial.ko: $(LIRC_BUILD_DIR)/drivers/lirc_serial/lirc_serial.ko install -D -m 644 $(LIRC_BUILD_DIR)/drivers/lirc_serial/lirc_serial.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_serial.ko lirc: $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_dev.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_serial.ko lirc-source: $(DL_DIR)/$(LIRC_SOURCE) lirc-clean: -rm $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/lirc_* -$(MAKE) -C $(LIRC_BUILD_DIR) clean lirc-dirclean: rm -rf $(LIRC_BUILD_DIR)