summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhschang <chang@dev3>2013-02-05 09:54:19 (GMT)
committerhschang <chang@dev3>2013-02-06 07:03:39 (GMT)
commit4538226f9c1f6217772b4c50474af6890074b5d5 (patch)
treef035c56861d711c3b2664ffdf5fedbba04c4f525
parent443bc0960600fc2df0eb4d33e24ab2ef004da04d (diff)
sispmctl: initial recipe (3.1)
-rw-r--r--meta-openvuplus/recipes-extended/sispmctl/sispmctl-3.1/libusb-use-pkgconfig.patch34
-rw-r--r--meta-openvuplus/recipes-extended/sispmctl/sispmctl_3.1.bb15
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-openvuplus/recipes-extended/sispmctl/sispmctl-3.1/libusb-use-pkgconfig.patch b/meta-openvuplus/recipes-extended/sispmctl/sispmctl-3.1/libusb-use-pkgconfig.patch
new file mode 100644
index 0000000..73f4021
--- /dev/null
+++ b/meta-openvuplus/recipes-extended/sispmctl/sispmctl-3.1/libusb-use-pkgconfig.patch
@@ -0,0 +1,34 @@
+--- sispmctl-3.1/configure.in.orig 2012-07-31 15:14:56.940130593 +0200
++++ sispmctl-3.1/configure.in 2012-07-31 15:16:43.020133308 +0200
+@@ -26,28 +26,9 @@
+
+ # Checks for libraries.
+ dnl check for libusb-config
+-AC_PATH_PROG(HAVELIBUSB, libusb-config, $PATH)
+-
+-if test -e "$HAVELIBUSB"; then
+- dnl LIBUSB_CFLAGS=`$HAVELIBUSB --cflags`
+- LIBUSB_LIBS=`$HAVELIBUSB --libs`
+- CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
+- LIBS="$LIBS $LIBUSB_LIBS"
+-else
+- AC_MSG_ERROR([*** libusb-config not found. You need a working libusb installation. Version >=0.1.7])
+-fi
+-
+-dnl check for version of libusb
+-AC_MSG_CHECKING([if libusb version is >= 0.1.9])
+-libusb_version_needed="1009"
+-libusb_version=`$HAVELIBUSB --version | sed -e "s/libusb //" | awk 'BEGIN { FS = "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'`
+-
+-if test $libusb_version -lt $libusb_version_needed; then
+- AC_MSG_RESULT(no)
+- AC_MSG_ERROR([*** libusb is too old ($libusb_version). You need a libusb installation newer or equal to 0.1.9.])
+-else
+- AC_MSG_RESULT(yes)
+-fi
++PKG_CHECK_MODULES(LIBUSB, libusb)
++CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
++LIBS="$LIBS $LIBUSB_LIBS"
+
+ # Checks for header files.
+ AC_HEADER_STDC
diff --git a/meta-openvuplus/recipes-extended/sispmctl/sispmctl_3.1.bb b/meta-openvuplus/recipes-extended/sispmctl/sispmctl_3.1.bb
new file mode 100644
index 0000000..2effefe
--- /dev/null
+++ b/meta-openvuplus/recipes-extended/sispmctl/sispmctl_3.1.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Control Gembird SIS-PM programmable power outlet strips"
+AUTHOR = "Mondrian Nuessle <nuessle@uni-mannheim.de>"
+HOMEPAGE = "http://sispmctl.sourceforge.net/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+DEPENDS = "libusb-compat"
+
+SRC_URI = "http://downloads.sourceforge.net/${PN}/${P}.tar.gz \
+ file://libusb-use-pkgconfig.patch"
+SRC_URI[md5sum] = "24693cae30d77c957f34cfb2c8159661"
+SRC_URI[sha256sum] = "e9a99cc81ef0a93f3484e5093efd14d93cc967221fcd22c151f0bea32eb91da7"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-webless"