From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package: bsdiff
Date: Fri, 15 Dec 2006 05:57:08 -0800 (PST) [thread overview]
Message-ID: <20061215135708.03BD64858D@busybox.net> (raw)
Author: aldot
Date: 2006-12-15 05:57:07 -0800 (Fri, 15 Dec 2006)
New Revision: 16942
Log:
- Thomas Lundquist added bsdiff
Added:
trunk/buildroot/package/bsdiff/
trunk/buildroot/package/bsdiff/Config.in
trunk/buildroot/package/bsdiff/bsdiff.mk
Changeset:
Added: trunk/buildroot/package/bsdiff/Config.in
===================================================================
--- trunk/buildroot/package/bsdiff/Config.in 2006-12-15 13:39:26 UTC (rev 16941)
+++ trunk/buildroot/package/bsdiff/Config.in 2006-12-15 13:57:07 UTC (rev 16942)
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_BSDIFF
+ bool "bsdiff"
+ default n
+ select BR2_PACKAGE_BZIP2
+ help
+ Binary patch/diff like xdelta but creates smaller diffs.
+ Needs bzip2 support.
+
+ http://www.daemonology.net/bsdiff/
Added: trunk/buildroot/package/bsdiff/bsdiff.mk
===================================================================
--- trunk/buildroot/package/bsdiff/bsdiff.mk 2006-12-15 13:39:26 UTC (rev 16941)
+++ trunk/buildroot/package/bsdiff/bsdiff.mk 2006-12-15 13:57:07 UTC (rev 16942)
@@ -0,0 +1,53 @@
+#############################################################
+#
+# bsdiff
+#
+#############################################################
+BSDIFF_VERSION:=4.3
+BSDIFF_SOURCE:=bsdiff-$(BSDIFF_VERSION).tar.gz
+BSDIFF_SITE:=http://www.daemonology.net/bsdiff
+BSDIFF_DIR:=$(BUILD_DIR)/bsdiff-$(BSDIFF_VERSION)
+BSDIFF_BINARY:=bsdiff
+BSDIFF_TARGET_BINARY:=usr/bin/bsdiff
+BSDIFF_ZCAT=$(ZCAT)
+
+$(DL_DIR)/$(BSDIFF_SOURCE):
+ $(WGET) -P $(DL_DIR) $(BSDIFF_SITE)/$(BSDIFF_SOURCE)
+
+$(BSDIFF_DIR)/.source: $(DL_DIR)/$(BSDIFF_SOURCE)
+ $(BSDIFF_ZCAT) $(DL_DIR)/$(BSDIFF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(BSDIFF_DIR)/.source
+
+$(BSDIFF_DIR)/$(BSDIFF_BINARY): $(BSDIFF_DIR)/.source
+ (cd $(BSDIFF_DIR) ; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
+ $(TARGET_CFLAGS) bsdiff.c -o bsdiff ; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
+ $(TARGET_CFLAGS) bspatch.c -o bspatch ; \
+ )
+
+$(TARGET_DIR)/$(BSDIFF_TARGET_BINARY): $(BSDIFF_DIR)/$(BSDIFF_BINARY)
+ cp -dpf $(BSDIFF_DIR)/bsdiff $(TARGET_DIR)/usr/bin/.
+ cp -dpf $(BSDIFF_DIR)/bspatch $(TARGET_DIR)/usr/bin/.
+
+bsdiff: uclibc bzip2 $(TARGET_DIR)/$(BSDIFF_TARGET_BINARY)
+
+bsdiff-source: $(DL_DIR)/$(BSDIFF_SOURCE)
+
+bsdiff-clean:
+ -rm $(TARGET_DIR)/usr/bin/{bsdiff,bspatch}
+ -rm $(BSDIFF_DIR)/{bsdiff,bspatch}
+
+bsdiff-dirclean:
+ rm -rf $(BSDIFF_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BSDIFF)),y)
+TARGETS+=bsdiff
+endif
reply other threads:[~2006-12-15 13:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061215135708.03BD64858D@busybox.net \
--to=aldot@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox