emotion: add gstreamer(off) and xine(on) options.

This commit is contained in:
Juan RP 2013-11-16 09:16:46 +01:00
parent 75833cf1fc
commit b1be024873
1 changed files with 32 additions and 6 deletions

View File

@ -1,13 +1,12 @@
# Template file for 'emotion'
pkgname=emotion
version=1.7.9
revision=1
hostmakedepends="pkg-config"
makedepends="edje-devel>=${version} eeze-devel>=${version} gst-plugins-base-devel"
revision=2
hostmakedepends="libtool pkg-config edje-devel>=${version}"
makedepends="edje-devel>=${version} eeze-devel>=${version}"
build_style=gnu-configure
configure_args="--disable-static --enable-generic --enable-gstreamer
--disable-generic-vlc --disable-xine --disable-install-examples
--disable-emotion-test"
configure_args="--disable-static --enable-generic --disable-generic-vlc
--disable-install-examples --disable-emotion-test"
homepage="http://enlightenment.org"
short_desc="Library to easily integrate media playback into EFL applications"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -15,6 +14,30 @@ license="BSD"
distfiles="http://download.enlightenment.org/releases/${pkgname}-${version}.tar.bz2"
checksum=deaeb3ed147c5f057ea05a3caf3c89ee247cdff433149c7e3a7141269008cec9
# Package build options
build_options="gstreamer xine"
desc_option_gstreamer="Enable support for the GStreamer video backend"
desc_option_xine="Enable support for the Xine video backend"
build_options_default="xine"
if [ "$build_option_gstreamer" ]; then
configure_args+=" --enable-gstreamer"
makedepends+=" gst-plugins-base-devel"
else
configure_args+=" --disable-gstreamer"
fi
if [ "$build_option_xine" ]; then
configure_args+=" --enable-xine"
makedepends+=" xine-lib-devel"
else
configure_args+=" --disable-xine"
fi
pre_configure() {
libtoolize -f
}
emotion-devel_package() {
depends="eet-devel>=${version} evas-devel>=${version} ecore-devel>=${version} eeze-devel>=${version} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
@ -26,6 +49,9 @@ emotion-devel_package() {
}
emotion_package() {
if [ "$build_option_xine" ]; then
depends="xine-lib"
fi
pkg_install() {
vmove all
}