mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
...when normal media-video/ffmpeg is not installed. At a glance this does not use the `ffmpeg` command (FFMPEG_PATH is not used in the sources that I can see, nor the resulting binary), but ./configure will abort if it is not found. Thanks to that, we can get away with passing SYSROOT and not revbumping which would otherwise be incorrect for a runtime-used path. Reconsidered just fixing with ffmpeg-7, but given this was previously broken with "older" ffmpeg5 and patches are accumulating, this may need special attention and runtime testing. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
83 lines
2 KiB
Bash
83 lines
2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_P=${P/dvds/DVDS}
|
|
WX_GTK_VER=3.2-gtk3
|
|
|
|
inherit ffmpeg-compat wxwidgets
|
|
|
|
DESCRIPTION="A cross-platform free DVD authoring application"
|
|
HOMEPAGE="https://www.dvdstyler.org/"
|
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}.tar.bz2"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="debug +udev"
|
|
|
|
DEPEND="
|
|
app-cdr/cdrtools
|
|
>=app-cdr/dvd+rw-tools-7.1
|
|
media-libs/libexif:=
|
|
media-libs/libjpeg-turbo:=
|
|
>=media-libs/wxsvg-1.5.23:=
|
|
>=media-video/dvdauthor-0.7.1
|
|
media-video/ffmpeg-compat:6=[encode(+)]
|
|
>=media-video/xine-ui-0.99.7
|
|
x11-libs/wxGTK:${WX_GTK_VER}=[gstreamer,X]
|
|
sys-apps/dbus
|
|
udev? ( >=virtual/libudev-215:= )
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
>=app-cdr/dvdisaster-0.72.4
|
|
media-video/mjpegtools
|
|
"
|
|
BDEPEND="
|
|
app-arch/zip
|
|
app-text/xmlto
|
|
sys-devel/gettext
|
|
app-alternatives/yacc
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/ffmpeg5.patch
|
|
"${FILESDIR}"/wx30.patch
|
|
"${FILESDIR}"/wx32.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# disable obsolete GNOME 2.x libraries wrt #508854
|
|
sed -i -e '/PKG_CONFIG/s:libgnomeui-2.0:dIsAbLeAuToMaGiC&:' configure || die
|
|
# rmdir: failed to remove `tempfoobar': Directory not empty
|
|
sed -i -e '/rmdir "$$t"/d' docs/Makefile.in || die
|
|
# fix underlinking wrt #367863
|
|
sed -i -e 's:@LIBS@:& -ljpeg:' wxVillaLib/Makefile.in || die
|
|
# silence desktop-file-validate QA check
|
|
sed -i \
|
|
-e '/Icon/s:.png::' -e '/^Encoding/d' -e '/Categories/s:Application;::' \
|
|
data/dvdstyler.desktop || die
|
|
}
|
|
|
|
src_configure() {
|
|
# TODO: fix with >=ffmpeg-7 then drop compat (FFMPEG_PATH is "unused" but
|
|
# ./configure will abort if the `ffmpeg` command is not found)
|
|
ffmpeg_compat_setup 6
|
|
ffmpeg_compat_add_flags
|
|
local -x ac_cv_path_FFMPEG_PATH=${SYSROOT}$(ffmpeg_compat_get_prefix 6)/bin/ffmpeg
|
|
|
|
setup-wxwidgets unicode
|
|
econf \
|
|
$(use_enable debug) \
|
|
--with-wx-config="${WX_CONFIG}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
rm "${ED}"/usr/share/doc/${PF}/{COPYING*,INSTALL*} || die
|
|
}
|