SUMMARY="An application for easy blogging"
DESCRIPTION="You want to blog, but WebPositive isn't quick enough? Now you \
can use BlogPositive to connect to Wordpress, LiveJournal and OnSugar \
blogs directly."
HOMEPAGE="https://github.com/puckipedia/BlogPositive/"
COPYRIGHT="2013 Puck Meerburg"
LICENSE="MIT"
REVISION="5"
SOURCE_URI="https://github.com/puckipedia/BlogPositive/archive/v0.4.tar.gz"
CHECKSUM_SHA256="9a1c00eff7a291dec8679aa76a594c30ba32e300e0f5e760f0cb05234a459bfa"
SOURCE_FILENAME="$portName-$portVersion.tar.gz"
SOURCE_DIR="BlogPositive-0.4"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/BlogPositive directory
	"

PROVIDES="
	blogpositive = $portVersion
	app:BlogPositive = $portVersion
	"
REQUIRES="
	haiku
	lib:libcurl
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libcurl
	devel:libz
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:xres
	"

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
}
