Files
haikuports/app-mobilephone/dfu-util/dfu_util-0.9.recipe
2017-10-13 19:39:19 +02:00

51 lines
1.2 KiB
Bash

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
}