blob: e68ad0f189a4e5c7c21762aebd1826ce97b9b64a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Qt-based Multimedia Player"
2DESCRIPTION = "Qmmp is an audio player, written with the help of the Qt library. The user interface is similar to Winamp or XMMS."
3HOMEPAGE = "http://qmmp.ylsoftware.com"
4LICENSE = "GPLv2"
5LICENSE_FLAGS = "commercial"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7SECTION = "multimedia"
8
9DEPENDS = "taglib libmad libvorbis libogg alsa-lib libsndfile1 libsamplerate0 curl"
10
11SRC_URI = "http://qmmp.ylsoftware.com/files/${BP}.tar.bz2 \
12 file://no-host-paths.patch \
13 "
14
15SRC_URI[md5sum] = "67e96e89c61b7432e5a12f555db702b1"
16SRC_URI[sha256sum] = "0daea3f0a0df7b34089513c2c57413c82816ab8892bddabf49c18a7956255449"
17inherit cmake qt4x11
18
19QMMP_PLUGIN_OPTIONS ??= "\
20 -DUSE_MMS:BOOL=FALSE \
21 -DUSE_MPC:BOOL=FALSE \
22 -DUSE_MODPLUG:BOOL=FALSE \
23 -DUSE_WAVPACK:BOOL=FALSE \
24 -DUSE_FFMPEG:BOOL=FALSE \
25 -DUSE_AAC:BOOL=FALSE \
26 -DUSE_CDA:BOOL=FALSE \
27 -DUSE_MIDI:BOOL=FALSE \
28 -DUSE_GME:BOOL=FALSE \
29 -DUSE_OSS4:BOOL=FALSE \
30 -DUSE_JACK:BOOL=FALSE \
31 -DUSE_BS2B:BOOL=FALSE \
32 -DUSE_PROJECTM:BOOL=FALSE \
33 -DUSE_ENCA:BOOL=FALSE \
34 "
35
36export EXTRA_OECMAKE = "-DQT_QMAKE_EXECUTABLE=${OE_QMAKE_QMAKE} \
37 -DQT_LRELEASE_EXECUTABLE=${OE_QMAKE_LRELEASE} \
38 -DQT_MOC_EXECUTABLE=${OE_QMAKE_MOC} \
39 -DQT_UIC_EXECUTABLE=${OE_QMAKE_UIC} \
40 -DQT_RCC_EXECUTABLE=${OE_QMAKE_RCC} \
41 -DQT_LIBRARY_DIR=${OE_QMAKE_LIBDIR_QT} \
42 -DQT_HEADERS_DIR=${OE_QMAKE_INCDIR_QT} \
43 -DQT_QTCORE_INCLUDE_DIR=${OE_QMAKE_INCDIR_QT}/QtCore \
44 ${QMMP_PLUGIN_OPTIONS} \
45 "
46
47do_configure() {
48 # Ensure we get the cmake configure and not qmake
49 cmake_do_configure
50}
51
52PACKAGES_DYNAMIC += "^qmmp-plugin-.* "
53
54python populate_packages_prepend () {
55 qmmp_libdir = d.expand('${libdir}/qmmp')
56 gd = d.expand('${D}/${libdir}/qmmp')
57 plug_dirs = os.listdir(gd)
58
59 for plug_dir in plug_dirs:
60 g_plug_dir = os.path.join(qmmp_libdir,plug_dir)
61 do_split_packages(d, g_plug_dir, '^lib(.*)\.so$', 'qmmp-plugin-' + plug_dir.lower() + '-%s', 'Qmmp ' + plug_dir + ' plugin for %s')
62}
63
64FILES_${PN} = "\
65 ${bindir}/qmmp \
66 ${libdir}/lib*${SOLIBS} \
67 ${datadir}/icons/* \
68 ${datadir}/qmmp/images/* \
69 ${datadir}/applications/* \
70 "
71
72FILES_${PN}-dbg += "\
73 ${libdir}/qmmp/*/.debug/* \
74 "
75
76RDEPENDS_${PN} += "taglib alsa-lib libmad curl libicui18n"