mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libdvdcss: add recipe for version 1.4.0
This commit is contained in:
64
media-libs/libdvdcss/libdvdcss-1.4.0.recipe
Normal file
64
media-libs/libdvdcss/libdvdcss-1.4.0.recipe
Normal 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
|
||||
}
|
||||
29
media-libs/libdvdcss/patches/libdvdcss-1.4.0.patchset
Normal file
29
media-libs/libdvdcss/patches/libdvdcss-1.4.0.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user