libdvdread: bump version

keep lib:libdvdread version 7 for compatibility.
This commit is contained in:
Jerome Duval
2020-10-20 20:13:17 +02:00
parent 45dd0f9509
commit 642c4cdff9
3 changed files with 96 additions and 2 deletions

View File

@@ -10,13 +10,13 @@ COPYRIGHT="1998-1999 Eric Smith
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.videolan.org/pub/videolan/libdvdread/$portVersion/libdvdread-$portVersion.tar.bz2"
CHECKSUM_SHA256="f91401af213b219cdde24b46c50a57f29301feb7f965678f1d7ed4632cc6feb0"
CHECKSUM_SHA256="3e357309a17c5be3731385b9eabda6b7e3fa010f46022a06f104553bf8e21796"
PATCHES="libdvdread-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="7.0.0"
libVersion="8.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="

View File

@@ -0,0 +1,72 @@
SUMMARY="A simple foundation for reading DVD video disks"
DESCRIPTION="libdvdread provides the functionality that is required to \
access many DVDs. It parses IFO files, reads NAV-blocks, and performs CSS \
authentication and descrambling (if an external libdvdcss library is \
installed)."
HOMEPAGE="https://www.videolan.org/developers/libdvdnav.html"
COPYRIGHT="1998-1999 Eric Smith
2000-2002 Björn Englund
2000-2003 Håkan Hjort, et al."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.videolan.org/pub/videolan/libdvdread/$portVersion/libdvdread-$portVersion.tar.bz2"
CHECKSUM_SHA256="f91401af213b219cdde24b46c50a57f29301feb7f965678f1d7ed4632cc6feb0"
SOURCE_DIR="libdvdread-$portVersion"
PATCHES="libdvdread-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="7.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libdvdread7$secondaryArchSuffix = $portVersion
lib:libdvdread$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdvdcss$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --enable-shared --enable-static \
--disable-maintainer-mode
touch ChangeLog
make $jobArgs
}
INSTALL()
{
make install-strip
rm $libDir/libdvdread.la
# prepare develop/lib
prepareInstalledDevelLibs libdvdread
fixPkgconfig
rm -rf \
"$docDir"/{AUTHORS,ChangeLog,NEWS,TODO} \
$developDir
}
TEST()
{
make check
}

View File

@@ -0,0 +1,22 @@
From e0a3897a5d051fd962262e04ed96ebff64b6d193 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 3 Sep 2014 15:17:33 +0000
Subject: haiku patch
diff --git a/src/bswap.h b/src/bswap.h
index d3b2383..2f2358f 100644
--- a/src/bswap.h
+++ b/src/bswap.h
@@ -85,7 +85,7 @@
* functionality!
*/
-#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(_WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
+#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(_WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__) || defined(__HAIKU__)
#define B2N_16(x) \
x = ((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8))
--
2.28.0