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