mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
FWIW, this release passes all tests on all available arches: ********** TEST SUMMARY * Total testcases: 1676 * PASS: 1676 * FAIL: 0 * Bad configuration: 0 * Strange test result: 0 **********
83 lines
2.1 KiB
Bash
83 lines
2.1 KiB
Bash
SUMMARY="The Device Tree Compiler"
|
|
DESCRIPTION="The Device Tree Compiler (DTC) is the toolchain for building \
|
|
device tree source files (*.dts) into the binary format (*.dtb)."
|
|
HOMEPAGE="https://git.kernel.org/cgit/utils/dtc/dtc.git"
|
|
COPYRIGHT="2005 David Gibson, IBM Corporation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.kernel.org/pub/software/utils/dtc/dtc-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="382302bfcc3c40734be80ac620983971d911ec4cde798f551873f3eb008c7b7e"
|
|
PATCHES="dtc-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion=$portVersion
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
dtc$secondaryArchSuffix = $portVersion
|
|
cmd:convert_dtsv0$commandSuffix = $portVersion
|
|
cmd:dtc$commandSuffix = $portVersion
|
|
cmd:dtdiff$commandSuffix = $portVersion
|
|
cmd:fdtdump$commandSuffix = $portVersion
|
|
cmd:fdtget$commandSuffix = $portVersion
|
|
cmd:fdtoverlay$commandSuffix = $portVersion
|
|
cmd:fdtput$commandSuffix = $portVersion
|
|
lib:libfdt$secondaryArchSuffix = $libVersionCompat
|
|
lib:libfdt_$portVersion$secondaryArchSuffix
|
|
devel:libfdt$secondaryArchSuffix = $libVersionCompat
|
|
devel:libfdt_$portVersion$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison >= 2.5
|
|
cmd:cmp
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage dtc$secondaryArchSuffix \
|
|
"$commandBinDir"/convert-dtsv0 \
|
|
"$commandBinDir"/dtc \
|
|
"$commandBinDir"/fdtdump \
|
|
"$commandBinDir"/fdtget \
|
|
"$commandBinDir"/fdtoverlay \
|
|
"$commandBinDir"/fdtput \
|
|
"$libDir"/libfdt-$portVersion.so
|
|
|
|
BUILD()
|
|
{
|
|
make PREFIX=$prefix $jobArgs NO_PYTHON=TRUE
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install PREFIX="$prefix" BINDIR="$commandBinDir" \
|
|
INCLUDEDIR="$includeDir" LIBDIR="$libDir" NO_PYTHON=1
|
|
|
|
prepareInstalledDevelLibs libfdt
|
|
|
|
ln -r -s "$libDir"/libfdt-$portVersion.so "$developLibDir"
|
|
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|