SUMMARY="AmigaGuide to HTML converter"
DESCRIPTION="AmigaGuide to HTML file converter, with lots of features including:
* 100% C, no compiled ARexx stuff or anything like that.
* Source code is included, under GNU General Public Licence.
* Converts any AmigaGuide compliant documentation into a multi or single-file \
HTML 4.01 Transitional document (UNIX and MS-DOS compliant)
* Can link correctly to external AmigaGuides
* Supports Amigaguide @macros
* Fully supports @next, @prev, @toc, @help and @index command (e.g. for \
TexInfo based guide files)
* Supports font style (@{B},...) and colour (@{FG ...}) commands, with CSS \
style sheet support and configurable colours
* Detects Internet (http, https, ftp, mailto, ...) links
* Detects E-Mail addresses
* Navigation bar with CONTENTS, INDEX, HELP, RETRACE, NEXT, PREV and HOME \
buttons (also as footer if you like)
* Navigation titles freely changeable. You can also insert images! (A free \
set of images will automatically be generated.)
* Navigation bar can be switched off, and/or you can have a Site Navigation \
Bar (supported by Mozila)
* The tag is changeable, and you can add header/footer text to every page
* @WORDWRAP and @SMARTWRAP guides convert correctly
* MS-DOS file suffix is generated optionally (.htm)
* Lots more!"
HOMEPAGE="https://github.com/pulkomandy/guideml"
COPYRIGHT="1997 Richard Koerber, 2001-2008 Chris Young, \
2013-2017 Adrien Destugues"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/pulkomandy/guideml/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="6ce5d91faa389feedf570a94db84a3c64790ef57980dd01045e113d720e844e5"
SOURCE_DIR="guideml-3.15.2"

ARCHITECTURES="?all x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

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

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs
	./guideml FILE=GuideML.guide SF
}

INSTALL()
{
	mkdir -p $binDir
	mkdir -p $documentationDir

	cp guideml $binDir
	cp guideml.guide.html $documentationDir/GuideML.html
}
