SUMMARY="Binary & source-level backwards compatibility checker"
DESCRIPTION="ABI Compliance Checker (ACC) is a tool for checking backward \
binary and source-level compatibility of a C/C++ library. The tool checks \
header files and shared libraries of old and new versions and analyzes \
changes in API and ABI (ABI=API+compiler ABI) that may break binary and/or \
source compatibility."
HOMEPAGE="https://lvc.github.io/abi-compliance-checker/"
COPYRIGHT="2018 Andrey Ponomarenko's ABI Laboratory"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="https://github.com/lvc/abi-compliance-checker/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="b1e32a484211ec05d7f265ab4d2c1c52dcdb610708cb3f74d8aaeb7fe9685d64"
SOURCE_DIR="abi-compliance-checker-$portVersion"
PATCHES="abi_compliance_checker-$portVersion.patchset"
#ADDITIONAL_FILES="example-descriptors"

ARCHITECTURES="?all"

PROVIDES="
	abi_compliance_checker = $portVersion
	cmd:abi_compliance_checker = $portVersion
	"
REQUIRES="
	haiku
	cmd:perl
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:sed
	cmd:gcc
	cmd:make
	cmd:perl
	"

BUILD()
{
	true
}

INSTALL()
{
	mkdir -p $prefix
	make install prefix=$prefix

	# not sure the examples are really uptodate
	#cp -r $portDir/additional-files/example-descriptors \
	#	$dataDir/abi-compliance-checker
}
