evas_generic_loaders: use pkg build options.

This commit is contained in:
Juan RP 2013-11-16 12:11:11 +01:00
parent b556627897
commit 206f01eec7
1 changed files with 51 additions and 8 deletions

View File

@ -1,15 +1,10 @@
# Template file for 'evas_generic_loaders'
pkgname=evas_generic_loaders
version=1.7.9
revision=1
hostmakedepends="pkg-config"
makedepends="
evas-devel>=${version} librsvg-devel poppler-devel>=0.24.1
ghostscript-devel>=9.06_5 libraw-devel>=0.15 libspectre-devel
gst-plugins-base-devel"
revision=2
build_style=gnu-configure
configure_args="--enable-poppler --enable-spectre
--enable-libraw --enable-svg --enable-gstreamer LDFLAGS="
hostmakedepends="pkg-config"
makedepends="evas-devel>=${version}"
homepage="http://enlightenment.org"
short_desc="Additional generic loaders for Evas"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -17,6 +12,54 @@ license="BSD"
distfiles="http://download.enlightenment.org/releases/${pkgname}-${version}.tar.bz2"
checksum=7f0041ce87024b83eefbc0cf4c7749322363ca6dead883815444cc59b5479874
build_options="gstreamer pdf ps raw svg"
desc_option_gstreamer="Enable support to preview video files via GStreamer"
desc_option_pdf="Enable support to preview PDF files"
desc_option_ps="Enable support to preview PS files"
desc_option_svg="Enable support to preview SVG files"
desc_option_raw="Enable support to preview RAW files"
build_options_default="pdf raw"
# XXX disable gstreamer, ps and svg options in cross mode.
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gstreamer ps svg"
fi
if [ "$build_option_gstreamer" ]; then
configure_args+=" --enable-gstreamer"
makedepends+=" gst-plugins-base-devel"
else
configure_args+=" --disable-gstreamer"
fi
if [ "$build_option_pdf" ]; then
configure_args+=" --enable-spectre"
makedepends+=" libspectre-devel"
else
configure_args+=" --disable-spectre"
fi
if [ "$build_option_ps" ]; then
configure_args+=" --enable-poppler"
makedepends+=" poppler-devel"
else
configure_args+=" --disable-poppler"
fi
if [ "$build_option_svg" ]; then
configure_args+=" --enable-svg"
makedepends+=" librsvg-devel"
else
configure_args+=" --disable-svg"
fi
if [ "$build_option_raw" ]; then
configure_args+=" --enable-libraw"
makedepends+=" libraw-devel>=0.15"
else
configure_args+=" --disable-libraw"
fi
evas_generic_loaders_package() {
pkg_install() {
vmove all