2005-11-15 07:50:34 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# at
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
AT_VERSION:=3.1.10
|
|
|
|
AT_SOURCE:=at_$(AT_VERSION).tar.gz
|
2005-11-15 07:50:34 +01:00
|
|
|
AT_SITE:=http://ftp.debian.org/debian/pool/main/a/at
|
2007-07-11 16:06:06 +02:00
|
|
|
AT_DIR:=$(BUILD_DIR)/at-$(AT_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
AT_CAT:=$(ZCAT)
|
2007-07-16 10:12:15 +02:00
|
|
|
AT_TARGET_SCRIPT:=etc/init.d/S99at
|
|
|
|
AT_BINARY:=.at
|
2005-11-15 07:50:34 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(AT_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(AT_SITE)/$(AT_SOURCE)
|
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
at-source: $(DL_DIR)/$(AT_SOURCE)
|
|
|
|
|
2005-11-15 07:50:34 +01:00
|
|
|
$(AT_DIR)/.unpacked: $(DL_DIR)/$(AT_SOURCE)
|
|
|
|
$(AT_CAT) $(DL_DIR)/$(AT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(AT_DIR) package/at/ at\*.patch
|
2007-01-22 14:56:04 +01:00
|
|
|
touch $@
|
2005-11-15 07:50:34 +01:00
|
|
|
|
|
|
|
$(AT_DIR)/.configured: $(AT_DIR)/.unpacked
|
|
|
|
(cd $(AT_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2005-11-15 07:50:34 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2005-11-15 07:50:34 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-jobdir=/var/lib/atjobs \
|
|
|
|
--with-atspool=/var/lib/atspool \
|
|
|
|
--with-daemon_username=at \
|
|
|
|
--with-daemon_groupname=at \
|
|
|
|
);
|
2007-01-22 14:56:04 +01:00
|
|
|
touch $@
|
2005-11-15 07:50:34 +01:00
|
|
|
|
|
|
|
$(AT_DIR)/$(AT_BINARY): $(AT_DIR)/.configured
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(AT_DIR)
|
2007-07-16 10:12:15 +02:00
|
|
|
touch $@
|
2005-11-15 07:50:34 +01:00
|
|
|
|
2007-07-16 10:12:15 +02:00
|
|
|
$(TARGET_DIR)/$(AT_TARGET_SCRIPT): $(AT_DIR)/$(AT_BINARY)
|
2005-11-15 07:50:34 +01:00
|
|
|
# Use fakeroot to pretend to do 'make install' as root
|
2007-06-25 12:23:24 +02:00
|
|
|
echo '$(MAKE) DAEMON_USERNAME=root DAEMON_GROUPNAME=root ' \
|
|
|
|
'$(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(AT_DIR) install' \
|
2006-04-11 00:49:48 +02:00
|
|
|
> $(STAGING_DIR)/.fakeroot.at
|
2007-06-25 12:23:24 +02:00
|
|
|
echo 'rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/doc/at' >> $(STAGING_DIR)/.fakeroot.at
|
2007-07-16 10:12:15 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(AT_DIR)/debian/rc $(TARGET_DIR)/$(AT_TARGET_SCRIPT)
|
2005-11-15 07:50:34 +01:00
|
|
|
|
2007-07-16 10:12:15 +02:00
|
|
|
at: uclibc host-fakeroot $(TARGET_DIR)/$(AT_TARGET_SCRIPT)
|
2005-11-15 07:50:34 +01:00
|
|
|
|
|
|
|
at-clean:
|
2007-06-28 16:07:13 +02:00
|
|
|
-$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(AT_DIR) uninstall
|
2007-07-16 10:12:15 +02:00
|
|
|
rm -f $(TARGET_DIR)/$(AT_TARGET_SCRIPT) $(TARGET_DIR)/etc/init.d/S99at
|
2005-11-15 07:50:34 +01:00
|
|
|
-$(MAKE) -C $(AT_DIR) clean
|
|
|
|
|
|
|
|
at-dirclean:
|
|
|
|
rm -rf $(AT_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_AT)),y)
|
|
|
|
TARGETS+=at
|
|
|
|
endif
|