Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Library for reading and editing the meta-data of popular audio formats" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "Platform-independent library (tested on Windows/Linux) for reading and writing metadata in media files, including video, audio, and photo formats. This is a convenient one-stop-shop to present or tag all your media collection, regardless of which format/container these might use. You can read/write the standard or more common tags/properties of a media, or you can also create and retrieve your own custom tags." |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 3 | SECTION = "libs/multimedia" |
| 4 | HOMEPAGE = "http://taglib.github.io/" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 5 | LICENSE = "LGPL-2.1-only | MPL-1.1" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \ |
| 7 | file://COPYING.MPL;md5=bfe1f75d606912a4111c90743d6c7325 \ |
| 8 | file://taglib/audioproperties.h;beginline=1;endline=24;md5=9df2c7399519b7310568a7c55042ecee" |
| 9 | |
| 10 | DEPENDS = "zlib" |
| 11 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 12 | SRC_URI = "http://taglib.github.io/releases/${BP}.tar.gz" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "58f08b4db3dc31ed152c04896ee9172d22052bc7ef12888028c01d8b1d60ade0" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 16 | UPSTREAM_CHECK_URI = "https://taglib.org/" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | |
| 18 | BINCONFIG = "${bindir}/taglib-config" |
| 19 | |
| 20 | inherit cmake pkgconfig binconfig-disabled |
| 21 | |
| 22 | PACKAGES =+ "${PN}-c" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | FILES:${PN}-c = "${libdir}/libtag_c.so.*" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | |
| 25 | EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \ |
| 26 | -DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE \ |
| 27 | -DHAVE_BOOST_BYTESWAP=FALSE \ |
| 28 | -DCMAKE_CXX_STANDARD=11 \ |
| 29 | -DCMAKE_CXX_STANDARD_REQUIRED=OFF \ |
| 30 | -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ |
| 31 | " |
| 32 | CXXFLAGS += "-std=c++11" |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | do_configure:prepend () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | rm -f ${S}/admin/ltmain.sh |
| 36 | rm -f ${S}/admin/libtool.m4.in |
| 37 | } |
| 38 | |
| 39 | # without -fPIC depending packages failed with many error like: |
| 40 | # | <...>/ld: error: <...>/usr/lib/libtag.a(modfilebase.cpp.o): requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC |
| 41 | CXXFLAGS += "-fPIC" |