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