mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
SUMMARY="ESP flashing utility"
|
|
DESCRIPTION="esputil is a command line tool for managing Espressif devices. It is a replacement \
|
|
for esptool.py. esputil is part of https://github.com/cpq/mdk. It is written in C and is \
|
|
available as a no-dependency static binary for Mac, Linux, Windows (and now Haiku :-P)"
|
|
HOMEPAGE="https://github.com/cpq/esputil"
|
|
COPYRIGHT="2021-2022 Cesanta"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/cpq/esputil/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c717188885df6759f3a7a239aa72addcbc7dbf7d6a7af5161530cbd6c38cb5d8"
|
|
PATCHES="esputil-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
commandSuffix=
|
|
fi
|
|
|
|
PROVIDES="
|
|
esputil$secondaryArchSuffix = $portVersion
|
|
cmd:esputil$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
EXTRA_CFLAGS=-lnetwork make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $commandBinDir
|
|
cp -a esputil $commandBinDir
|
|
}
|