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

73 lines
1.5 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-2014 VideoLAN"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://download.videolan.org/pub/libdvdcss/$portVersion/libdvdcss-$portVersion.tar.bz2"
CHECKSUM_SHA256="7c414acd520c4e4dd7267952f72d738ff50321a7869af4d75c65aefad44f1395"
SOURCE_DIR="libdvdcss-$portVersion"
PATCHES="libdvdcss-$portVersion.patchset"
ARCHITECTURES="all ?arm ?ppc"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libdvdcss$secondaryArchSuffix = $portVersion
lib:libdvdcss$secondaryArchSuffix = 2.1.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdvdcss${secondaryArchSuffix}_devel = $portVersion
devel:libdvdcss$secondaryArchSuffix = 2.1.0 compat >= 2
"
REQUIRES_devel="
libdvdcss$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
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
}