libdvdcss: add recipe for version 1.4.0

This commit is contained in:
Jerome Duval
2015-12-25 22:10:50 +00:00
parent 0e87a61eb0
commit a7ccb4e497
2 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
SUMMARY="A library to access DVDs"
DESCRIPTION="libdvdcss is a simple library designed for accessing DVDs like a \
block device without having to bother about the decryption."
HOMEPAGE="http://www.videolan.org/developers/libdvdcss.html"
COPYRIGHT="1998-2008 VideoLAN"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://download.videolan.org/pub/libdvdcss/$portVersion/libdvdcss-$portVersion.tar.bz2"
CHECKSUM_SHA256="2089375984800df29a4817b37f3123c1706723342d6dab4d0a8b75c25c2c845a"
SOURCE_DIR="libdvdcss-${portVersion}"
PATCHES="libdvdcss-${portVersion}.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libdvdcss$secondaryArchSuffix = $portVersion
lib:libdvdcss$secondaryArchSuffix = 2.2.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdvdcss${secondaryArchSuffix}_devel = $portVersion
devel:libdvdcss$secondaryArchSuffix = 2.2.0 compat >= 2
"
REQUIRES_devel="
libdvdcss$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:libtoolize
cmd:aclocal
cmd:autoconf
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure
make
}
INSTALL()
{
make install
# prepare develop/lib
prepareInstalledDevelLibs libdvdcss
fixPkgconfig
packageEntries devel \
$developDir
}

View File

@@ -0,0 +1,29 @@
From afe96b6ad1652a25215f97a3931dabdb459149f5 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 25 Dec 2015 22:52:14 +0000
Subject: gcc2 patch
diff --git a/src/device.c b/src/device.c
index af735e0..1524bc7 100644
--- a/src/device.c
+++ b/src/device.c
@@ -117,6 +117,7 @@ int dvdcss_use_ioctls( dvdcss_t dvdcss )
return 0;
#else
+{
struct stat fileinfo;
int ret;
@@ -148,6 +149,7 @@ int dvdcss_use_ioctls( dvdcss_t dvdcss )
{
return 0;
}
+}
#endif
}
--
2.2.2