mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
SUMMARY="Copy data from one file or block device to another with read-error recovery"
|
|
DESCRIPTION="GNU ddrescue is a data recovery tool. \
|
|
It copies data from one file or block device \
|
|
(hard disc, cdrom, etc) to another, \
|
|
trying to rescue the good parts first in case of read errors.
|
|
"
|
|
HOMEPAGE="http://www.gnu.org/software/ddrescue/"
|
|
SRC_URI="http://ftpmirror.gnu.org/ddrescue/ddrescue-1.19.tar.lz"
|
|
CHECKSUM_SHA256="ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8"
|
|
REVISION="1"
|
|
COPYRIGHT="2004-2014 Antonio Diaz Diaz
|
|
"
|
|
LICENSE="GNU GPL v2"
|
|
|
|
ARCHITECTURES="x86 ?x86_64"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
else
|
|
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
ddrescue$secondaryArchSuffix = $portVersion
|
|
cmd:ddrescue$commandSuffix = $portVersion
|
|
cmd:ddrescuelog$commandSuffix = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libgcc_s$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
PATCHES="ddrescue-1.19.patchset"
|
|
|
|
BUILD()
|
|
{
|
|
./configure --prefix=$prefix \
|
|
--bindir=$commandBinDir \
|
|
--datarootdir=$dataRootDir \
|
|
--infodir=$infoDir \
|
|
--mandir=$manDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|