46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Template file for 'mediainfo'
|
|
pkgname=mediainfo
|
|
version=0.7.94
|
|
revision=1
|
|
short_desc="Display technical and tag data for video and audio files"
|
|
homepage="http://mediaarea.net/MediaInfo"
|
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
|
configure_args="--with-wx-config=wx-config-3.0"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libmediainfo-devel zlib-devel wxWidgets-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
create_wrksrc=yes
|
|
_gnudir="MediaInfo/Project/GNU"
|
|
replaces="mediainfo-gui>=0"
|
|
license="BSD"
|
|
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.gz"
|
|
checksum=fe7cfe1551cc6d0e4a1deb32c55d9b8aee860b1fcacc1edb9b4092a103b18cd4
|
|
nocross=yes # wxWidgets
|
|
|
|
do_configure() {
|
|
for d in CLI GUI; do
|
|
cd $wrksrc/$_gnudir/$d
|
|
autoreconf -fi
|
|
./configure ${configure_args}
|
|
done
|
|
}
|
|
do_build() {
|
|
for d in CLI GUI; do
|
|
cd $wrksrc/$_gnudir/$d
|
|
make ${makejobs}
|
|
done
|
|
}
|
|
do_install() {
|
|
for d in CLI GUI; do
|
|
cd $wrksrc/$_gnudir/$d
|
|
make DESTDIR="${DESTDIR}" install
|
|
done
|
|
vlicense ${wrksrc}/MediaInfo/License.html
|
|
|
|
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
|
|
}
|