Debian Codegraph @

packaging/haiku/freac-version.recipe.template

raw
1 SUMMARY="A free and open source audio converter"
2 DESCRIPTION="fre:ac is a free and open source audio converter. It comes with \
3 an integrated tag editor and converts between various formats.
4
5 Features include:
6
7 - Support for MP3, MP4/AAC, Opus, FLAC and other formats
8 - Integrated player and tag editor
9 - Support for playlists, cue sheets and chapters
10 - Fast, multi-threaded conversion engine
11 - Ability to convert to multiple formats at once
12 - Can verify lossless input and output files
13 - Support for freedb/CDDB queries and submits
14 - Support for using command line codecs
15 - User interface available in 40+ languages
16 - Optional command line interface"
17 HOMEPAGE="https://freac.org/"
18 COPYRIGHT="2001-2026 Robert Kausch"
19 LICENSE="GNU GPL v2"
20 REVISION="1"
21 SOURCE_URI="https://github.com/enzo1982/freac/releases/download/v${portVersion}/freac-${portVersion}.tar.gz"
22 CHECKSUM_SHA256="<checksum>"
23 SOURCE_DIR="freac-${portVersion}"
24
25 ARCHITECTURES="all !x86_gcc2"
26 if [ "$targetArchitecture" = x86_gcc2 ]; then
27 SECONDARY_ARCHITECTURES="x86"
28 fi
29
30 commandBinDir=$binDir
31 if [ "$targetArchitecture" = x86_gcc2 ]; then
32 commandBinDir=$prefix/bin
33 fi
34
35 PROVIDES="
36 freac$secondaryArchSuffix = $portVersion
37 app:freac = $portVersion
38 cmd:freaccmd = $portVersion
39 "
40 REQUIRES="
41 haiku$secondaryArchSuffix
42 boca$secondaryArchSuffix >= 1.0.7
43 smooth$secondaryArchSuffix >= 0.9.10
44 cmd:ffmpeg
45 cmd:mpcdec
46 cmd:mpcenc
47 cmd:wavpack
48 cmd:wvunpack
49 lib:libsmooth_0.9$secondaryArchSuffix >= 0
50 lib:libboca_1.0$secondaryArchSuffix >= 3
51 lib:libcdio$secondaryArchSuffix
52 lib:libcdio_cdda$secondaryArchSuffix
53 lib:libcdio_paranoia$secondaryArchSuffix
54 lib:libfaad$secondaryArchSuffix
55 lib:libfdk_aac$secondaryArchSuffix
56 lib:libFLAC$secondaryArchSuffix
57 lib:libMAC$secondaryArchSuffix >= 9
58 lib:libmp3lame$secondaryArchSuffix
59 lib:libmp4v2$secondaryArchSuffix
60 lib:libmpg123$secondaryArchSuffix
61 lib:libogg$secondaryArchSuffix
62 lib:libopus$secondaryArchSuffix
63 lib:librubberband$secondaryArchSuffix
64 lib:libsamplerate$secondaryArchSuffix
65 lib:libsndfile$secondaryArchSuffix
66 lib:libspeex$secondaryArchSuffix
67 lib:libvorbis$secondaryArchSuffix
68 "
69
70 BUILD_REQUIRES="
71 haiku${secondaryArchSuffix}_devel
72 boca${secondaryArchSuffix}_devel >= 1.0.7
73 smooth${secondaryArchSuffix}_devel >= 0.9.10
74 devel:libboca_1.0$secondaryArchSuffix >= 3
75 "
76 BUILD_PREREQUIRES="
77 cmd:g++$secondaryArchSuffix
78 cmd:gcc$secondaryArchSuffix
79 cmd:ld$secondaryArchSuffix
80 cmd:make
81 cmd:pkg_config$secondaryArchSuffix
82 "
83
84 BUILD()
85 {
86 make $jobArgs
87 }
88
89 INSTALL()
90 {
91 make prefix="$prefix" bindir="$commandBinDir" libdir="$libDir" \
92 includedir="$includeDir" datadir="$dataDir" install
93
94 mkdir -p "$appsDir"
95 mv "$commandBinDir"/freac "$appsDir"
96
97 addAppDeskbarSymlink "$appsDir"/freac fre:ac
98 }