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.
62 lines
1.3 KiB
Bash
62 lines
1.3 KiB
Bash
SUMMARY="A binary diff tool implementing VCDIFF"
|
|
DESCRIPTION="Xdelta is a tool and library for differential compression. Xdelta \
|
|
release version 3 supports VCDIFF encoding and decoding."
|
|
HOMEPAGE="http://xdelta.org/"
|
|
COPYRIGHT="2001-2015 Josh MacDonald"
|
|
LICENSE="Apache v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/jmacd/xdelta/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7515cf5378fca287a57f4e2fee1094aabc79569cfe60d91e06021a8fd7bae29d"
|
|
SOURCE_FILENAME="xdelta-$portVersion.tar.gz"
|
|
SOURCE_DIR="xdelta-$portVersion/xdelta3"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
xdelta$secondaryArchSuffix = $portVersion
|
|
cmd:xdelta3$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:liblzma$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf --install
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
xdelta3 test || true
|
|
}
|