Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/libusb
Date: Tue, 21 Aug 2007 11:30:56 -0700 (PDT)	[thread overview]
Message-ID: <20070821183056.11AA8A5D3C@busybox.net> (raw)

Author: aldot
Date: 2007-08-21 11:30:54 -0700 (Tue, 21 Aug 2007)
New Revision: 19625

Log:
- pull in patches from debian.


Modified:
   trunk/buildroot/package/libusb/libusb.mk


Changeset:
Modified: trunk/buildroot/package/libusb/libusb.mk
===================================================================
--- trunk/buildroot/package/libusb/libusb.mk	2007-08-21 17:56:47 UTC (rev 19624)
+++ trunk/buildroot/package/libusb/libusb.mk	2007-08-21 18:30:54 UTC (rev 19625)
@@ -4,21 +4,31 @@
 #
 #############################################################
 LIBUSB_VERSION:=0.1.12
-LIBUSB_SOURCE:=libusb-$(LIBUSB_VERSION).tar.gz
-LIBUSB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libusb/
+LIBUSB_PATCH_FILE:=libusb_$(LIBUSB_VERSION)-7.diff.gz
+LIBUSB_SOURCE:=libusb_$(LIBUSB_VERSION).orig.tar.gz
+#LIBUSB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libusb/
+LIBUSB_SITE:=http://ftp.debian.org/debian/pool/main/libu/libusb
 LIBUSB_DIR:=$(BUILD_DIR)/libusb-$(LIBUSB_VERSION)
 LIBUSB_CAT:=$(ZCAT)
 LIBUSB_BINARY:=usr/lib/libusb.so
 
-$(DL_DIR)/$(LIBUSB_SOURCE):
+ifneq ($(LIBUSB_PATCH_FILE),)
+LIBUSB_PATCH=$(DL_DIR)/$(LIBUSB_PATCH_FILE)
+$(LIBUSB_PATCH):
+	$(WGET) -P $(DL_DIR) $(LIBUSB_SITE)/$(LIBUSB_PATCH_FILE)
+endif
+$(DL_DIR)/$(LIBUSB_SOURCE): $(LIBUSB_PATCH)
 	$(WGET) -P $(DL_DIR) $(LIBUSB_SITE)/$(LIBUSB_SOURCE)
 
-libusb-source: $(DL_DIR)/$(LIBUSB_SOURCE)
+libusb-source: $(DL_DIR)/$(LIBUSB_SOURCE) $(LIBUSB_PATCH)
 
 libusb-unpacked: $(LIBUSB_DIR)/.unpacked
 $(LIBUSB_DIR)/.unpacked: $(DL_DIR)/$(LIBUSB_SOURCE)
 	$(LIBUSB_CAT) $(DL_DIR)/$(LIBUSB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-	touch $(LIBUSB_DIR)/.unpacked
+ifneq ($(LIBUSB_PATCH_FILE),)
+	(cd $(LIBUSB_DIR) && $(LIBUSB_CAT) $(LIBUSB_PATCH) | patch -p1)
+endif
+	touch $@
 
 $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
 	(cd $(LIBUSB_DIR); rm -rf config.cache; \
@@ -33,15 +43,15 @@
 		--disable-debug \
 		--disable-build-docs \
 	);
-	touch $(LIBUSB_DIR)/.configured
+	touch $@
 
 $(STAGING_DIR)/lib/libusb.so: $(LIBUSB_DIR)/.configured
-	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBUSB_DIR)
+	$(MAKE) -C $(LIBUSB_DIR)
 	$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install
 
 $(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
 	mkdir -p $(TARGET_DIR)/usr/lib
-	cp -a $(STAGING_DIR)/lib/libusb* $(TARGET_DIR)/usr/lib
+	cp -dpf $(STAGING_DIR)/lib/libusb* $(TARGET_DIR)/usr/lib
 	rm -f $(TARGET_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib/*.la
 
 libusb: uclibc $(TARGET_DIR)/$(LIBUSB_BINARY)
@@ -57,8 +67,6 @@
 libusb-dirclean:
 	rm -rf $(LIBUSB_DIR)
 
-.PHONY: libusb
-
 #############################################################
 #
 # Toplevel Makefile options

             reply	other threads:[~2007-08-21 18:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 18:30 aldot at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-05 10:22 [Buildroot] svn commit: trunk/buildroot/package/libusb jacmet at uclibc.org
2008-12-05 10:42 ` Gaye Abdoulaye Walsimou
2008-12-08 21:08   ` Peter Korsgaard
2008-12-09  0:46     ` Hamish Moffatt
2008-06-13  8:47 jacmet at uclibc.org
2008-06-13  8:45 jacmet at uclibc.org
2008-06-13 10:02 ` Hamish Moffatt
2008-06-13 10:18   ` Peter Korsgaard
2008-06-13  5:53 hamish at uclibc.org
2008-06-13  6:25 ` Hamish Moffatt
2008-06-13  8:07   ` Matthew Dombroski
2008-06-13  9:58     ` Hamish Moffatt
2008-06-13 10:11       ` Matthew Dombroski
2008-05-28  6:54 hamish at uclibc.org
2008-05-28  2:12 hamish at uclibc.org
2008-03-27 13:00 jacmet at uclibc.org
2008-02-18 14:30 sjhill at uclibc.org
2008-02-15 14:06 jacmet at uclibc.org
2007-11-09  9:30 vanokuten at uclibc.org
2007-11-09  9:26 vanokuten at uclibc.org
2007-09-25 12:54 ulf at uclibc.org
2007-09-20  9:35 aldot at uclibc.org
2007-08-31 12:04 aldot at uclibc.org
2007-07-16  9:45 ulf at uclibc.org
2007-05-07  4:00 sjhill at uclibc.org
2007-05-07  9:41 ` Assen Stoyanov

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=20070821183056.11AA8A5D3C@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