mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libdvdread: added a recipe for version 5.0.0
This commit is contained in:
77
media-libs/libdvdread/libdvdread-5.0.0.recipe
Normal file
77
media-libs/libdvdread/libdvdread-5.0.0.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="A simple foundation for reading DVD video disks"
|
||||
DESCRIPTION="
|
||||
libdvdread provides a simple foundation for reading DVD video disks. It \
|
||||
provides the functionality that is required to access many DVDs. libdvdread \
|
||||
parses IFO files, reads NAV-blocks, and performs CSS authentication and \
|
||||
descrambling (if an external libdvdcss library is installed).
|
||||
"
|
||||
HOMEPAGE="http://dvdnav.mplayerhq.hu"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1998-1999 Eric Smith
|
||||
2000-2002 Björn Englund
|
||||
2000-2003 Håkan Hjort, et al."
|
||||
SRC_URI="http://downloads.videolan.org/pub/videolan/libdvdread/$portVersion/libdvdread-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="66fb1a3a42aa0c56b02547f69c7eb0438c5beeaf21aee2ae2c6aa23ea8305f14"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
PATCHES="libdvdread-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
libdvdread$secondaryArchSuffix = $portVersion
|
||||
lib:libdvdread$secondaryArchSuffix = 4.1.2 compat >= 4
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libdvdcss$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libdvdcss$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:libtoolize
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoreconf
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure --enable-shared --enable-static \
|
||||
--disable-maintainer-mode
|
||||
touch ChangeLog
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs libdvdread
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libdvdread${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libdvdread$secondaryArchSuffix = 4.1.2 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libdvdread$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
22
media-libs/libdvdread/patches/libdvdread-5.0.0.patchset
Normal file
22
media-libs/libdvdread/patches/libdvdread-5.0.0.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 2959b2e1cfb098bbff9f32c7de69efb0f04e8df1 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 fdf53dc..9781b98 100644
|
||||
--- a/src/bswap.h
|
||||
+++ b/src/bswap.h
|
||||
@@ -79,7 +79,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))
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user