1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # These must be bumped together:
7 # - media-libs/libzen (if a release is available)
8 # - media-libs/libmediainfo
9 # - media-video/mediainfo
12 inherit autotools edos2unix flag-o-matic
14 DESCRIPTION="MediaInfo libraries"
15 HOMEPAGE="https://mediaarea.net/en/MediaInfo https://github.com/MediaArea/MediaInfoLib"
16 SRC_URI="https://mediaarea.net/download/source/${PN}/${PV}/${P/-/_}.tar.xz"
17 S="${WORKDIR}"/${MY_PN}Lib/Project/GNU/Library
21 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
24 # Tests try to fetch data from online sources
27 # The libzen dep usually needs to be bumped for each release!
30 >=media-libs/libzen-0.4.41
32 curl? ( net-misc/curl )
33 mms? ( >=media-libs/libmms-0.6.1 )
38 doc? ( app-text/doxygen )
44 sed -i 's:-O2::' configure.ac || die
46 append-cppflags -DMEDIAINFO_LIBMMS_DESCRIBE_SUPPORT=0
55 --disable-staticlibs \
57 $(use_with curl libcurl) \
58 $(use_with mms libmms)
65 cd "${WORKDIR}"/${MY_PN}Lib/Source/Doc || die
66 doxygen Doxyfile || die
72 local HTML_DOCS=( "${WORKDIR}"/${MY_PN}Lib/Doc/*.html )
77 edos2unix ${PN}.pc #414545
78 insinto /usr/$(get_libdir)/pkgconfig
81 for x in ./ Archive Audio Duplicate Export Image Multiple Reader Tag Text Video; do
82 insinto /usr/include/${MY_PN}/${x}
83 doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}/${x}/*.h
86 insinto /usr/include/${MY_PN}DLL
87 doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}DLL/*.h
89 dodoc "${WORKDIR}"/${MY_PN}Lib/*.txt
91 find "${ED}" -name '*.la' -delete || die