SUMMARY="LaTeX editor for Haiku"
DESCRIPTION="BeTeX is the premier TeX/LaTeX editor for BeOS/Haiku. With it you \
can create, compile and preview your latex documents all from within a single \
user-friendly interface."
HOMEPAGE="https://github.com/HaikuArchives/BeTeX/"
SOURCE_URI="git+https://github.com/HaikuArchives/BeTeX#ee4907"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2005 Tim de Jong, Brent Miszalski"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	betex = $portVersion
	app:BeTeX = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects/BeTeX $appsDir/BeTeX
	addAppDeskbarSymlink $appsDir/BeTeX
}
