Skip to contentSkip to conversation

new package: libphidget

PATCH New Jonathan Ben-Avraham 2 participants 4 messages Aug 27, 2014 – Aug 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 new package: libphidget

---
 package/Config.in                |    1 +
 package/libphidget/Config.in     |   25 +++++++++++++++++++++++++
 package/libphidget/libphidget.mk |   16 ++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 package/libphidget/Config.in
 create mode 100644 package/libphidget/libphidget.mk
package/Config.in +1 -0
index 4520ba6..1088f5a 100644
@@ -676,6 +676,7 @@ menu "Hardware handling"
 	source "package/libsoc/Config.in"
 	source "package/libusb/Config.in"
 	source "package/libusb-compat/Config.in"
+	source "package/libphidget/Config.in"
 	source "package/libv4l/Config.in"
 	source "package/libxkbcommon/Config.in"
 	source "package/mtdev/Config.in"
package/libphidget/Config.in new file +25 -0
new file mode 100644
index 0000000..dcd6854
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_LIBPHIDGET
+	bool "libphidget"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+	select BR2_PACKAGE_LIBUSB
+	help
+	  The libphidget library provides an API for controlling Phidgets
+	  USB devices. The library translates API function calls to libusb
+	  function calls to control attached Phidgets devices that provide
+	  GPIO's, DAC's, accelerometers, servo motors, and other capabilities
+	  either singly or on combo devices.
+
+	  To use libphidget for controlling locally attached devices you
+	  need to set up the userspace USB device tree /dev/bus/usb. See
+	  file udev/99-phidgets.rules.
+
+	  The libphidget library also contains an API for sending commands
+	  to a local or remote phidgetwebservice using HTTP. The
+	  phidgetwebservice then translates HTTP requests to libphidget API
+	  function calls to control locally attached Phidgets devices.
+
+	  http://phidgets.com/
+
+comment "libphidget needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
package/libphidget/libphidget.mk new file +16 -0
new file mode 100644
index 0000000..ee5796e
@@ -0,0 +1,16 @@
+################################################################################
+#
+# libphidget
+#
+################################################################################
+
+LIBPHIDGET_VERSION = 2.1.8.20140319
+LIBPHIDGET_SOURCE = libphidget_$(LIBPHIDGET_VERSION).tar.gz
+LIBPHIDGET_SITE = http://www.phidgets.com/downloads/libraries/
+LIBPHIDGET_DEPENDENCIES = libusb
+LIBPHIDGET_CONF_OPT = --disable-ldconfig
+LIBPHIDGET_INSTALL_STAGING = YES
+LIBPHIDGET_LICENSE = LGPLv3
+LIBPHIDGET_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 2/2 new package: phidgetwebservice

---
 package/Config.in                              |    1 +
 package/phidgetwebservice/Config.in            |   19 +++++++++++++++++++
 package/phidgetwebservice/phidgetwebservice.mk |   14 ++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/phidgetwebservice/Config.in
 create mode 100644 package/phidgetwebservice/phidgetwebservice.mk
package/Config.in +1 -0
index 1088f5a..692fd58 100644
@@ -1039,6 +1039,7 @@ endif
 	source "package/openswan/Config.in"
 	source "package/openvpn/Config.in"
 	source "package/p910nd/Config.in"
+	source "package/phidgetwebservice/Config.in"
 	source "package/portmap/Config.in"
 	source "package/pppd/Config.in"
 	source "package/pptp-linux/Config.in"
package/phidgetwebservice/Config.in new file +19 -0
new file mode 100644
index 0000000..daf22c7
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_PHIDGETWEBSERVICE
+	bool "phidgetwebservice"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb, libphidget
+	select BR2_PACKAGE_LIBPHIDGET
+	help
+          phidgetwebservice (the Phidget WebService) provides an HTTP
+	  front-end to the libphidget device control API. This provides
+	  an alternative to the libphidget C linkage interface for
+	  controlling locally attached Phidgets USB devices and it also
+	  allows you to control Phidget USB devices remotely when the host
+	  running the phidgetwebservice has an exposed network interface.
+ 
+	  The phidgetwebservice client program uses the libphidget HTTP
+	  functions to send commands to the phidgetwebservice.
+
+	  http://phidgets.com/
+
+comment "phidgetwebservice needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/phidgetwebservice/phidgetwebservice.mk new file +14 -0
new file mode 100644
index 0000000..64dfca4
@@ -0,0 +1,14 @@
+################################################################################
+#
+# phidgetwebservice
+#
+################################################################################
+
+PHIDGETWEBSERVICE_VERSION = 2.1.8.20140319
+PHIDGETWEBSERVICE_SOURCE = phidgetwebservice_$(PHIDGETWEBSERVICE_VERSION).tar.gz
+PHIDGETWEBSERVICE_SITE = http://www.phidgets.com/downloads/libraries/
+PHIDGETWEBSERVICE_DEPENDENCIES = libphidget
+PHIDGETWEBSERVICE_LICENSE = LGPLv3
+PHIDGETWEBSERVICE_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH v2 2/2 new package: phidgetwebservice

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jonathan" == Jonathan Ben-Avraham <[email protected]> writes:

---
 package/Config.in                              |    1 +
 package/phidgetwebservice/Config.in            |   19 +++++++++++++++++++
 package/phidgetwebservice/phidgetwebservice.mk |   14 ++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/phidgetwebservice/Config.in
 create mode 100644 package/phidgetwebservice/phidgetwebservice.mk

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH v2 1/2 new package: libphidget

In reply to Jonathan Ben-Avraham
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jonathan" == Jonathan Ben-Avraham <[email protected]> writes:

---
 package/Config.in                |    1 +
 package/libphidget/Config.in     |   25 +++++++++++++++++++++++++
 package/libphidget/libphidget.mk |   16 ++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 package/libphidget/Config.in
 create mode 100644 package/libphidget/libphidget.mk
package/Config.in +0 -0
index 4520ba6..1088f5a 100644

package/Config.in menu "Hardware handling" · line 679

Quoted 4 lines
package/Config.in +1 -0
@@ -676,6 +676,7 @@ menu "Hardware handling"
 	source "package/libsoc/Config.in"
 	source "package/libusb/Config.in"
 	source "package/libusb-compat/Config.in"
+	source "package/libphidget/Config.in"

Config.in entries should be sorted alphabetically.

package/Config.in menu "Hardware handling" · line 682

Quoted 3 lines
package/Config.in +3 -0
+comment "libphidget needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+

Trailing newline here.

Committed with these minor issues fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard