Merge pull request #1522 from tonkazoid/mediainfo
mediainfo: combine -gui package
This commit is contained in:
commit
dcca46e023
2 changed files with 30 additions and 23 deletions
|
@ -1 +0,0 @@
|
||||||
mediainfo
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=mediainfo
|
pkgname=mediainfo
|
||||||
version=0.7.73
|
version=0.7.73
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Display technical and tag data for video and audio files"
|
short_desc="Display technical and tag data for video and audio files"
|
||||||
homepage="http://mediaarea.net/MediaInfo"
|
homepage="http://mediaarea.net/MediaInfo"
|
||||||
maintainer="Georg Schabel <gescha@posteo.de>"
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
||||||
|
@ -11,35 +11,43 @@ license="BSD"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}.tar.gz"
|
||||||
checksum=1fde5b2972d923f7f87c2b2e738e8a086603243770961b077cf558f9836e612e
|
checksum=1fde5b2972d923f7f87c2b2e738e8a086603243770961b077cf558f9836e612e
|
||||||
|
|
||||||
build_style=gnu-configure
|
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="libmediainfo-devel zlib-devel
|
makedepends="libmediainfo-devel zlib-devel
|
||||||
wxGTK-devel wxWidgets-devel"
|
wxGTK-devel wxWidgets-devel"
|
||||||
|
depends="desktop-file-utils hicolor-icon-theme"
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc="MediaInfo/Project/GNU/CLI"
|
_gnudir="MediaInfo/Project/GNU"
|
||||||
|
replaces="mediainfo-gui>=0"
|
||||||
|
|
||||||
pre_configure() {
|
do_configure() {
|
||||||
|
for d in CLI GUI; do
|
||||||
|
cd $wrksrc/$_gnudir/$d
|
||||||
autoreconf -fi
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense ${wrksrc}/MediaInfo/License.html
|
vlicense ${wrksrc}/MediaInfo/License.html
|
||||||
}
|
|
||||||
|
|
||||||
mediainfo-gui_package() {
|
|
||||||
short_desc+=" - GUI version"
|
|
||||||
depends="mediainfo>=${version}_${revision} desktop-file-utils hicolor-icon-theme"
|
|
||||||
pkg_install(){
|
|
||||||
cd ${wrksrc}/MediaInfo/Project/GNU/GUI
|
|
||||||
autoreconf -fi
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make DESTDIR="${DESTDIR}" install
|
|
||||||
|
|
||||||
vmkdir usr/share/icons/hicolor/scalable/apps
|
vmkdir usr/share/icons/hicolor/scalable/apps
|
||||||
vinstall ${wrksrc}/MediaInfo/Source/Resource/Image/MediaInfo.svg 644 \
|
vinstall ${wrksrc}/MediaInfo/Source/Resource/Image/MediaInfo.svg 644 \
|
||||||
usr/share/icons/hicolor/scalable/apps mediainfo.svg
|
usr/share/icons/hicolor/scalable/apps mediainfo.svg
|
||||||
vinstall ${wrksrc}/MediaInfo/Source/Resource/Image/MediaInfo.png 644 \
|
vinstall ${wrksrc}/MediaInfo/Source/Resource/Image/MediaInfo.png 644 \
|
||||||
usr/share/pixmaps mediainfo-gui.png
|
usr/share/pixmaps mediainfo-gui.png
|
||||||
vinstall mediainfo-gui.desktop 644 usr/share/applications
|
vinstall ${wrksrc}/$_gnudir/GUI/mediainfo-gui.desktop 644 usr/share/applications
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue