0
0
Fork 0
haikuports/app-misc/jigdo/jigdo-0.7.3.recipe

74 lines
1.9 KiB
Bash

SUMMARY="A tool to ease the distribution of very large files"
DESCRIPTION="Jigsaw Download, or short jigdo, is a tool designed to ease the \
distribution of very large files over the internet, for example CD or DVD \
images. Its aim is to make downloading the images as easy for users as a click \
on a direct download link in a browser, while avoiding all the problems that \
server administrators have with hosting such large files."
HOMEPAGE="http://atterer.org/jigdo/"
COPYRIGHT="2001-2006 Richard Atterer"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://atterer.org/sites/atterer/files/2009-08/jigdo/jigdo-$portVersion.tar.bz2"
CHECKSUM_SHA256="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0"
PATCHES="jigdo-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]
then
commandBinDir=$prefix/bin
commandSuffix=
fi
PROVIDES="
jigdo$secondaryArchSuffix = $portVersion
cmd:jigdo_file$commandSuffix = $portVersion
cmd:jigdo_lite$commandSuffix = $portVersion
cmd:jigdo_mirror$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:wget
lib:libbz2$secondaryArchSuffix
lib:libdb$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libdb$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage jigdo$secondaryArchSuffix \
$commandBinDir/jigdo-file
BUILD()
{
runConfigure --omit-dirs "binDir docDir dataRootDir" ./configure \
--bindir $commandBinDir --without-gtk
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check
}