mediainfo 0.7.93
[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"
ba2ad964 6VERSION=0.7.93
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"
15PATCH_URI="http://pkgs.fedoraproject.org/cgit/rpms/mediainfo.git/plain/mediainfo-qt.patch"
4fb0de44 16
a84de096
YS
17PKG_NAMES="${NAME} ${NAME}-gui ${NAME}-qt"
18mediainfo_DOCS="LICENSE README.md Release/ReadMe_CLI_Linux.txt"
d7843341
YS
19mediainfo_CONTENTS="
20 usr/bin/mediainfo.exe
d7843341 21"
a84de096 22mediainfo_gui_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
d7843341 23mediainfo_gui_CONTENTS="
ba2ad964 24 etc/postinstall/
d7843341
YS
25 usr/bin/mediainfo-gui.exe
26 usr/share/appdata/mediainfo-gui.appdata.xml
27 usr/share/applications/mediainfo-gui.desktop
ba2ad964 28 usr/share/icons/hicolor/*/apps/mediainfo.*
a84de096
YS
29"
30mediainfo_qt_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
31mediainfo_qt_CONTENTS="
32 usr/bin/mediainfo-qt.exe
33 usr/share/applications/mediainfo-qt.desktop
ba2ad964
YS
34 usr/share/pixmaps/mediainfo.*
35"
36# KDE 4 integration
37PKG_IGNORE="
38 usr/share/apps/konqueror/servicemenus/mediainfo-gui.desktop
39 usr/share/kde4/services/ServiceMenus/mediainfo-gui.desktop
d7843341 40"
4fb0de44
YS
41
42src_compile() {
d7843341
YS
43 lndirs
44
a84de096 45 cd ${B}/Project/GNU/CLI
d7843341
YS
46 cygautoreconf
47 CYGCONF_SOURCE=. \
4fb0de44
YS
48 cygconf
49 cygmake
50
a84de096 51 cd ${B}/Project/GNU/GUI
d7843341
YS
52 cygautoreconf
53 CYGCONF_SOURCE=. \
4fb0de44
YS
54 cygconf --with-wx-config=${WX_CONFIG}
55 cygmake
a84de096
YS
56
57 cd ${B}/Project/QMake/GUI
58 cygqmake4 .
59 cygmake
4fb0de44
YS
60}
61
62src_install() {
a84de096 63 cd ${B}/Project/GNU/CLI
4fb0de44 64 cyginstall
a84de096 65 cd ${B}/Project/GNU/GUI
4fb0de44 66 cyginstall
a84de096
YS
67 cd ${B}/Project/QMake/GUI
68 qt4_qmake_install
ba2ad964 69 sed -e 's/gui/qt/;/^Name/s/$/ Qt/' \
a84de096
YS
70 ../../GNU/GUI/mediainfo-gui.desktop > mediainfo-qt.desktop
71 domenu mediainfo-qt.desktop
4fb0de44 72
ba2ad964 73 newicon ${S}/Source/Resource/Image/MediaInfo.png mediainfo.png
4fb0de44 74}
This page took 0.051764 seconds and 5 git commands to generate.