libcdio1-2.0.0.recipe revision c27d80e8
1SUMMARY="A library to encapsulate CD-ROM reading and control"
2DESCRIPTION="The libcdio package contains a library for CD-ROM and CD image \
3access. Applications wishing to be oblivious of the OS- and device-dependent \
4properties of a CD-ROM or of the specific details of various CD-image formats \
5may benefit from using this library."
6HOMEPAGE="https://www.gnu.org/software/libcdio/"
7COPYRIGHT="2002-2017 Rocky Bernstein and Herbert Valerio Riedel"
8LICENSE="GNU GPL v3"
9REVISION="1"
10SOURCE_URI="https://ftpmirror.gnu.org/libcdio/libcdio-$portVersion.tar.gz
11	https://ftp.gnu.org/gnu/libcdio/libcdio-$portVersion.tar.gz"
12CHECKSUM_SHA256="1b481b5da009bea31db875805665974e2fc568e2b2afa516f4036733657cf958"
13SOURCE_DIR="libcdio-$portVersion"
14PATCHES="libcdio-$portVersion.patchset"
15
16ARCHITECTURES="x86_gcc2 x86 x86_64"
17SECONDARY_ARCHITECTURES="x86_gcc2 x86"
18
19libcdioLibs="
20	libcdio
21	"
22libcdioVersion=18.0.0
23for i in lib $libcdioLibs; do
24	eval "${i}VersionCompat=\"\$${i}Version compat >= \${${i}Version%%.*}\""
25done
26
27PROVIDES="
28	libcdio1$secondaryArchSuffix = $portVersion
29	lib:libcdio$secondaryArchSuffix = $libcdioVersionCompat
30	"
31REQUIRES="
32	haiku$secondaryArchSuffix
33	lib:libcddb$secondaryArchSuffix
34	lib:libiconv$secondaryArchSuffix
35	lib:libncurses$secondaryArchSuffix
36	"
37
38PROVIDES_devel="
39	libcdio1${secondaryArchSuffix}_devel = $portVersion
40	devel:libcdio$secondaryArchSuffix = $libcdioVersionCompat
41	"
42REQUIRES_devel="
43	libcdio1$secondaryArchSuffix == $portVersion base
44	"
45CONFLICTS_devel="
46	libcdio${secondaryArchSuffix}_devel
47	libcdio0${secondaryArchSuffix}_devel
48	"
49
50BUILD_REQUIRES="
51	haiku${secondaryArchSuffix}_devel
52	devel:libcddb$secondaryArchSuffix
53	devel:libiconv$secondaryArchSuffix
54	devel:libncurses$secondaryArchSuffix
55	"
56BUILD_PREREQUIRES="
57	cmd:automake
58	cmd:autoreconf
59	cmd:gcc$secondaryArchSuffix
60	cmd:libtoolize$secondaryArchSuffix
61	cmd:make
62	cmd:pkg_config$secondaryArchSuffix
63	"
64
65defineDebugInfoPackage libcdio$secondaryArchSuffix \
66	"$libDir"/libcdio.so.$libcdioVersion
67
68BUILD()
69{
70	autoreconf -vfi
71	runConfigure ./configure
72	make $jobArgs
73}
74
75INSTALL()
76{
77	make install
78
79	rm -f "$libDir"/lib*.la "$documentationDir" "$binDir" \
80		"$libDir\libcdio++*" "$libDir\libiso9660*" "$libDir\libudf*"
81
82	# set up the develop directory correctly
83	prepareInstalledDevelLibs ${libcdioLibs//xx/++}
84	fixPkgconfig
85
86	# devel package
87	packageEntries devel \
88		"$developDir"
89}
90
91TEST()
92{
93	make check
94}
95