diff --git a/media-libs/libdvdcss/libdvdcss-1.4.0.recipe b/media-libs/libdvdcss/libdvdcss-1.4.0.recipe new file mode 100644 index 000000000..be141a9f3 --- /dev/null +++ b/media-libs/libdvdcss/libdvdcss-1.4.0.recipe @@ -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 +} diff --git a/media-libs/libdvdcss/patches/libdvdcss-1.4.0.patchset b/media-libs/libdvdcss/patches/libdvdcss-1.4.0.patchset new file mode 100644 index 000000000..feba19b50 --- /dev/null +++ b/media-libs/libdvdcss/patches/libdvdcss-1.4.0.patchset @@ -0,0 +1,29 @@ +From afe96b6ad1652a25215f97a3931dabdb459149f5 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +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 +