SUMMARY="The one blog app to rule them all!"
DESCRIPTION="
Want to blog, but WebPositive isn't quick enough? Now you can use the new blog \
app: BlogPositive! It can connect to Wordpress, LiveJournal and OnSugar blogs.
"
HOMEPAGE="http://blogpositive.puckipedia.com"
SRC_URI="git://github.com/puckipedia/BlogPositive.git#tags/v0.4"
REVISION="1"

LICENSE="MIT"
COPYRIGHT="2013 :Puck Meerburg"

ARCHITECTURES="x86 x86_gcc2 x86_64"

PROVIDES="
	blogpositive = $portVersion
	app:blogpositive = $portVersion
	"

REQUIRES="
	lib:libcurl
	lib:libz
	haiku >= $haikuVersion
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:xres
	cmd:mkdepend
	"
BUILD_REQUIRES="
	devel:libcurl
	devel:libz
	haiku_devel >= $haikuVersion
	"

USER_SETTINGS_FILES="
	settings/BlogPositive directory
	"

BUILD()
{
	make
	for i in BlogPositivePlugins/*; do
		if [ -f $i/makefile ]; then
			make -C $i
		fi
	done
	make bindcatalogs
}

INSTALL()
{
	make install INSTALL_DIR=$appsDir
	addAppDeskbarSymlink $appsDir/BlogPositive
	
	for i in BlogPositivePlugins/*; do
		if [ -f $i/makefile ]; then
			make -C $i install INSTALL_DIR=$addOnsDir/BlogPositive
		fi
	done
}
