mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 11:42:40 +01:00
media-video/bento4: add to overlay
This commit is contained in:
3
media-video/bento4/Manifest
Normal file
3
media-video/bento4/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
AUX bento4.pc.in 214 BLAKE2B d98f10901ce3376ff0308b96d81a3b7f244370ac7f7c932f47da5b0b8354b702802407bcbd16735243c4daac15d3962a97a01bfcebb5c5df72226d7ee5a4b08f SHA512 681c62c453d43066fe151c9468fdcddf30e32bcf56708d3347f722e2d0beb79ece52a9e9e573efecbbc89b9a37ccc38c986904282e5c0752c8c0b17ff8859439
|
||||
DIST bento4-1.6.0.639.tar.gz 5475450 BLAKE2B da61234e94e8e12cd05a5c1ab7f94c57438ea5f1b8eabe2cb032a80b50f4052375b76f437e156643950da5de6a607a5d2df24bd589ca7cbd135441a97b90cc6e SHA512 6c3371c967f914032239eb24748a366e18061d5c623a746c3d090e22768dcf405cd572bf8a03e2b6a8dffbba348d34d456a2ab578841c3028cdd8a68f558b9f6
|
||||
EBUILD bento4-1.6.0.639.ebuild 1514 BLAKE2B 0d18044779bc05eb709d4472605db8f60c93167bd69f7ad0c325db54e49d836221e281cf9bf8a76893bee39f574c51ca763954dc38f9b3921e2006dd04d8eb0e SHA512 23117541f5b736fe1c27238076b75e43e622f771d220cf9ad7d2e3147977c911feb51e4417d6297490ae25494dd86f07864dc8e64e6640e66172b237e6745931
|
||||
64
media-video/bento4/bento4-1.6.0.639.ebuild
Normal file
64
media-video/bento4/bento4-1.6.0.639.ebuild
Normal file
@@ -0,0 +1,64 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Bento4 tools designed to read and write ISO-MP4 files"
|
||||
HOMEPAGE="
|
||||
https://www.bento4.com/
|
||||
https://github.com/axiomatic-systems/Bento4
|
||||
"
|
||||
|
||||
IUSE="+apps"
|
||||
|
||||
MY_PV="$(ver_cut 1-3)-$(ver_cut 4)"
|
||||
|
||||
SRC_URI="https://github.com/axiomatic-systems/Bento4/archive/refs/tags/v${MY_PV}tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
|
||||
S="${WORKDIR}/${PN^}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's#ap4 STATIC#ap4 SHARED#g' CMakeLists.txt
|
||||
sed -e 's#@BENTO4_VERSION@#'${MY_PV}'#g' "${FILESDIR}"/bento4.pc.in > bento4.pc
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_BUILD_RPATH=ON
|
||||
-DBUILD_APPS=$(usex apps ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Avoid conflicts with media-libs/libmp4v2[utils]
|
||||
mv mp4extract mp4extract-bento4 || die
|
||||
mv mp4info mp4info-bento4 || die
|
||||
|
||||
if use apps; then
|
||||
dobin aac2mp4 avcinfo fixaacsampledescription hevcinfo mp42aac mp42avc \
|
||||
mp42hevc mp42hls mp42ts mp4audioclip mp4compact mp4dcfpackager \
|
||||
mp4decrypt mp4diff mp4dump mp4edit mp4encrypt mp4extract-bento4 \
|
||||
mp4fragment mp4iframeindex mp4info-bento4 mp4mux mp4pssh mp4rtphintinfo \
|
||||
mp4split mp4tag
|
||||
fi
|
||||
|
||||
dolib.so libap4.so
|
||||
|
||||
insinto "${EPREFIX}"/usr/include/bento4
|
||||
doins ${S}/Source/C++/*/*.h
|
||||
|
||||
insinto "${EPREFIX}"/usr/$(get_libdir)/pkgconfig
|
||||
doins ${S}/bento4.pc
|
||||
|
||||
dodoc ${S}/Documents/LICENSE.txt
|
||||
}
|
||||
9
media-video/bento4/files/bento4.pc.in
Normal file
9
media-video/bento4/files/bento4.pc.in
Normal file
@@ -0,0 +1,9 @@
|
||||
prefix=/usr
|
||||
includedir=${prefix}/include
|
||||
libdir=${prefix}/lib64
|
||||
|
||||
Name: Bento4
|
||||
Description: Bento4 MP4, DASH, HLS, CMAF SDK and Tools
|
||||
Version: @BENTO4_VERSION@
|
||||
Libs: -L${libdir} -lap4
|
||||
Cflags: -I${includedir}/bento4
|
||||
Reference in New Issue
Block a user