1SUMMARY="Plugin pack is a set of extra plugins for Qmmp"
2DESCRIPTION="Plugin List:
3 * FFap - enhanced Monkey's Audio (APE) decoder (24-bit samples and embedded cue support)
4 * XMP - module player with use of the libxmp library
5 * Sample Rate Converter - resampler based on libsamplerate library
6 * Goom - audio visualization based on goom project
7 * FFVideo - video playback engine based on FFmpeg library"
8HOMEPAGE="http://qmmp.ylsoftware.com/"
9COPYRIGHT="2006-2022 Qmmp Development Team"
10LICENSE="GNU GPL v2"
11REVISION="1"
12SOURCE_URI="https://qmmp.ylsoftware.com/files/qmmp-plugin-pack/2.0/qmmp-plugin-pack-$portVersion.tar.bz2"
13CHECKSUM_SHA256="c8d50f1cb76b38757697aa358b841b622cbbd026ef28055d972a30a8328a3fd4"
14SOURCE_DIR="qmmp-plugin-pack-$portVersion"
15
16ARCHITECTURES="all !x86_gcc2"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	qmmp_plugin_pack$secondaryArchSuffix = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	lib:libavcodec$secondaryArchSuffix
25	lib:libavformat$secondaryArchSuffix
26	lib:libavutil$secondaryArchSuffix
27	lib:libqmmp$secondaryArchSuffix
28	lib:libqmmpui$secondaryArchSuffix
29	lib:libQt6Core$secondaryArchSuffix
30	lib:libQt6Gui$secondaryArchSuffix
31	lib:libQt6Widgets$secondaryArchSuffix
32	lib:libsamplerate$secondaryArchSuffix
33	lib:libtag$secondaryArchSuffix
34	lib:libxmp$secondaryArchSuffix
35	lib:libz$secondaryArchSuffix
36	"
37
38BUILD_REQUIRES="
39	haiku${secondaryArchSuffix}_devel
40	qt6_tools${secondaryArchSuffix}_devel
41	devel:libavcodec$secondaryArchSuffix
42	devel:libavformat$secondaryArchSuffix
43	devel:libqmmp$secondaryArchSuffix
44	devel:libQt6Core$secondaryArchSuffix
45	devel:libQt6Gui$secondaryArchSuffix
46	devel:libQt6Widgets$secondaryArchSuffix
47	devel:libsamplerate$secondaryArchSuffix
48	devel:libtag$secondaryArchSuffix
49	devel:libxmp$secondaryArchSuffix
50	devel:libz$secondaryArchSuffix
51	"
52BUILD_PREREQUIRES="
53	cmd:cmake
54	cmd:find
55	cmd:flex
56	cmd:gcc$secondaryArchSuffix
57	cmd:make
58	cmd:pkg_config$secondaryArchSuffix
59	cmd:xargs
60	cmd:yacc
61	cmd:yasm
62	"
63
64BUILD()
65{
66	mkdir -p build
67	cd build
68
69	cmake .. $cmakeDirArgs \
70		-DCMAKE_INSTALL_PREFIX=$appsDir/Qmmp \
71		-DCMAKE_INSTALL_BINDIR=$appsDir/Qmmp \
72		-DPLUGIN_DIR=$appsDir/Qmmp/plugins \
73		-DCMAKE_BUILD_TYPE=RELEASE \
74		-DUSE_FFVIDEO=OFF
75
76	make $jobArgs
77}
78
79INSTALL()
80{
81	cd build
82	make install
83}
84