Files
haikuports/dev-libs/libcdio/libcdio-0.93.recipe
fbrosson 6ab4d92086 libcdio: fix versions of devel:lib{cdio,iso9660} in PROVIDES_devel.
* libcdio and libiso9660 had had their versions bumped in PROVIDES
  but not in PROVIDES_devel.
* Do not ship documentation and runtimes for secondary arch builds.
* Use a mirror redirector for SOURCE_URI.
* Update COPYRIGHT years.
2016-04-20 21:28:51 +00:00

100 lines
2.5 KiB
Bash

SUMMARY="A library to encapsulate CD-ROM reading and control"
DESCRIPTION="The libcdio package contains a library for CD-ROM and CD image \
access. Applications wishing to be oblivious of the OS- and device-dependent \
properties of a CD-ROM or of the specific details of various CD-image formats \
may benefit from using this library."
HOMEPAGE="https://www.gnu.org/software/libcdio/"
COPYRIGHT="2002-2014 Rocky Bernstein and Herbert Valerio Riedel"
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="http://ftpmirror.gnu.org/libcdio/libcdio-$portVersion.tar.gz"
CHECKSUM_SHA256="4972cd22fd8d0e8bff922d35c7a645be0db0ab0e7b3dfaecc9cd8272429d6975"
PATCHES="libcdio-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libcdio$secondaryArchSuffix = $portVersion
lib:libcdio$secondaryArchSuffix = 16.0.0 compat >= 16
lib:libcdio++$secondaryArchSuffix = 0.0.2 compat >= 0
lib:libiso9660$secondaryArchSuffix = 10.0.0 compat >= 10
lib:libiso9660++$secondaryArchSuffix = 0.0.0 compat >= 0
lib:libudf$secondaryArchSuffix = 0.0.0 compat >= 0
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:cdda_player
cmd:cd_drive
cmd:cd_info
cmd:cd_read
cmd:iso_info
cmd:iso_read
cmd:mmc_tool
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
PROVIDES_devel="
libcdio${secondaryArchSuffix}_devel = $portVersion
devel:libcdio${secondaryArchSuffix} = 16.0.0 compat >= 16
devel:libcdio++${secondaryArchSuffix} = 0.0.2 compat >= 0
devel:libiso9660${secondaryArchSuffix} = 10.0.0 compat >= 10
devel:libiso9660++${secondaryArchSuffix} = 0.0.0 compat >= 0
devel:libudf${secondaryArchSuffix} = 0.0.0 compat >= 0
"
REQUIRES_devel="
libcdio${secondaryArchSuffix} == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:autoconf
cmd:automake
"
BUILD()
{
libtoolize --force --copy --install
aclocal -I m4
autoconf
automake
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $documentationDir $binDir
fi
# set up the develop directory correctly
prepareInstalledDevelLibs libcdio libcdio++ libudf libiso9660 libiso9660++
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}