mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
80 lines
2.1 KiB
Bash
80 lines
2.1 KiB
Bash
SUMMARY="Ladder logic editor, simulator and compiler for 8-bit microcontrollers"
|
|
DESCRIPTION="LDmicro is a ladder logic editor, simulator and compiler for 8-bit microcontrollers. \
|
|
It can generate native code for Atmel AVR and Microchip PIC16 CPUs from a ladder diagram."
|
|
HOMEPAGE="https://github.com/FOSSEE/LDmicroQt"
|
|
COPYRIGHT="2007 Jonathan Westhues"
|
|
LICENSE="GNU GPL v1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/FOSSEE/LDmicroQt/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="68e0469a5c907858289de1ee30ae14b2d13af695daa38f76c95aac1137d89139"
|
|
SOURCE_DIR="LDmicroQt-$portVersion/ldmicro"
|
|
PATCHES="ldmicroqt-$portVersion.patchset"
|
|
ADDITIONAL_FILES="ldmicroqt.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
ldmicroqt$secondaryArchSuffix = $portVersion
|
|
app:LDmicroQt$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:cmake
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -rf $prefix/share
|
|
|
|
mkdir -p $appsDir
|
|
mv $prefix/bin/ldmicro $appsDir/LDmicroQt
|
|
|
|
local APP_SIGNATURE="application/x-vnd.ldmicroqt"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/ldmicroqt.rdef.in > \
|
|
$sourceDir/ldmicroqt.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/ldmicroqt.rdef \
|
|
$appsDir/LDmicroQt
|
|
|
|
addAppDeskbarSymlink $appsDir/LDmicroQt
|
|
}
|