Files
haikuports/media-libs/libdvdnav/libdvdnav-6.1.1.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

69 lines
1.6 KiB
Bash

SUMMARY="DVD navigation library"
DESCRIPTION="libdvdnav is a library that allows easy use of sophisticated DVD navigation \
features such as DVD menus, multiangle playback and even interactive DVD games."
HOMEPAGE="https://www.videolan.org/developers/libdvdnav.html"
COPYRIGHT="2000 Rich Wareham
2001-2004 the dvdnav project"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.videolan.org/pub/videolan/libdvdnav/$portVersion/libdvdnav-$portVersion.tar.bz2"
CHECKSUM_SHA256="c191a7475947d323ff7680cf92c0fb1be8237701885f37656c64d04e98d18d48"
PATCHES="libdvdnav-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libdvdnav$secondaryArchSuffix = $portVersion
lib:libdvdnav$secondaryArchSuffix = 4.3.0 compat >= 4
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libdvdread$secondaryArchSuffix
"
PROVIDES_devel="
libdvdnav${secondaryArchSuffix}_devel = $portVersion
devel:libdvdnav$secondaryArchSuffix = 4.3.0 compat >= 4
"
REQUIRES_devel="
libdvdnav$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdvdread$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --enable-shared --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libdvdnav.la
# prepare develop/lib
prepareInstalledDevelLibs libdvdnav
fixPkgconfig
packageEntries devel \
$docDir \
$developDir
}