SUMMARY="A media aggregator (and more)"
DESCRIPTION="BePodder helps you to find, subscribe to, and download \
multimedia contents. It allows you to easily enjoy audio, video, images and \
news published around the web in RSS format. It's a Podcaster software.

BePodder includes many cool features:

- Easy to use yet powerful graphical user interface
- Handles all news/podcast feeds in RSS 0.9, 2.0, Atom, RDF and iTunes
- Fully integrated with Haiku's BFS file system
- Integrated podcast, videoblog, imagefeeds, BitTorrentfeeds, newsfeeds and \
Internationalfeeds, built-in OPML directories with thousands of feeds
- Advanced channels/lists management with drag and drop support
- Easy to integrate with other applications like BitTorrent / Installer / \
Unzip / etc.
- Players integration with a new 'Auto' option
- BePodder is 100% adwares/spywares free
- You don't need an iPod or any kind of MP3 player to use and enjoy BePodder
- Proxy support
- Automatic channels check
- Up to 5 enclosure downloads at the same time (multi-threading)"
HOMEPAGE="https://github.com/HaikuArchives/BePodder"
COPYRIGHT="2006-2014 Funky Idea Software
	2015-2018 HaikuArchives Team"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="c63b1ed184c6425ec42f32c08a02c22ea7b3aa8625ef33c6577b5639a9e5b45f"
SOURCE_FILENAME="bepodder-$portVersion.tar.gz"
SOURCE_DIR="BePodder-$portVersion"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/BePodder.conf
	settings/BePodder directory
	"

PROVIDES="
	bepodder = $portVersion
	app:BePodder = $portVersion
	"
REQUIRES="
	haiku
	lib:libcurl
	lib:libxml2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libcurl
	devel:libxml2
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs -C library/libfish
	make $jobArgs -C library/libfunky
	make $jobArgs OBJ_DIR=objects -C sources
	make OBJ_DIR=objects -C sources bindcatalogs
}

INSTALL()
{
	mkdir -p "$appsDir" "$docDir"
	cp sources/objects/BePodder "$appsDir"
	cp -a docs/ReadMe.html "$docDir"
	cp -r docs/images "$docDir"

	addAppDeskbarSymlink "$appsDir"/BePodder
}
