a70ea8228c71744cdc72975c5d1106589bcfe2f8
[git/cygwin-packages/mediainfo.git] / mediainfo.cygport
1 WX_VERSION=2.8
2 inherit qt4-qmake wxwidgets
3
4 NAME="mediainfo"
5 VERSION=0.7.91
6 RELEASE=1
7 CATEGORY="Audio Video"
8 SUMMARY="Displays multimedia file information"
9 DESCRIPTION="MediaInfo is a convenient unified display of the most relevant
10 technical and tag data for video and audio files."
11 HOMEPAGE="http://mediaarea.net/"
12 SRC_URI="http://mediaarea.net/download/source/mediainfo/${VERSION}/mediainfo_${VERSION}.tar.xz"
13 SRC_DIR="MediaInfo"
14 PATCH_URI="http://pkgs.fedoraproject.org/cgit/rpms/mediainfo.git/plain/mediainfo-qt.patch"
15
16 PKG_NAMES="${NAME} ${NAME}-gui ${NAME}-qt"
17 mediainfo_DOCS="LICENSE README.md Release/ReadMe_CLI_Linux.txt"
18 mediainfo_CONTENTS="
19 usr/bin/mediainfo.exe
20 "
21 mediainfo_gui_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
22 mediainfo_gui_CONTENTS="
23 usr/bin/mediainfo-gui.exe
24 usr/share/appdata/mediainfo-gui.appdata.xml
25 usr/share/applications/mediainfo-gui.desktop
26 usr/share/pixmaps/mediainfo.xpm
27 "
28 mediainfo_qt_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
29 mediainfo_qt_CONTENTS="
30 usr/bin/mediainfo-qt.exe
31 usr/share/applications/mediainfo-qt.desktop
32 usr/share/pixmaps/mediainfo-qt.png
33 "
34
35 src_compile() {
36 lndirs
37
38 cd ${B}/Project/GNU/CLI
39 cygautoreconf
40 CYGCONF_SOURCE=. \
41 cygconf
42 cygmake
43
44 cd ${B}/Project/GNU/GUI
45 cygautoreconf
46 CYGCONF_SOURCE=. \
47 cygconf --with-wx-config=${WX_CONFIG}
48 cygmake
49
50 cd ${B}/Project/QMake/GUI
51 cygqmake4 .
52 cygmake
53 }
54
55 src_install() {
56 cd ${B}/Project/GNU/CLI
57 cyginstall
58 cd ${B}/Project/GNU/GUI
59 cyginstall
60 domenu mediainfo-gui.desktop
61 cd ${B}/Project/QMake/GUI
62 qt4_qmake_install
63 sed -e 's/gui/qt/;/^Name/s/$/ Qt/;/^Icon/s/$/-qt/' \
64 ../../GNU/GUI/mediainfo-gui.desktop > mediainfo-qt.desktop
65 domenu mediainfo-qt.desktop
66
67 newicon ${S}/Source/Resource/Image/MediaInfo.png mediainfo-qt.png
68 newicon ${S}/Source/Resource/Image/MediaInfo.xpm mediainfo.xpm
69 }
This page took 0.043163 seconds and 4 git commands to generate.