dfu_util: add recipe for version 0.9.

This commit is contained in:
Jerome Duval
2017-10-13 19:03:43 +02:00
parent cf123ac56c
commit 1f06446ab6
2 changed files with 82 additions and 0 deletions

View File

@@ -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.sourceforge.net"
COPYRIGHT="2010-2012 Stefan Schmidt"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="${HOMEPAGE}/releases/dfu-util-$portVersion.tar.gz"
CHECKSUM_SHA256="36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"
SOURCE_DIR="dfu-util-$portVersion"
PATCHES="dfu_util-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 x86_64"
PROVIDES="
dfu_util = $portVersion
cmd:dfu_suffix
cmd:dfu_prefix
cmd:dfu_util
"
REQUIRES="
haiku
lib:libusb_1.0
"
BUILD_REQUIRES="
devel:libusb_1.0
"
BUILD_PREREQUIRES="
haiku_devel
cmd:awk
cmd:gcc
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
CFLAGS=-D_BSD_SOURCE runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}