diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2007-01-17 13:58:01 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2007-01-17 13:58:01 +0000 |
commit | e2dde9c7cdc2f9ed851acfb7daa858ffa1744246 (patch) | |
tree | 8e3899d13b3a3e9b34730bbab9163617816867be /package/rdesktop/rdesktop.mk | |
parent | bb1caf686c16a1672cfc568de5fc7c68947f3412 (diff) | |
download | buildroot-novena-e2dde9c7cdc2f9ed851acfb7daa858ffa1744246.tar.gz buildroot-novena-e2dde9c7cdc2f9ed851acfb7daa858ffa1744246.zip |
rdesktop package
Diffstat (limited to 'package/rdesktop/rdesktop.mk')
-rw-r--r-- | package/rdesktop/rdesktop.mk | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/package/rdesktop/rdesktop.mk b/package/rdesktop/rdesktop.mk new file mode 100644 index 000000000..6acd28bba --- /dev/null +++ b/package/rdesktop/rdesktop.mk @@ -0,0 +1,60 @@ +############################################################# +# +# 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): + $(WGET) -P $(DL_DIR) $(RDESKTOP_SITE)/$(RDESKTOP_SOURCE) + +$(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) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --with-openssl=$(STAGING_DIR) \ + --sysconfdir=/etc \ + ); + read + touch $(RDESKTOP_DIR)/.configured + +$(RDESKTOP_DIR)/rdesktop: $(RDESKTOP_DIR)/.configured + $(MAKE) CC=$(TARGET_CC) -C $(RDESKTOP_DIR) + +$(RDESKTOP_DIR)/.installed: $(RDESKTOP_DIR)/rdesktop + cp $(RDESKTOP_DIR)/rdesktop $(TARGET_DIR)/usr/bin + touch $(RDESKTOP_DIR)/.installed + +rdesktop: uclibc xorg openssl $(RDESKTOP_DIR)/.installed + +rdesktop-source: $(DL_DIR)/$(RDESKTOP_SOURCE) + +rdesktop-clean: + @if [ -d $(RDESKTOP_DIR)/Makefile ] ; then \ + $(MAKE) -C $(RDESKTOP_DIR) clean ; \ + fi; + +rdesktop-dirclean: + rm -rf $(RDESKTOP_DIR) $(RDESKTOP_DIR) +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_RDESKTOP)),y) +TARGETS+=rdesktop +endif |