mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
75 lines
1.6 KiB
Bash
75 lines
1.6 KiB
Bash
SUMMARY="Qt based cross-platform canbus tool"
|
|
DESCRIPTION="SavvyCAN is a cross-platform tool to capture, analyze, and \
|
|
reverse engineer CAN bus data."
|
|
HOMEPAGE="https://savvycan.com/"
|
|
COPYRIGHT="
|
|
2015-2021 EVTV and Collin Kidder
|
|
"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/collin80/SavvyCAN/archive/refs/tags/$portVersion.tar.gz"
|
|
SOURCE_DIR="SavvyCAN-$portVersion"
|
|
CHECKSUM_SHA256="347c6bf143ba09e6002068f7484d13179f54bef4a077980eafd4a3c06f0e18bf"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
savvycan$secondaryArchSuffix = $portVersion
|
|
app:SavvyCAN = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt5Concurrent$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Test$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Concurrent$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Test$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:g++
|
|
cmd:make
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build ; cd build
|
|
qmake ..
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
|
|
mkdir -p $appsDir/SavvyCAN
|
|
mkdir -p $appsDir/SavvyCAN/help
|
|
|
|
cp SavvyCAN $appsDir/SavvyCAN/SavvyCAN
|
|
cp -R ../help/* $appsDir/SavvyCAN/help
|
|
|
|
addAppDeskbarSymlink $appsDir/SavvyCAN/SavvyCAN
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|