Debian Codegraph @

packaging/haiku/boca-version.recipe.template

raw
1 SUMMARY="An audio component framework and library"
2 DESCRIPTION="BoCA is the component framework behind the fre:ac audio \
3 converter. It provides unified interfaces for components like encoders, \
4 decoders, taggers and extensions as well as code to support communication \
5 between applications and their components."
6 HOMEPAGE="https://github.com/enzo1982/BoCA"
7 COPYRIGHT="2007-2026 Robert Kausch"
8 LICENSE="GNU GPL v2"
9 REVISION="1"
10 SOURCE_URI="https://github.com/enzo1982/BoCA/releases/download/v${portVersion}/boca-${portVersion}.tar.gz"
11 CHECKSUM_SHA256="<checksum>"
12 SOURCE_DIR="boca-${portVersion}"
13
14 ARCHITECTURES="all !x86_gcc2"
15 SECONDARY_ARCHITECTURES="x86"
16
17 libVersion="${portVersion%.*}"
18 libVersionCompat="3 compat >= 2"
19
20 PROVIDES="
21 boca$secondaryArchSuffix = $portVersion
22 lib:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
23 "
24 REQUIRES="
25 haiku$secondaryArchSuffix
26 smooth$secondaryArchSuffix >= 0.9.10
27 lib:libsmooth_0.9$secondaryArchSuffix >= 0
28 lib:libexpat$secondaryArchSuffix
29 lib:liburiparser$secondaryArchSuffix
30 lib:libz$secondaryArchSuffix
31 "
32
33 PROVIDES_devel="
34 boca${secondaryArchSuffix}_devel = $portVersion
35 devel:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
36 "
37 REQUIRES_devel="
38 boca$secondaryArchSuffix == $portVersion base
39 smooth${secondaryArchSuffix}_devel >= 0.9.10
40 devel:libsmooth_0.9$secondaryArchSuffix >= 0
41 "
42
43 BUILD_REQUIRES="
44 haiku${secondaryArchSuffix}_devel
45 smooth${secondaryArchSuffix}_devel >= 0.9.10
46 devel:libsmooth_0.9$secondaryArchSuffix
47 devel:libexpat$secondaryArchSuffix
48 devel:liburiparser$secondaryArchSuffix
49 devel:libz$secondaryArchSuffix
50 "
51 BUILD_PREREQUIRES="
52 cmd:g++$secondaryArchSuffix
53 cmd:gcc$secondaryArchSuffix
54 cmd:ld$secondaryArchSuffix
55 cmd:make
56 cmd:pkg_config$secondaryArchSuffix
57 "
58
59 BUILD()
60 {
61 make $jobArgs
62 }
63
64 INSTALL()
65 {
66 make prefix="$prefix" libdir="$libDir" includedir="$includeDir" install
67
68 mkdir -p "$developLibDir"
69
70 ln -r -s "$libDir"/libboca-$libVersion.so.3 \
71 "$developLibDir"/libboca-$libVersion.so
72 ln -r -s "$libDir"/libboca-$libVersion.so.3 \
73 "$developLibDir"/libboca-$libVersion.so.3
74
75 packageEntries devel \
76 "$developDir"
77 }