mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
23
package/dvdrw-tools/0001-limits.h.patch
Normal file
23
package/dvdrw-tools/0001-limits.h.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
transport.hxx: add limits.h include now needed because of kernel changes
|
||||
|
||||
Signed-off-by: Steve Kenton <skenton@ou.edu>
|
||||
|
||||
diff -pruN dvd+rw-tools-7.1.ori/transport.hxx dvd+rw-tools-7.1/transport.hxx
|
||||
--- dvd+rw-tools-7.1.ori/transport.hxx 2008-03-01 04:34:43.000000000 -0600
|
||||
+++ dvd+rw-tools-7.1/transport.hxx 2015-01-18 15:47:24.245863631 -0600
|
||||
@@ -9,6 +9,7 @@
|
||||
#if defined(__unix) || defined(__unix__)
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
@@ -40,6 +41,7 @@ inline long getmsecs()
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <limits.h>
|
||||
#define ssize_t LONG_PTR
|
||||
#define off64_t __int64
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
growisofs.c: include sysmacros.h to compile with glibc-2.28
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
|
||||
diff -urpN dvd+rw-tools-7.1.orig/growisofs.c dvd+rw-tools-7.1/growisofs.c
|
||||
--- dvd+rw-tools-7.1.orig/growisofs.c 2018-09-08 01:56:11.686656819 +0200
|
||||
+++ dvd+rw-tools-7.1/growisofs.c 2018-09-08 02:11:45.868778471 +0200
|
||||
@@ -441,6 +441,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <assert.h>
|
||||
#include "mp.h"
|
||||
53
package/dvdrw-tools/Config.in
Normal file
53
package/dvdrw-tools/Config.in
Normal file
@@ -0,0 +1,53 @@
|
||||
comment "dvdrw-tools needs a toolchain w/ threads, C++, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_DVDRW_TOOLS
|
||||
bool "dvdrw-tools"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
The dvd+rw-tools are used to master Blu-ray Disc
|
||||
and DVD Disc media, both +RW/+R and -RW/-R. Note:
|
||||
The +RW in the name is a historical artifact. This
|
||||
package contains the widely used growisofs program.
|
||||
|
||||
Buildroot does not support packages with a '+' sign
|
||||
in their name, which explains why it is named
|
||||
dvdrw-tools and not dvd+rw-tools.
|
||||
|
||||
Because dvd+rw-tools does not directly interact with
|
||||
disc media it uses a separate media backend program.
|
||||
The usual backend is mkisofs from the cdrtools package.
|
||||
However, cdrtools is not currently part of buildroot.
|
||||
|
||||
The Linux From Scratch project uses uses xorriso for the
|
||||
media backend and Ubuntu uses cdrkit for the backend.
|
||||
Choose the one which seems most appropriate for your use.
|
||||
NOTE: xorriso does not currently support UDF.
|
||||
|
||||
http://fy.chalmers.se/~appro/linux/DVD+RW/tools
|
||||
|
||||
if BR2_PACKAGE_DVDRW_TOOLS
|
||||
choice
|
||||
prompt "Media Backend"
|
||||
help
|
||||
Choose which media backend program to use.
|
||||
|
||||
config BR2_PACKAGE_DVDRW_TOOLS_CDRKIT_BACKEND
|
||||
bool "cdrkit"
|
||||
select BR2_PACKAGE_CDRKIT
|
||||
help
|
||||
Symlink mkisofs to genisoimage from the cdrkit package.
|
||||
|
||||
config BR2_PACKAGE_DVDRW_TOOLS_XORRISO_BACKEND
|
||||
bool "xorriso"
|
||||
select BR2_PACKAGE_XORRISO
|
||||
help
|
||||
Symlink mkisofs to xorrisofs from the xorriso package.
|
||||
|
||||
endchoice
|
||||
endif
|
||||
2
package/dvdrw-tools/dvdrw-tools.hash
Normal file
2
package/dvdrw-tools/dvdrw-tools.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed using sha256sum
|
||||
sha256 f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca dvd+rw-tools-7.1.tar.gz
|
||||
35
package/dvdrw-tools/dvdrw-tools.mk
Normal file
35
package/dvdrw-tools/dvdrw-tools.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# dvdrw-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DVDRW_TOOLS_VERSION = 7.1
|
||||
DVDRW_TOOLS_SOURCE = dvd+rw-tools-$(DVDRW_TOOLS_VERSION).tar.gz
|
||||
DVDRW_TOOLS_SITE = http://fy.chalmers.se/~appro/linux/DVD+RW/tools
|
||||
DVDRW_TOOLS_LICENSE = GPL-2.0
|
||||
DVDRW_TOOLS_LICENSE_FILES = LICENSE
|
||||
DVDRW_TOOLS_DEPENDENCIES = host-m4
|
||||
|
||||
define DVDRW_TOOLS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DVDRW_TOOLS_CDRKIT_BACKEND),y)
|
||||
DVDRW_TOOLS_BACKEND = genisoimage
|
||||
DVDRW_TOOLS_DEPENDENCIES += cdrkit
|
||||
else ifeq ($(BR2_PACKAGE_DVDRW_TOOLS_XORRISO_BACKEND),y)
|
||||
DVDRW_TOOLS_BACKEND = xorrisofs
|
||||
DVDRW_TOOLS_DEPENDENCIES += xorriso
|
||||
endif
|
||||
|
||||
define DVDRW_TOOLS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/dvd-ram-control $(TARGET_DIR)/usr/bin/dvd-ram-control
|
||||
$(INSTALL) -m 0755 -D $(@D)/dvd+rw-booktype $(TARGET_DIR)/usr/bin/dvd+rw-booktype
|
||||
$(INSTALL) -m 0755 -D $(@D)/dvd+rw-format $(TARGET_DIR)/usr/bin/dvd+rw-format
|
||||
$(INSTALL) -m 0755 -D $(@D)/dvd+rw-mediainfo $(TARGET_DIR)/usr/bin/dvd+rw-mediainfo
|
||||
$(INSTALL) -m 0755 -D $(@D)/growisofs $(TARGET_DIR)/usr/bin/growisofs
|
||||
ln -s -f $(DVDRW_TOOLS_BACKEND) $(TARGET_DIR)/usr/bin/mkisofs
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user