SUMMARY="CCD/IMG CloneCD image to ISO format converter"
DESCRIPTION="ccd2iso converts CCD/IMG CloneCD images to ISO format."
HOMEPAGE="https://sourceforge.net/projects/ccd2iso/"
COPYRIGHT="2005-2006 Danny Kurniawan, Kerry Harris"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://downloads.sourceforge.net/ccd2iso/ccd2iso-$portVersion.tar.gz"
CHECKSUM_SHA256="f874b8fe26112db2cdb016d54a9f69cf286387fbd0c8a55882225f78e20700fc"
SOURCE_URI_2="https://github.com/paulproteus/ccd2iso-debian/raw/278c8c2f7d87a7778983d428bf8a7aa5bc95b692/debian/ccd2iso.1#noarchive"
CHECKSUM_SHA256_2="d780c6ad7698967ec52f1e4bdc149774acc8174e88b0f4ed6212d445d2e850b6"
SOURCE_FILENAME_2="ccd2iso.1-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	ccd2iso = $portVersion
	cmd:ccd2iso = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	./configure --prefix=$prefix
	make $jobArgs
}

INSTALL()
{
	install -d $binDir $manDir/man1
	install -t $binDir -s src/ccd2iso
	install -T $sourceDir2/$SOURCE_FILENAME_2 -m 444 $manDir/man1/ccd2iso.1
}
