| 1 |
mgorny |
1.10 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
hd_brummy |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
jdhore |
1.11 |
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-image/vdr-image-0.3.0.ebuild,v 1.10 2012/04/24 10:16:37 mgorny Exp $
|
| 4 |
hd_brummy |
1.6 |
|
| 5 |
hd_brummy |
1.7 |
EAPI="3"
|
| 6 |
hd_brummy |
1.1 |
|
| 7 |
aballier |
1.3 |
inherit vdr-plugin eutils flag-o-matic
|
| 8 |
hd_brummy |
1.1 |
|
| 9 |
hd_brummy |
1.9 |
VERSION="678" #every bump, new version
|
| 10 |
|
|
|
| 11 |
hd_brummy |
1.1 |
DESCRIPTION="VDR plugin: display of digital images, like jpeg, tiff, png, bmp"
|
| 12 |
hd_brummy |
1.9 |
HOMEPAGE="http://projects.vdr-developer.org/projects/plg-image"
|
| 13 |
mgorny |
1.10 |
SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tar.gz"
|
| 14 |
hd_brummy |
1.1 |
|
| 15 |
hd_brummy |
1.6 |
KEYWORDS="amd64 x86"
|
| 16 |
hd_brummy |
1.1 |
SLOT="0"
|
| 17 |
|
|
LICENSE="GPL-2"
|
| 18 |
|
|
IUSE="exif"
|
| 19 |
|
|
|
| 20 |
|
|
COMMON_DEPEND=">=media-video/vdr-1.5.8
|
| 21 |
idl0r |
1.8 |
>=virtual/ffmpeg-0.4.8_p20080326
|
| 22 |
hd_brummy |
1.1 |
>=media-libs/netpbm-10.0
|
| 23 |
|
|
exif? ( media-libs/libexif )"
|
| 24 |
|
|
|
| 25 |
|
|
DEPEND="${COMMON_DEPEND}
|
| 26 |
jdhore |
1.11 |
virtual/pkgconfig"
|
| 27 |
hd_brummy |
1.1 |
|
| 28 |
|
|
RDEPEND="${COMMON_DEPEND}
|
| 29 |
|
|
>=media-tv/gentoo-vdr-scripts-0.2.2"
|
| 30 |
|
|
|
| 31 |
|
|
VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.3.0.sh"
|
| 32 |
flameeyes |
1.4 |
BUILD_PARAMS="-j1"
|
| 33 |
hd_brummy |
1.1 |
|
| 34 |
hd_brummy |
1.6 |
src_prepare() {
|
| 35 |
|
|
vdr-plugin_src_prepare
|
| 36 |
hd_brummy |
1.1 |
|
| 37 |
|
|
epatch "${FILESDIR}/${P}-gentoo.diff"
|
| 38 |
|
|
|
| 39 |
|
|
use !exif && sed -i "s:#WITHOUT_LIBEXIF:WITHOUT_LIBEXIF:" Makefile
|
| 40 |
hd_brummy |
1.6 |
|
| 41 |
idl0r |
1.8 |
if has_version "<=virtual/ffmpeg-0.4.9_p20061016"; then
|
| 42 |
hd_brummy |
1.1 |
BUILD_PARAMS="${BUILD_PARAMS} WITHOUT_SWSCALER=1"
|
| 43 |
|
|
fi
|
| 44 |
hd_brummy |
1.6 |
|
| 45 |
aballier |
1.3 |
# UINT64_C is needed by ffmpeg headers
|
| 46 |
|
|
append-flags -D__STDC_CONSTANT_MACROS
|
| 47 |
hd_brummy |
1.1 |
}
|
| 48 |
|
|
|
| 49 |
|
|
src_install() {
|
| 50 |
|
|
vdr-plugin_src_install
|
| 51 |
|
|
|
| 52 |
|
|
insinto /etc/vdr/imagecmds
|
| 53 |
|
|
newins examples/imagecmds.conf imagecmds.example.conf
|
| 54 |
|
|
newins examples/imagecmds.conf.DE imagecmds.example.conf.de
|
| 55 |
|
|
|
| 56 |
|
|
insinto /etc/vdr/plugins/image
|
| 57 |
|
|
doins examples/imagesources.conf
|
| 58 |
|
|
|
| 59 |
|
|
into /usr/share/vdr/image
|
| 60 |
|
|
dobin scripts/imageplugin.sh
|
| 61 |
|
|
newbin scripts/mount.sh mount-image.sh
|
| 62 |
|
|
}
|