From e7f5f891c792f1452088f24c72e3d26aa8ea9c01 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 10 Aug 2014 16:36:21 +0200 Subject: [PATCH] Add recipe for dfu-util. * Used to upgrade the firmware in OpenMoko devices, Sony LiveView, and other places. --- app-mobilephone/dfu-util/dfu_util-0.7.recipe | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 app-mobilephone/dfu-util/dfu_util-0.7.recipe diff --git a/app-mobilephone/dfu-util/dfu_util-0.7.recipe b/app-mobilephone/dfu-util/dfu_util-0.7.recipe new file mode 100644 index 000000000..6346e745f --- /dev/null +++ b/app-mobilephone/dfu-util/dfu_util-0.7.recipe @@ -0,0 +1,50 @@ +SUMMARY="Device Firmware Upgrade Utilities" +DESCRIPTION="dfu-util is a host side implementation of the DFU 1.0 and DFU 1.1 \ +specifications of the USB forum. DFU is intended to download and upload \ +firmware to/from devices connected over USB. It ranges from small devices like \ +micro-controller boards to mobile phones. Using dfu-util you can download \ +firmware to your DFU-enabled device or upload firmware from it. dfu-util has \ +been tested with the Openmoko Neo1973 and Freerunner and many other devices." +HOMEPAGE="http://dfu-util.gnumonks.org" +ARCHITECTURES="x86_gcc2" +REVISION="1" +LICENSE="GNU GPL v2" +COPYRIGHT="2010-2012 Stefan Schmidt" + +SRC_URI="${HOMEPAGE}/releases/dfu-util-$portVersion.tar.gz" +CHECKSUM_SHA256="f52a2a5489fbf9f3204a6ada05e0b47ee322e19d81c712e0c58a332d80ec3eab" +SOURCE_DIR="dfu-util-$portVersion" + +PROVIDES=" + dfu_util = $portVersion + cmd:dfu_suffix + cmd:dfu_util +" + +REQUIRES=" + haiku >= $haikuVersion + lib:libusb_1.0 +" + +BUILD_REQUIRES=" + devel:libusb_1.0 +" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:awk + cmd:gcc + cmd:make + cmd:pkg_config +" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install +}