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