Files
haikuports/dev-embedded/lm4tools/lm4tools-0.1.3.recipe
Adrien Destugues b5f26fc09c lm4tools: fix build.
* Not sure what I was trying to do here but it removes the default
cflags and as a result libusb is not found.
2014-08-23 16:19:34 +02:00

59 lines
1.4 KiB
Plaintext

SUMMARY="Some tools which enable multi-platform development on the TI Stellaris Launchpad boards."
DESCRIPTION="
Some tools which enable multi-platform development on the TI Stellaris
Launchpad boards. The Stellaris Launchpad is a low cost development board
created by Texas Instruments that comes with an ARM Cortex-M4F processor.
"
HOMEPAGE="https://github.com/utzig/lm4tools"
LICENSE="
GNU GPL v2
"
COPYRIGHT="
2012 Fabio Utzig <fabio@utzig.net>
2012 Peter Stuge <peter@stuge.se>
"
SRC_URI="
git+https://github.com/utzig/lm4tools.git#1cfd813779b9eb717b15b0a1814bde8338899ff9
"
REVISION="1"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lm4tools = $portVersion
cmd:lm4flash$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libusb_1.0$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libusb_1.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cd lm4flash
make $jobArgs
}
INSTALL()
{
cd lm4flash
mkdir -p $binDir
cp lm4flash $binDir
}