libdvdread: Add working 4.2.0 recipe

This commit is contained in:
Alexander von Gluck IV
2013-11-26 19:39:13 -06:00
parent 67e38cb342
commit 2e92448ad1

View File

@@ -1,27 +1,77 @@
DESCRIPTION="libdvdread"
HOMEPAGE="http://www.mplayerhq.hu/design7/news.html"
SRC_URI="http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2"
CHECKSUM_MD5="ab7a19d3ab1a437ae754ef477d6231a4"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd libdvdread-4.2.0
./autogen.sh
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--enable-shared --enable-static
make
}
INSTALL()
{
cd libdvdread-4.2.0
make install
}
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://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2"
CHECKSUM_MD5="ab7a19d3ab1a437ae754ef477d6231a4"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libdvdread-${portVersion}.patch"
PROVIDES="
libdvdread${secondaryArchSuffix} = $portVersion
lib:libdvdread
cmd:dvdread_config
"
REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc
cmd:ld
cmd:make
cmd:libtoolize
cmd:aclocal
cmd:autoconf
"
SOURCE_DIR="libdvdread-${portVersion}"
BUILD()
{
./autogen.sh
runConfigure ./configure --enable-shared --enable-static
make $jobArgs
}
INSTALL()
{
make install
# move headers to the correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir/
# prepare develop/lib
prepareInstalledDevelLibs libdvdread
fixPkgconfig
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libdvdread${secondaryArchSuffix}_devel = $portVersion
devel:libdvdread$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libdvdread$secondaryArchSuffix == $portVersion base
"