SUMMARY="A module player for Unix"
DESCRIPTION="mikmod supports many formats, including mod, s3m, it, and xm."
HOMEPAGE="http://mikmod.sourceforge.net"
COPYRIGHT="1998-2017 Jean-Paul Mikkers, Jake Stine, Steve McIntyre,
Frank Loemker, Andrew Zabolotny."
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://sf.net/projects/mikmod/files/mikmod/$portVersion/mikmod-$portVersion.tar.gz"
CHECKSUM_SHA256="dbb01bc36797ce25ffcab2b3bf625537b85b42534344e1808236ca612fbaa4cc"

ARCHITECTURES="all"

PROVIDES="
	mikmod = $portVersion
	cmd:mikmod
	"
REQUIRES="
	haiku
	lib:libmikmod
	lib:libncurses
	lib:libSDL
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libmikmod
	devel:libncurses
	devel:libSDL
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:pkg_config
	"

BUILD()
{
	autoreconf -vfi
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}
