60 lines
1.7 KiB
Bash
60 lines
1.7 KiB
Bash
# Template file for 'mediainfo'
|
|
pkgname=mediainfo
|
|
version=18.12
|
|
revision=1
|
|
wrksrc=MediaInfo
|
|
configure_args="--with-wx-config=wx-config-gtk3"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libmediainfo-devel zlib-devel $(vopt_if GUI wxWidgets-gtk3-devel)"
|
|
depends="$(vopt_if GUI 'desktop-file-utils hicolor-icon-theme')"
|
|
short_desc="Display technical and tag data for video and audio files"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://mediaarea.net/MediaInfo"
|
|
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.xz"
|
|
checksum=6d3c10859d0dd021851d20a01c73f1fe41565d5d198a37aa8bf424e1dc29f306
|
|
replaces="mediainfo-gui>=0"
|
|
|
|
build_options="CLI GUI"
|
|
build_options_default="CLI GUI"
|
|
desc_option_CLI="Build CLI version"
|
|
desc_option_GUI="Build GUI version"
|
|
|
|
do_configure() {
|
|
local targets="$(vopt_if CLI CLI) $(vopt_if GUI GUI)"
|
|
|
|
for d in $targets; do
|
|
cd $wrksrc/Project/GNU/$d
|
|
autoreconf -fi
|
|
./configure ${configure_args}
|
|
done
|
|
}
|
|
|
|
do_build() {
|
|
local targets="$(vopt_if CLI CLI) $(vopt_if GUI GUI)"
|
|
|
|
for d in $targets; do
|
|
cd $wrksrc/Project/GNU/$d
|
|
make ${makejobs}
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
local targets="$(vopt_if CLI CLI) $(vopt_if GUI GUI)"
|
|
|
|
for d in $targets; do
|
|
cd $wrksrc/Project/GNU/$d
|
|
make DESTDIR="${DESTDIR}" install
|
|
done
|
|
vlicense ${wrksrc}/License.html
|
|
|
|
if [ "$build_option_GUI" ]; then
|
|
vinstall ${wrksrc}/Source/Resource/Image/MediaInfo.svg 644 \
|
|
usr/share/icons/hicolor/scalable/apps mediainfo.svg
|
|
vinstall ${wrksrc}/Source/Resource/Image/MediaInfo.png 644 \
|
|
usr/share/pixmaps mediainfo-gui.png
|
|
vinstall ${wrksrc}/Project/GNU/GUI/mediainfo-gui.desktop 644 \
|
|
usr/share/applications
|
|
fi
|
|
}
|