Add librsync port

Loosely based on work by: Vladislav Dzhidzho <dzhidzhoev@gmail.com>

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu
2014-12-21 23:06:53 +00:00
parent 5292799b7f
commit 90bdfe257d

View File

@@ -0,0 +1,94 @@
SUMMARY="Free implementation of rsync remote-delta algorithm"
DESCRIPTION="librsync is a free software library that implements the \
rsync remote-delta algorithm. This algorithm allows efficient remote \
updates of a file, without requiring the old and new versions to \
both be presentat the sending end. The library uses a \"streaming\" \
design similar to that of zlib with the aim of allowing it to be embedded \
into many different applications."
HOMEPAGE="http://librsync.sourcefrog.net"
GIT_HASH='ad8d065bfd'
SRC_URI="git://github.com/librsync/librsync.git#$GIT_HASH"
#CHECKSUM_SHA256=""
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1995 Patrick Powell <papowell@astart.com>
1996-1999 Andrew Tridgell <tridge@samba.org>
1996 Paul Mackerras
1999-2014 Martin Pool <mbp@sourcefrog.net>
2002-2003 Donovan Baarda <abo@minkirri.apana.org.au>
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libpopt$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libpopt$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:gawk
cmd:grep
cmd:libtoolize
cmd:make
cmd:perl
cmd:sed
cmd:which
"
PROVIDES="
$portName = $portVersion
cmd:rdiff$secondaryArchSuffix = $portVersion
lib:librsync$secondaryArchSuffix = 1.0.2 compat >= 1
"
PATCH()
{
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac
}
BUILD()
{
mkdir -p m4
autoreconf -fi
runConfigure ./configure \
--enable-shared
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs librsync
packageEntries devel \
$developDir \
$manDir/man3
}
TEST()
{
make check
}
PROVIDES_devel="
${portName}_devel = $portVersion
devel:librsync$secondaryArchSuffix = 1.0.2 compat >= 1
"
REQUIRES_devel="
librsync$secondaryArchSuffix == $portVersion base
"