1SUMMARY="Binary & source-level backwards compatibility checker"
2DESCRIPTION="
3ABI Compliance Checker (ACC) is a tool for checking backward binary and \
4source-level compatibility of aC/C++ library.  The tool checks header files \
5and shared libraries of old and new versions and analyzes changes in API and \
6ABI (ABI=API+compiler ABI) that may break binary and/or source compatibility."
7HOMEPAGE="https://lvc.github.io/abi-compliance-checker/"
8COPYRIGHT="2009-2010 The Linux Foundation
9	2009-2011 Institute for System Programming, RAS
10	2011-2012 Nokia Corporation and/or its subsidiary(-ies)
11	2011-2012 ROSA Laboratory"
12LICENSE="GNU GPL v2"
13REVISION="2"
14SOURCE_URI="https://github.com/downloads/lvc/abi-compliance-checker/abi-compliance-checker-1.98.3.tar.gz"
15CHECKSUM_SHA256="d397530027ec781d53d80287a77f18a872b35720fbb1e559e0bda7e715607013"
16SOURCE_DIR="abi-compliance-checker-1.98.3"
17ADDITIONAL_FILES="example-descriptors"
18
19ARCHITECTURES="?all"
20
21PROVIDES="
22	abi_compliance_checker = $portVersion
23	"
24REQUIRES="
25	haiku
26	"
27
28BUILD_REQUIRES="
29	haiku_devel
30	"
31BUILD_PREREQUIRES="
32	perl
33	cmd:gcc
34	cmd:make
35	cmd:sed
36	"
37
38BUILD()
39{
40	sed -i 's/linux|freebsd|openbsd|netbsd/linux|freebsd|openbsd|netbsd|haiku/' Makefile.pl
41	sed -i 's/$PREFIX\/share\/$TOOL_SNAME/$PREFIX\/data\/$TOOL_SNAME/' Makefile.pl
42	sed -i 's/..\/share\/$TOOL_SNAME/..\/data\/$TOOL_SNAME/' Makefile.pl
43}
44
45INSTALL()
46{
47# TODO: Need to figure out what goes where, as this isn't working
48#	mkdir -p $prefix
49#	perl Makefile.pl -install $PREFIX=$prefix
50#	cp -r $portDir/additional-files/example-descriptors \
51#		$dataDir/abi-compliance-checker
52	:
53}
54