media-video/lxdvdrip: Fix call to undeclared function ioctl

Closes: https://bugs.gentoo.org/885573
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31916
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Brahmajit Das
2023-07-17 00:02:33 +05:30
committed by Joonas Niilola
parent de199471e2
commit 89b422287c
2 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
https://bugs.gentoo.org/885573
--- a/dvdbackup.c
+++ b/dvdbackup.c
@@ -30,6 +30,7 @@ COMMENTAIRE :
#include "const.h"
#include "dvdformat.h"
+#include "dvdcopy.h"
#include "dvdinfo.h"
#include "globals.h"
#include "systools.h"
--- a/dvdcopy.h
+++ b/dvdcopy.h
@@ -14,6 +14,7 @@ COMMENTAIRE :
#ifndef __DVDCOPY_H__
#define __DVDCOPY_H__
+#include <dvdread/ifo_read.h>
/*@$#[dvdcopy.c] global proto. AutoProtoSigV1.1. date: 106/01/05 21:32:04 */
#include "proto.h"
#ifdef __cplusplus
--- a/systools.c
+++ b/systools.c
@@ -20,12 +20,8 @@ COMMENTAIRE :
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(__sun)
-# include <sys/statvfs.h>
-# include <sys/ioctl.h>
-#else
-# include <sys/statfs.h>
-#endif
+#include <sys/statfs.h>
+#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#if defined(__sun)

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Command line tool to automate the process of ripping and burning DVDs"
HOMEPAGE="https://sourceforge.net/projects/lxdvdrip/"
SRC_URI="mirror://sourceforge/lxdvdrip/${P}.tgz"
S="${WORKDIR}/${PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="media-libs/libdvdread"
RDEPEND="${DEPEND}
>=media-video/dvdauthor-0.6.9
media-video/streamdvd
media-video/mpgtx
"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-vamps-makefile.patch
"${FILESDIR}"/${P}-clang-16-build.patch
)
src_compile() {
tc-export CC
emake
emake -C vamps
}
src_install() {
dobin lxdvdrip
dobin lxac3scan
dodoc doc-pak/Changelog* doc-pak/Credits doc-pak/Debugging.*
dodoc doc-pak/lxdvdrip.conf* doc-pak/README*
doman lxdvdrip.1
insinto /usr/share
doins lxdvdrip.wav
insinto /etc
newins doc-pak/lxdvdrip.conf.EN lxdvdrip.conf
cd vamps || die
emake PREFIX="${D}/usr" install
}