summaryrefslogtreecommitdiff
path: root/vdr-softhddevice-9999.ebuild
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-02-25 16:40:44 +0100
committerJohns <johns98@gmx.net>2013-02-25 16:40:44 +0100
commite65572c2e21fd5ba3e32d831076d357c6b689b05 (patch)
treec84e1d0a8afc88fea6dd3808973b12f0c59ae20b /vdr-softhddevice-9999.ebuild
parentb3ddc47cb5f39774080bd4ee074927c35fde7902 (diff)
downloadvdr-plugin-softhddevice-e65572c2e21fd5ba3e32d831076d357c6b689b05.tar.gz
vdr-plugin-softhddevice-e65572c2e21fd5ba3e32d831076d357c6b689b05.tar.bz2
Updated ebuild for new vdr-plugin-2.eclass.
Diffstat (limited to 'vdr-softhddevice-9999.ebuild')
-rw-r--r--vdr-softhddevice-9999.ebuild32
1 files changed, 9 insertions, 23 deletions
diff --git a/vdr-softhddevice-9999.ebuild b/vdr-softhddevice-9999.ebuild
index a849987..85871d9 100644
--- a/vdr-softhddevice-9999.ebuild
+++ b/vdr-softhddevice-9999.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="4"
+EAPI="5"
inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils
@@ -38,10 +38,6 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
oss? ( sys-kernel/linux-headers )"
-src_prepare() {
- vdr-plugin-2_src_prepare
-}
-
src_compile() {
local myconf
@@ -50,30 +46,20 @@ src_compile() {
myconf+=" VDPAU=$(usex vdpau 1 0)"
myconf+=" VAAPI=$(usex vaapi 1 0)"
myconf+=" SCREENSAVER=$(usex xscreensaver 1 0)"
- # FIXME: need to know, if libav or ffmpeg is used for virtual/ffmpeg
- myconf+=" SWRESAMPLE=1"
+ if has_version ">=media-video/ffmpeg-0.8" ; then
+ myconf+=" SWRESAMPLE=1"
+ fi
- append-cflags -DHAVE_PTHREAD_NAME
- append-cxxflags -DHAVE_PTHREAD_NAME
+ append-cflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
+ append-cxxflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
tc-export CC CXX
- #emake all LIBDIR="." $myconf || die
-
- #vdr-plugin-2_src_compile
- cd "${S}"
-
- BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}}
-
- emake ${BUILD_PARAMS} ${myconf} \
- ${BUILD_TARGETS} \
- LOCALEDIR="${TMP_LOCALE_DIR}" \
- LIBDIR="${S}" \
- TMPDIR="${T}" \
- || die "emake failed"
+ BUILD_PARAMS="${myconf}"
+ vdr-plugin-2_src_compile
}
src_install() {
vdr-plugin-2_src_install
- dodoc ChangeLog
+ dodoc ChangeLog README.txt
}