2007-01-17 14:58:01 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# rdesktop
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
RDESKTOP_VERSION=1.5.0
|
|
|
|
RDESKTOP_SOURCE=rdesktop-$(RDESKTOP_VERSION).tar.gz
|
|
|
|
RDESKTOP_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/rdesktop/
|
|
|
|
RDESKTOP_DIR=$(BUILD_DIR)/rdesktop-$(RDESKTOP_VERSION)
|
|
|
|
RDESKTOP_CAT:=$(ZCAT)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(RDESKTOP_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(RDESKTOP_SITE),$(RDESKTOP_SOURCE))
|
2007-01-17 14:58:01 +01:00
|
|
|
|
|
|
|
$(RDESKTOP_DIR)/.unpacked: $(DL_DIR)/$(RDESKTOP_SOURCE)
|
|
|
|
$(RDESKTOP_CAT) $(DL_DIR)/$(RDESKTOP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(RDESKTOP_DIR) package/rdesktop/ \*.patch*
|
|
|
|
touch $(RDESKTOP_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(RDESKTOP_DIR)/.configured: $(RDESKTOP_DIR)/.unpacked
|
|
|
|
(cd $(RDESKTOP_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-17 14:58:01 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2008-06-25 00:52:14 +02:00
|
|
|
--with-openssl=$(STAGING_DIR)/usr \
|
2007-01-17 14:58:01 +01:00
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-01-17 14:58:01 +01:00
|
|
|
touch $(RDESKTOP_DIR)/.configured
|
|
|
|
|
|
|
|
$(RDESKTOP_DIR)/rdesktop: $(RDESKTOP_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(RDESKTOP_DIR)
|
|
|
|
|
2008-03-27 16:42:42 +01:00
|
|
|
$(TARGET_DIR)/usr/bin/rdesktop: $(RDESKTOP_DIR)/rdesktop
|
|
|
|
cp $^ $@
|
2007-01-17 14:58:01 +01:00
|
|
|
|
2009-07-17 16:26:29 +02:00
|
|
|
rdesktop: uclibc openssl xserver_xorg-server $(TARGET_DIR)/usr/bin/rdesktop
|
2007-01-17 14:58:01 +01:00
|
|
|
|
|
|
|
rdesktop-source: $(DL_DIR)/$(RDESKTOP_SOURCE)
|
|
|
|
|
|
|
|
rdesktop-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(RDESKTOP_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/rdesktop
|
2007-01-17 14:58:01 +01:00
|
|
|
|
|
|
|
rdesktop-dirclean:
|
|
|
|
rm -rf $(RDESKTOP_DIR) $(RDESKTOP_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_RDESKTOP),y)
|
2007-01-17 14:58:01 +01:00
|
|
|
TARGETS+=rdesktop
|
|
|
|
endif
|