SUMMARY="parted"
DESCRIPTION="
parted partition editor.
"
HOMEPAGE="http://www.gnu.org/software/parted"
SOURCE_URI="git://git.debian.org/git/parted/parted.git"
#CHECKSUM_MD5=""
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT=""

ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86"

PROVIDES="
	parted$secondaryArchSuffix = $portVersion
	cmd:parted$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:git
	cmd:autoconf
	cmd:libtool
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:gperf
	cmd:rsync
	cmd:gettext
	"

#PATCHES="parted.patch"

# TODO: Fix libdl test in configure.ac
BUILD()
{
	./bootstrap
	runConfigure ./configure --disable-dynamic-loading
	make
}

INSTALL()
{
	make install
}
