libphidget: new package for controlling Phidgets USB devices
PATCH 1/2 libphidget: new package for controlling Phidgets USB devices
--- package/Config.in | 1 + package/libphidget/Config.in | 25 +++++++++++++++++++++++++ package/libphidget/libphidget.mk | 18 ++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 package/libphidget/Config.in create mode 100644 package/libphidget/libphidget.mk
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" source "package/libv4l/Config.in" source "package/libxkbcommon/Config.in" source "package/mtdev/Config.in"
package/libphidget/Config.in new file +25 -0
@@ -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 +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# 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_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install +LIBPHIDGET_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install +LIBPHIDGET_LICENSE = LGPLv3 +LIBPHIDGET_LICENSE_FILES = COPYING + +$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH 2/2 phidgetwebservice: new package
--- package/Config.in | 1 + package/phidgetwebservice/Config.in | 15 +++++++++++++++ package/phidgetwebservice/phidgetwebservice.mk | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 package/phidgetwebservice/Config.in create mode 100644 package/phidgetwebservice/phidgetwebservice.mk
package/Config.in +1 -0
@@ -677,6 +677,7 @@ menu "Hardware handling" source "package/libusb/Config.in" source "package/libusb-compat/Config.in" source "package/libphidget/Config.in" + source "package/phidgetwebservice/Config.in" source "package/libv4l/Config.in" source "package/libxkbcommon/Config.in" source "package/mtdev/Config.in"
package/phidgetwebservice/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +config BR2_PACKAGE_PHIDGETWEBSERVICE + bool "phidgetwebservice" + depends on 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/
package/phidgetwebservice/phidgetwebservice.mk new file +14 -0
@@ -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
PATCH 2/2 phidgetwebservice: new package
Hi Yonatan,
Quoted 3 lines · Jonathan Ben-Avraham
Signed-off-by Jonathan Ben-Avraham <[email protected]>---
[snip]
package/phidgetwebservice/Config.in line 3
Quoted 9 lines
package/phidgetwebservice/Config.in new file +3
-0@@ -0,0 +1,15 @@ +config BR2_PACKAGE_PHIDGETWEBSERVICE + bool "phidgetwebservice" + depends on BR2_PACKAGE_LIBPHIDGET
For non obvious dependencies the general rule is that you 'select' that dependency. See http://buildroot.net/downloads/manual/manual.html under "Choosing depends on or select". Note that you must also copy here the dependencies of selected packages, in this case threads support.
package/phidgetwebservice/Config.in line 5
Quoted 2 lines
package/phidgetwebservice/Config.in new file +2
-0+ help + phidgetwebservice (the Phidget WebService) provides an HTTP
This line should be indented like the rest, tab + two spaces.
package/phidgetwebservice/Config.in line 15
Quoted 10 lines
package/phidgetwebservice/Config.in new file +10
-0+ 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/
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 2/2 phidgetwebservice: new package
Hi Baruch,
Thanks for the help. I believe that I fixed these issues in v2 of the patch that I submitted an hour ago.
- yba
Quoted 49 lines · Baruch Siach
Date: Tue, 26 Aug 2014 23:47:22 +0300
From: Baruch Siach <[email protected]>
To: Jonathan Ben-Avraham <[email protected]>
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] [PATCH 2/2] phidgetwebservice: new packageHi Yonatan,
Quoted 3 lines · Jonathan Ben-Avraham
Signed-off-by Jonathan Ben-Avraham <[email protected]>---
[snip]
package/phidgetwebservice/Config.in line 3
Quoted 9 lines
package/phidgetwebservice/Config.in new file +3
-0@@ -0,0 +1,15 @@ +config BR2_PACKAGE_PHIDGETWEBSERVICE + bool "phidgetwebservice" + depends on BR2_PACKAGE_LIBPHIDGETFor non obvious dependencies the general rule is that you 'select' that dependency. See http://buildroot.net/downloads/manual/manual.html under "Choosing depends on or select". Note that you must also copy here the dependencies of selected packages, in this case threads support.
package/phidgetwebservice/Config.in line 5
Quoted 2 lines
package/phidgetwebservice/Config.in new file +2
-0+ help + phidgetwebservice (the Phidget WebService) provides an HTTPThis line should be indented like the rest, tab + two spaces.
package/phidgetwebservice/Config.in line 15
Quoted 10 lines
package/phidgetwebservice/Config.in new file +10
-0+ 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/baruch
Signature · 3 lines
9590 8E58 D30D 1660 C349 673D B205 4FC4 B8F5 B7F9 ~. .~ Tk Open Systems
=}-------- Jonathan Ben-Avraham ("yba") ----------ooO--U--Ooo------------{=
mailto:yba at tkos.co.il tel:+972.52.486.3386 http://tkos.co.il skype:benavrhmPATCH 1/2 libphidget: new package for controlling Phidgets USB devices
In reply to Jonathan Ben-AvrahamHi Yonatan,
Quoted 3 lines · Jonathan Ben-Avraham
Signed-off-by Jonathan Ben-Avraham <[email protected]>---
[snip]
Quoted 11 lines
package/libphidget/libphidget.mk new file +4
-0@@ -0,0 +1,18 @@ +################################################################################ +# +# libphidget +#
package/libphidget/libphidget.mk line 14
Quoted 10 lines
package/libphidget/libphidget.mk new file +10
-0+################################################################################ + +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_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install +LIBPHIDGET_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
These two are the default.
baruch
Quoted 4 lines
package/libphidget/libphidget.mk new file +4
-0+LIBPHIDGET_LICENSE = LGPLv3 +LIBPHIDGET_LICENSE_FILES = COPYING + +$(eval $(autotools-package))
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -