mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libbluray: add recipe for version 1.0.0.
* keep 0.9.3 for compatibility.
This commit is contained in:
97
media-libs/libbluray/libbluray-1.0.0.recipe
Normal file
97
media-libs/libbluray/libbluray-1.0.0.recipe
Normal file
@@ -0,0 +1,97 @@
|
||||
SUMMARY="Library for playback of Blu-ray movies"
|
||||
DESCRIPTION="This library is simply a tool for playback of Blu-ray movies."
|
||||
HOMEPAGE="https://www.videolan.org/developers/libbluray.html"
|
||||
COPYRIGHT="2010-2016 VideoLAN"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.videolan.org/pub/videolan/libbluray/$portVersion/libbluray-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="f7e3add335c7bbef45824fcd2249a9bf293868598c13f8479352c44ec95374cc"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
libbluray$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libbluray$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
cmd:bd_info$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
# required by freetype
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libbluray${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libbluray$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libbluray$secondaryArchSuffix == $portVersion base
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
# required by freetype
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autom4te
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure --disable-bdjava
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libbluray.la
|
||||
|
||||
prepareInstalledDevelLibs libbluray
|
||||
fixPkgconfig
|
||||
|
||||
local develPackageName="${portName}_devel-$portFullVersion"
|
||||
local packageLinksDir="`dirname "$portPackageLinksDir"`"
|
||||
local develPkgLinksDir="$packageLinksDir/$develPackageName"
|
||||
local libfontconfig="$develPkgLinksDir/devel~libfontconfig$secondaryArchSuffix/$relativeDevelopLibDir"
|
||||
local libfreetype="$develPkgLinksDir/devel~libfreetype$secondaryArchSuffix/$relativeDevelopLibDir"
|
||||
local libxml2="$develPkgLinksDir/devel~libxml2$secondaryArchSuffix/$relativeDevelopLibDir"
|
||||
sed -i \
|
||||
-e "/^Libs\.private:/ s,-L/packages/fontconfig$secondaryArchSuffix-[^\ /]*/\.self/develop/$relativeLibDir,-L$libfontconfig,g" \
|
||||
-e "/^Libs\.private:/ s,-L/packages/freetype$secondaryArchSuffix-[^\ /]*/\.self/develop/$relativeLibDir,-L$libfreetype,g" \
|
||||
-e "/^Libs\.private:/ s,-L/packages/libxml2$secondaryArchSuffix-[^\ /]*/\.self/develop/$relativeLibDir,-L$libxml2,g" \
|
||||
$developLibDir/pkgconfig/libbluray.pc
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
@@ -3,17 +3,17 @@ DESCRIPTION="This library is simply a tool for playback of Blu-ray movies."
|
||||
HOMEPAGE="https://www.videolan.org/developers/libbluray.html"
|
||||
COPYRIGHT="2010-2016 VideoLAN"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.videolan.org/pub/videolan/libbluray/$portVersion/libbluray-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="a6366614ec45484b51fe94fcd1975b3b8716f90f038a33b24d59978de3863ce0"
|
||||
SOURCE_DIR="libbluray-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libbluray$secondaryArchSuffix = $portVersion compat >= 0.7
|
||||
libbluray1$secondaryArchSuffix = $portVersion compat >= 0.7
|
||||
lib:libbluray$secondaryArchSuffix = 1.10.0 compat >= 1
|
||||
cmd:bd_info$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -27,16 +27,18 @@ REQUIRES="
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libbluray${secondaryArchSuffix}_devel = $portVersion compat >= 0.7
|
||||
libbluray1${secondaryArchSuffix}_devel = $portVersion compat >= 0.7
|
||||
devel:libbluray$secondaryArchSuffix = 1.10.0 compat >= 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libbluray$secondaryArchSuffix == $portVersion base
|
||||
libbluray1$secondaryArchSuffix == $portVersion base
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
CONFLICTS_devel="
|
||||
libbluray${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
@@ -70,6 +72,7 @@ INSTALL()
|
||||
make install
|
||||
|
||||
rm $libDir/libbluray.la
|
||||
rm -rf $binDir
|
||||
|
||||
prepareInstalledDevelLibs libbluray
|
||||
fixPkgconfig
|
||||
Reference in New Issue
Block a user