# SliTaz package receipt.

PACKAGE="omxplayer"
VERSION="git-1"
CATEGORY="multimedia"
SHORT_DESC="Raspberry Pi cmdline media player."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/popcornmix/omxplayer"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="git|git://github.com/popcornmix/omxplayer.git"
HOST_ARCH="arm"

DEPENDS="ffmpeg"
BUILD_DEPENDS="ffmpeg-dev"

# BUG: it needs libboost wich will be hard to cross compile!

# WARNING: Omxplayer need the official R-Pi libs in /opt/vc. They are
# not packaged in i486 so install all firmware by hand.
# DL: https://github.com/raspberrypi/firmware

# Rules to configure and make the package.
compile_rules()
{
	cp -f ${stuff}/Makefile* . &&
	make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir ${fs}/usr
}
