Files
haikuports/media-libs/libdvdcss/libdvdcss-1.4.3.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

77 lines
1.6 KiB
Bash

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="https://www.videolan.org/developers/libdvdcss.html"
COPYRIGHT="1998-2018 VideoLAN"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.videolan.org/pub/libdvdcss/$portVersion/libdvdcss-$portVersion.tar.bz2"
CHECKSUM_SHA256="233cc92f5dc01c5d3a96f5b3582be7d5cee5a35a52d3a08158745d3d86070079"
SOURCE_DIR="libdvdcss-$portVersion"
PATCHES="libdvdcss-$portVersion.patchset"
ARCHITECTURES="all ?arm ?ppc"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="2.2.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libdvdcss$secondaryArchSuffix = $portVersion
lib:libdvdcss$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdvdcss${secondaryArchSuffix}_devel = $portVersion
devel:libdvdcss$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libdvdcss$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake --add-missing
runConfigure ./configure
make
}
INSTALL()
{
make install
# remove libtool file
rm $libDir/libdvdcss.la
# prepare develop/lib
prepareInstalledDevelLib libdvdcss
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}