mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Updated ebuild for new vdr-plugin-2.eclass.
This commit is contained in:
parent
b3ddc47cb5
commit
e65572c2e2
@ -2,7 +2,7 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI="4"
|
EAPI="5"
|
||||||
|
|
||||||
inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils
|
inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils
|
||||||
|
|
||||||
@ -38,10 +38,6 @@ DEPEND="${RDEPEND}
|
|||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
oss? ( sys-kernel/linux-headers )"
|
oss? ( sys-kernel/linux-headers )"
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
vdr-plugin-2_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
local myconf
|
local myconf
|
||||||
|
|
||||||
@ -50,30 +46,20 @@ src_compile() {
|
|||||||
myconf+=" VDPAU=$(usex vdpau 1 0)"
|
myconf+=" VDPAU=$(usex vdpau 1 0)"
|
||||||
myconf+=" VAAPI=$(usex vaapi 1 0)"
|
myconf+=" VAAPI=$(usex vaapi 1 0)"
|
||||||
myconf+=" SCREENSAVER=$(usex xscreensaver 1 0)"
|
myconf+=" SCREENSAVER=$(usex xscreensaver 1 0)"
|
||||||
# FIXME: need to know, if libav or ffmpeg is used for virtual/ffmpeg
|
if has_version ">=media-video/ffmpeg-0.8" ; then
|
||||||
myconf+=" SWRESAMPLE=1"
|
myconf+=" SWRESAMPLE=1"
|
||||||
|
fi
|
||||||
|
|
||||||
append-cflags -DHAVE_PTHREAD_NAME
|
append-cflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
|
||||||
append-cxxflags -DHAVE_PTHREAD_NAME
|
append-cxxflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
|
||||||
tc-export CC CXX
|
tc-export CC CXX
|
||||||
|
|
||||||
#emake all LIBDIR="." $myconf || die
|
BUILD_PARAMS="${myconf}"
|
||||||
|
vdr-plugin-2_src_compile
|
||||||
#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"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
vdr-plugin-2_src_install
|
vdr-plugin-2_src_install
|
||||||
|
|
||||||
dodoc ChangeLog
|
dodoc ChangeLog README.txt
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user