From: Carsten Schlote <[email protected]>

This local build is required for other local build tools.
See follow up patches.

Signed-off-by: Carsten Schlote <[email protected]>
---
 rules/host-libusb-compat.in   |    8 ++++
 rules/host-libusb-compat.make |   86 +++++++++++++++++++++++++++++++++++++++++
 rules/host-libusb.in          |    8 ++++
 rules/host-libusb.make        |   86 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 188 insertions(+), 0 deletions(-)
 create mode 100644 rules/host-libusb-compat.in
 create mode 100644 rules/host-libusb-compat.make
 create mode 100644 rules/host-libusb.in
 create mode 100644 rules/host-libusb.make

diff --git a/rules/host-libusb-compat.in b/rules/host-libusb-compat.in
new file mode 100644
index 0000000..504b679
--- /dev/null
+++ b/rules/host-libusb-compat.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBUSB_COMPAT
+       tristate
+       select HOST_LIBUSB
+       prompt "libusb-compat"
+       help
+         FIXME
diff --git a/rules/host-libusb-compat.make b/rules/host-libusb-compat.make
new file mode 100644
index 0000000..b679b23
--- /dev/null
+++ b/rules/host-libusb-compat.make
@@ -0,0 +1,86 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBUSB_COMPAT) += host-libusb-compat
+
+#
+# Paths and names
+#
+HOST_LIBUSB_COMPAT_DIR = $(HOST_BUILDDIR)/$(LIBUSB_COMPAT)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libusb-compat.get: $(STATEDIR)/libusb-compat.get
+       @$(call targetinfo)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libusb-compat.extract:
+       @$(call targetinfo)
+       @$(call clean, $(HOST_LIBUSB_COMPAT_DIR))
+       @$(call extract, LIBUSB_COMPAT, $(HOST_BUILDDIR))
+       @$(call patchin, LIBUSB_COMPAT, $(HOST_LIBUSB_COMPAT_DIR))
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_LIBUSB_COMPAT_PATH        := PATH=$(HOST_PATH)
+HOST_LIBUSB_COMPAT_ENV         := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_LIBUSB_COMPAT_AUTOCONF    := $(HOST_AUTOCONF)
+
+#$(STATEDIR)/host-libusb-compat.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(HOST_LIBUSB_COMPAT_DIR)/config.cache)
+#      cd $(HOST_LIBUSB_COMPAT_DIR) && \
+#              $(HOST_LIBUSB_COMPAT_PATH) $(HOST_LIBUSB_COMPAT_ENV) \
+#              ./configure $(HOST_LIBUSB_COMPAT_AUTOCONF)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-libusb-compat.compile:
+#      @$(call targetinfo)
+#      cd $(HOST_LIBUSB_COMPAT_DIR) && $(HOST_LIBUSB_COMPAT_PATH) $(MAKE) 
$(PARALLELMFLAGS)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-libusb-compat.install:
+#      @$(call targetinfo)
+#      @$(call install, HOST_LIBUSB_COMPAT)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-libusb-compat_clean:
+       rm -rf $(STATEDIR)/host-libusb-compat.*
+       rm -rf $(HOST_LIBUSB_COMPAT_DIR)
+
+# vim: syntax=make
diff --git a/rules/host-libusb.in b/rules/host-libusb.in
new file mode 100644
index 0000000..de0be5b
--- /dev/null
+++ b/rules/host-libusb.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBUSB
+       tristate
+       prompt "libusb"
+       help
+         Library for programming USB applications without the knowledge of 
+         Linux kernel internals. 
diff --git a/rules/host-libusb.make b/rules/host-libusb.make
new file mode 100644
index 0000000..e7ec89c
--- /dev/null
+++ b/rules/host-libusb.make
@@ -0,0 +1,86 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Rumpelfurz
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBUSB) += host-libusb
+
+#
+# Paths and names
+#
+HOST_LIBUSB_DIR        = $(HOST_BUILDDIR)/$(LIBUSB)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libusb.get: $(STATEDIR)/libusb.get
+       @$(call targetinfo)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libusb.extract:
+       @$(call targetinfo)
+       @$(call clean, $(HOST_LIBUSB_DIR))
+       @$(call extract, LIBUSB, $(HOST_BUILDDIR))
+       @$(call patchin, LIBUSB, $(HOST_LIBUSB_DIR))
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_LIBUSB_PATH       := PATH=$(HOST_PATH)
+HOST_LIBUSB_ENV        := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_LIBUSB_AUTOCONF   := $(HOST_AUTOCONF)
+
+#$(STATEDIR)/host-libusb.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(HOST_LIBUSB_DIR)/config.cache)
+#      cd $(HOST_LIBUSB_DIR) && \
+#              $(HOST_LIBUSB_PATH) $(HOST_LIBUSB_ENV) \
+#              ./configure $(HOST_LIBUSB_AUTOCONF)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-libusb.compile:
+#      @$(call targetinfo)
+#      cd $(HOST_LIBUSB_DIR) && $(HOST_LIBUSB_PATH) $(MAKE) $(PARALLELMFLAGS)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libusb.install:
+       @$(call targetinfo)
+       @$(call install, HOST_LIBUSB,,h)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-libusb_clean:
+       rm -rf $(STATEDIR)/host-libusb.*
+       rm -rf $(HOST_LIBUSB_DIR)
+
+# vim: syntax=make
-- 
1.6.5.6.gb3118


--
ptxdist mailing list
[email protected]

Reply via email to