mediainfo 0.7.93
[git/cygwin-packages/mediainfo.git] / mediainfo.cygport
index 795bd91cb94f0b1a4ad59b5636ac03fe1834c045..f479c39b94f6783385b369e8f974921c8076a6e2 100644 (file)
@@ -1,73 +1,74 @@
-WX_VERSION=2.8
-inherit wxwidgets
+WX_VERSION=3.0
+WX_TOOLKIT=gtk2
+inherit qt4-qmake wxwidgets
 
 NAME="mediainfo"
-VERSION=0.7.65
+VERSION=0.7.93
 RELEASE=1
 CATEGORY="Audio Video"
 SUMMARY="Displays multimedia file information"
 DESCRIPTION="MediaInfo is a convenient unified display of the most relevant
 technical and tag data for video and audio files."
-HOMEPAGE="http://mediainfo.sourceforge.net/"
-SRC_URI="mirror://sourceforge/mediainfo/mediainfo_${VERSION}.tar.bz2
-         mirror://sourceforge/mediainfo/libmediainfo_${VERSION}.tar.bz2
-         mirror://sourceforge/zenlib/libzen_0.4.29.tar.bz2"
-SRC_DIR=.
-PATCH_URI="0.7.58-cygwin.patch  0.7.58-vpath.patch"
+HOMEPAGE="http://mediaarea.net/"
+SRC_URI="http://mediaarea.net/download/source/mediainfo/${VERSION}/mediainfo_${VERSION}.tar.xz"
+SRC_DIR="MediaInfo"
+PATCH_URI="http://pkgs.fedoraproject.org/cgit/rpms/mediainfo.git/plain/mediainfo-qt.patch"
 
-PKG_NAMES="${NAME} ${NAME}-gui"
-mediainfo_CONTENTS="usr/bin/mediainfo.exe usr/share/doc/${NAME}/*CLI*"
-mediainfo_gui_CONTENTS="usr/bin/mediainfo-gui.exe usr/share/applications/
-                        usr/share/doc/${NAME}/*GUI* usr/share/pixmaps/"
+PKG_NAMES="${NAME} ${NAME}-gui ${NAME}-qt"
+mediainfo_DOCS="LICENSE README.md Release/ReadMe_CLI_Linux.txt"
+mediainfo_CONTENTS="
+       usr/bin/mediainfo.exe
+"
+mediainfo_gui_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
+mediainfo_gui_CONTENTS="
+       etc/postinstall/
+       usr/bin/mediainfo-gui.exe
+       usr/share/appdata/mediainfo-gui.appdata.xml
+       usr/share/applications/mediainfo-gui.desktop
+       usr/share/icons/hicolor/*/apps/mediainfo.*
+"
+mediainfo_qt_DOCS="LICENSE README.md Release/ReadMe_GUI_Linux.txt"
+mediainfo_qt_CONTENTS="
+       usr/bin/mediainfo-qt.exe
+       usr/share/applications/mediainfo-qt.desktop
+       usr/share/pixmaps/mediainfo.*
+"
+# KDE 4 integration
+PKG_IGNORE="
+       usr/share/apps/konqueror/servicemenus/mediainfo-gui.desktop
+       usr/share/kde4/services/ServiceMenus/mediainfo-gui.desktop
+"
 
 src_compile() {
-       local subdir
+       lndirs
 
-       subdir="ZenLib/Project/GNU/Library"
-       CYGCONF_SOURCE="${S}/${subdir}"
-       cd ${CYGCONF_SOURCE}
+       cd ${B}/Project/GNU/CLI
        cygautoreconf
-       mkdir -p ${B}/${subdir}
-       cd ${B}/${subdir}
-       cygconf --disable-shared
-       cygmake
-
-       subdir="MediaInfoLib/Project/GNU/Library"
-       CYGCONF_SOURCE="${S}/${subdir}"
-       cd ${CYGCONF_SOURCE}
-       cygautoreconf
-       mkdir -p ${B}/${subdir}
-       cd ${B}/${subdir}
-       cygconf --disable-shared --with-libcurl --with-libmms
-       cygmake
-
-       subdir="MediaInfo/Project/GNU/CLI"
-       CYGCONF_SOURCE="${S}/${subdir}"
-       cd ${CYGCONF_SOURCE}
-       cygautoreconf
-       mkdir -p ${B}/${subdir}
-       cd ${B}/${subdir}
+       CYGCONF_SOURCE=. \
        cygconf
        cygmake
 
-       subdir="MediaInfo/Project/GNU/GUI"
-       CYGCONF_SOURCE="${S}/${subdir}"
-       cd ${CYGCONF_SOURCE}
+       cd ${B}/Project/GNU/GUI
        cygautoreconf
-       mkdir -p ${B}/${subdir}
-       cd ${B}/${subdir}
+       CYGCONF_SOURCE=. \
        cygconf --with-wx-config=${WX_CONFIG}
        cygmake
+
+       cd ${B}/Project/QMake/GUI
+       cygqmake4 .
+       cygmake
 }
 
 src_install() {
-       cd ${B}/MediaInfo/Project/GNU/CLI
+       cd ${B}/Project/GNU/CLI
        cyginstall
-       cd ${B}/MediaInfo/Project/GNU/GUI
+       cd ${B}/Project/GNU/GUI
        cyginstall
+       cd ${B}/Project/QMake/GUI
+       qt4_qmake_install
+       sed -e 's/gui/qt/;/^Name/s/$/ Qt/' \
+               ../../GNU/GUI/mediainfo-gui.desktop > mediainfo-qt.desktop
+       domenu mediainfo-qt.desktop
 
-       doicon ${S}/MediaInfo/Source/Resource/Image/MediaInfo.png
-       make_desktop_entry mediainfo-gui MediaInfo MediaInfo "AudioVideo;GTK"
+       newicon ${S}/Source/Resource/Image/MediaInfo.png mediainfo.png
 }
-
-DOCS="MediaInfo/History*.txt MediaInfo/Release/ReadMe*Linux.txt"
This page took 0.022939 seconds and 5 git commands to generate.