Signed-off-by: Christian Gagneraud <[email protected]>
---
 rules/wimax-tools.in   |    8 +++++
 rules/wimax-tools.make |   75 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+), 0 deletions(-)
 create mode 100644 rules/wimax-tools.in
 create mode 100644 rules/wimax-tools.make

diff --git a/rules/wimax-tools.in b/rules/wimax-tools.in
new file mode 100644
index 0000000..e9a7f05
--- /dev/null
+++ b/rules/wimax-tools.in
@@ -0,0 +1,8 @@
+config WIMAX_TOOLS
+       bool
+       select GLIB
+       select LIBNL
+       select KERNEL
+       prompt "WiMAX libs"
+       help
+         WiMAX tools and libraries
diff --git a/rules/wimax-tools.make b/rules/wimax-tools.make
new file mode 100644
index 0000000..997c96b
--- /dev/null
+++ b/rules/wimax-tools.make
@@ -0,0 +1,75 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Christian Gagneraud <[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
+#
+PACKAGES-$(PTXCONF_WIMAX_TOOLS) += wimax-tools
+
+#
+# Paths and names
+#
+WIMAX_TOOLS_NAME       := wimax-tools
+WIMAX_TOOLS_VERSION    := 1.4.5
+WIMAX_TOOLS_MD5                := db63d6c239c2e7a1a3a09921988f5a29
+WIMAX_TOOLS            := $(WIMAX_TOOLS_NAME)-$(WIMAX_TOOLS_VERSION)
+WIMAX_TOOLS_SUFFIX     := tar.gz
+WIMAX_TOOLS_URL                := 
http://www.linuxwimax.org/Download\?action=AttachFile\&do=get\&target=$(WIMAX_TOOLS).$(WIMAX_TOOLS_SUFFIX)
+WIMAX_TOOLS_SOURCE     := $(SRCDIR)/$(WIMAX_TOOLS).$(WIMAX_TOOLS_SUFFIX)
+WIMAX_TOOLS_DIR                := $(BUILDDIR)/$(WIMAX_TOOLS)
+WIMAX_TOOLS_LICENSE    := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+WIMAX_TOOLS_CONF_TOOL  := autoconf
+WIMAX_TOOLS_CONF_OPT +=                                \
+       $(CROSS_AUTOCONF_USR)                   \
+       --with-linux=$(KERNEL_HEADERS_DIR)      \
+       ac_cv_file_$(shell echo $(KERNEL_HEADERS_DIR)/include/linux/wimax.h | 
tr '/.+-' '_')=yes
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/wimax-tools.install:
+       @$(call targetinfo)
+       @$(call world/install, WIMAX_TOOLS)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/wimax-tools.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init,  wimax-tools)
+       @$(call install_fixup, wimax-tools,PRIORITY,optional)
+       @$(call install_fixup, wimax-tools,SECTION,base)
+       @$(call install_fixup, wimax-tools,AUTHOR,"Christian Gagneraud 
<[email protected]>")
+       @$(call install_fixup, wimax-tools,DESCRIPTION,WiMAX tools and 
librairies)
+
+       @$(call install_copy, wimax-tools, 0, 0, 0755, -, /usr/bin/wimaxll)
+       @$(call install_copy, wimax-tools, 0, 0, 0755, -, 
/usr/bin/wimaxll-reset)
+       @$(call install_copy, wimax-tools, 0, 0, 0755, -, 
/usr/bin/wimaxll-rfkill)
+       @$(call install_copy, wimax-tools, 0, 0, 0755, -, 
/usr/bin/wimaxll-wait-for-state-change)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, libwimaxll-i2400m)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, libwimaxll)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, 
wimax-tools/plugins/wimaxll-pl-reset)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, 
wimax-tools/plugins/wimaxll-pl-rfkill)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, 
wimax-tools/plugins/wimaxll-pl-state-get)
+       @$(call install_lib, wimax-tools, 0, 0, 0755, 
wimax-tools/plugins/wimaxll-pl-wfsc)
+
+       @$(call install_finish, wimax-tools)
+
+       @$(call touch)
+
-- 
1.7.4.1


-- 
ptxdist mailing list
[email protected]

Reply via email to