void-packages/srcpkgs/emotion/template

67 lines
1.8 KiB
Plaintext

# Template file for 'emotion'
pkgname=emotion
version=1.7.9
revision=4
hostmakedepends="libtool pkg-config edje-devel>=${version}"
makedepends="edje-devel>=${version} eeze-devel>=${version}"
build_style=gnu-configure
configure_args="--disable-static --enable-generic
--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>"
license="BSD"
distfiles="http://download.enlightenment.org/releases/${pkgname}-${version}.tar.bz2"
checksum=deaeb3ed147c5f057ea05a3caf3c89ee247cdff433149c7e3a7141269008cec9
# Package build options
build_options="gstreamer vlc xine"
desc_option_gstreamer="Enable support for the GStreamer video backend"
desc_option_vlc="Enable support for the VLC video backend"
desc_option_xine="Enable support for the Xine video backend"
build_options_default="gstreamer"
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
if [ "$build_option_vlc" ]; then
configure_args+=" --enable-generic-vlc --enable-vlc"
makedepends+=" vlc-devel"
else
configure_args+=" --disable-vlc --disable-generic-vlc"
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"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
emotion_package() {
if [ "$build_option_xine" ]; then
depends="xine-lib"
fi
pkg_install() {
vmove all
}
}