diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.4.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.4.bb | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.4.bb b/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.4.bb new file mode 100644 index 0000000000..37264423c4 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.4.bb | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | SUMMARY = "C and C++ cross-platform library for decoding tracked music files (modules)" | ||
| 2 | DESCRIPTION = "libopenmpt is a cross-platform C++ and C library to decode tracked \ | ||
| 3 | music files (modules) into a raw PCM audio stream. It also comes with openmpt123, a \ | ||
| 4 | cross-platform command-line or terminal based module file player. libopenmpt is based \ | ||
| 5 | on the player code of the OpenMPT project." | ||
| 6 | HOMEPAGE = "https://lib.openmpt.org/libopenmpt/" | ||
| 7 | SECTION = "libs" | ||
| 8 | |||
| 9 | LICENSE = "BSD-3-Clause" | ||
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=979c86485a65d11403e9bf083b9a0812" | ||
| 11 | |||
| 12 | DEPENDS = "virtual/libiconv" | ||
| 13 | |||
| 14 | SRC_URI = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${PV}+release.autotools.tar.gz \ | ||
| 15 | file://run-ptest \ | ||
| 16 | " | ||
| 17 | SRC_URI[sha256sum] = "627f9bf11aacae615a1f2c982c7e88cb21f11b2d6f0267946f7c82c5eae4943b" | ||
| 18 | |||
| 19 | S = "${UNPACKDIR}/libopenmpt-${PV}+release.autotools" | ||
| 20 | |||
| 21 | inherit autotools pkgconfig ptest | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= " \ | ||
| 24 | openmpt123 \ | ||
| 25 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ | ||
| 26 | flac mpg123 ogg sndfile vorbis vorbisfile zlib \ | ||
| 27 | ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)} \ | ||
| 28 | " | ||
| 29 | |||
| 30 | PACKAGECONFIG[openmpt123] = "--enable-openmpt123,--disable-openmpt123" | ||
| 31 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests" | ||
| 32 | |||
| 33 | # These packageconfigs affect openmpt123 | ||
| 34 | PACKAGECONFIG[flac] = "--with-flac,--without-flac,flac" | ||
| 35 | PACKAGECONFIG[mpg123] = "--with-mpg123,--without-mpg123,mpg123" | ||
| 36 | PACKAGECONFIG[ogg] = "--with-ogg,--without-ogg,libogg" | ||
| 37 | PACKAGECONFIG[portaudio] = "--with-portaudio,--without-portaudio,portaudio-v19" | ||
| 38 | PACKAGECONFIG[pulseaudio] = "--with-pulseaudio,--without-pulseaudio,pulseaudio" | ||
| 39 | PACKAGECONFIG[sdl2] = "--with-sdl2,--without-sdl2,virtual/libsdl2" | ||
| 40 | PACKAGECONFIG[sndfile] = "--with-sndfile,--without-sndfile,libsndfile1" | ||
| 41 | PACKAGECONFIG[vorbis] = "--with-vorbis,--without-vorbis,libvorbis" | ||
| 42 | PACKAGECONFIG[vorbisfile] = "--with-vorbisfile,--without-vorbisfile,libvorbis" | ||
| 43 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | ||
| 44 | |||
| 45 | EXTRA_OECONF += " \ | ||
| 46 | --disable-doxygen-doc \ | ||
| 47 | --disable-examples \ | ||
| 48 | --without-portaudiocpp \ | ||
| 49 | " | ||
| 50 | |||
| 51 | do_compile_ptest() { | ||
| 52 | oe_runmake ${PARALLEL_MAKE} libopenmpttest | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install_ptest() { | ||
| 56 | install -d ${D}${PTEST_PATH}/test | ||
| 57 | install -m 0755 ${B}/libopenmpttest ${D}${PTEST_PATH} | ||
| 58 | install -m 0644 ${S}/test/test.mptm ${D}${PTEST_PATH}/test | ||
| 59 | install -m 0644 ${S}/test/test.s3m ${D}${PTEST_PATH}/test | ||
| 60 | install -m 0644 ${S}/test/test.xm ${D}${PTEST_PATH}/test | ||
| 61 | install -m 0644 ${S}/test/test.mod ${D}${PTEST_PATH}/test | ||
| 62 | |||
| 63 | install -d ${D}${PTEST_PATH}/libopenmpt | ||
| 64 | install -m 0644 ${S}/libopenmpt/libopenmpt_version.mk ${D}${PTEST_PATH}/libopenmpt | ||
| 65 | } | ||
| 66 | |||
| 67 | PACKAGES =+ "${PN}-openmpt123 ${PN}-openmpt123-doc" | ||
| 68 | FILES:${PN}-openmpt123 = "${bindir}/openmpt123" | ||
| 69 | FILES:${PN}-openmpt123-doc = "${mandir}/man1/openmpt123*" | ||
| 70 | |||
| 71 | # Since version 0.3, libopenmpt uses SemVer 2.0.0 versioning. | ||
| 72 | # The SemVer versioning scheme is incompatible with Debian/Ubuntu | ||
| 73 | # package version names. | ||
| 74 | DEBIAN_NOAUTONAME:${PN} = "1" | ||
| 75 | |||
| 76 | RDEPENDS:${PN}:libc-glibc = " \ | ||
| 77 | glibc-gconv \ | ||
| 78 | glibc-gconv-cp1252 \ | ||
| 79 | glibc-gconv-ibm437 \ | ||
| 80 | glibc-gconv-iso8859-1 \ | ||
| 81 | glibc-gconv-iso8859-15 \ | ||
| 82 | " | ||
