| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Media library"
HOMEPAGE="https://github.com/vimeo/l-smash"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/vimeo/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/vimeo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
IUSE="-static-libs -debug"
RDEPEND+="
media-video/ffmpeg
media-libs/obuparse
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
src_configure() {
local myconf="--enable-shared"
if ! use static-libs; then
myconf="${myconf} --disable-static"
fi
if use debug; then
myconf="${myconf} --enable-debug"
fi
./configure \
--prefix="${EPREFIX}"/usr \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--extra-cflags="${CFLAGS}" \
--extra-ldflags="${LDFLAGS}" \
${myconf} || die
}
media-video/ffmpeg media-libs/obuparse virtual/pkgconfig
media-video/ffmpeg media-libs/obuparse