Skip to content

Commit

Permalink
deb: add players
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 24, 2014
1 parent 45cee9e commit e636b6a
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 33 deletions.
14 changes: 13 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: libs
Priority: extra
Maintainer: Sou Bunnbu <[email protected]>
Build-Depends: debhelper (>= 9),
qt5-qmake, libqt5opengl5-dev, qtdeclarative5-dev,
qt5-default, qt5-qmake, libqt5opengl5-dev, qtdeclarative5-dev,
libavutil-dev,
libavresample-dev,
libavcodec-dev,
Expand Down Expand Up @@ -90,3 +90,15 @@ Description: QtAV QML module
It can help you to write a player with less effort than ever before.
.
This package contains the QtAV QML module for Qt declarative.

Package: qtav-players
Section: video
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, ${shlibs:Depends}, libqtav, qml-module-qtav
Multi-Arch: same
Description: QtAV/QML players
QtAV is a multimedia playback framework based on Qt and FFmpeg.
High performance. User & developer friendly.
.
This package contains the QtAV based players
8 changes: 8 additions & 0 deletions debian/qtav-players.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
usr/lib/*/qt5/bin/libcommon.so.*
usr/lib/*/qt5/bin/player
usr/lib/*/qt5/bin/QMLPlayer
usr/bin/player
usr/bin/QMLPlayer
usr/share/applications/player.desktop
usr/share/applications/QMLPlayer.desktop
usr/share/icons/hicolor/64x64/apps/QtAV.svg
7 changes: 5 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/make -f

DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)

%:
dh $@
Expand All @@ -10,4 +10,7 @@ override_dh_auto_configure:

override_dh_auto_install:
dh_auto_install
ln -s libQtAV.so ${CURDIR}/debian/tmp/usr/lib/${DEB_BUILD_GNU_TYPE}/libQt5AV.so
ln -s libQtAV.so ${CURDIR}/debian/tmp/usr/lib/${DEB_BUILD_MULTIARCH}/libQt5AV.so
mkdir -p ${CURDIR}/debian/tmp/usr/bin
cd ${CURDIR}/debian/tmp/usr/bin && ln -s ../lib/${DEB_BUILD_MULTIARCH}/qt5/bin/player .
cd ${CURDIR}/debian/tmp/usr/bin && ln -s ../lib/${DEB_BUILD_MULTIARCH}/qt5/bin/QMLPlayer .
2 changes: 1 addition & 1 deletion deploy.pri
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ isEqual(TEMPLATE, app) {
}
INSTALLS += desktopfile icon
#debian.path = /DEBIAN
target.path = $${INSTALL_PREFIX}/bin
isEmpty(target.path): target.path = $${INSTALL_PREFIX}/bin
}
} else {
unix:!symbian {
Expand Down
11 changes: 0 additions & 11 deletions examples/QMLPlayer/QMLPlayer.desktop

This file was deleted.

7 changes: 6 additions & 1 deletion examples/QMLPlayer/QMLPlayer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Add more folders to ship with the application, here
folder_01.source = qml/QMLPlayer
folder_01.target = qml
DEPLOYMENTFOLDERS = folder_01
#will copy to target path
#DEPLOYMENTFOLDERS = folder_01

# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =
Expand All @@ -21,6 +22,10 @@ SOURCES += main.cpp
# Installation path
target.path = $$[QT_INSTALL_BINS]


desktopfile.files = $$PWD/../../qtc_packaging/debian_generic/QMLPlayer.desktop
desktopfile.path = /usr/share/applications

# Please do not modify the following two lines. Required for deployment.
include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()
Expand Down
4 changes: 4 additions & 0 deletions examples/common/common.pro
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ macx:!ios {
}

include($$PROJECTROOT/deploy.pri)

target.path = $$[QT_INSTALL_BINS]
INSTALLS += target

3 changes: 2 additions & 1 deletion examples/player/player.pro
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ HEADERS += \
filters/AVFilterSubtitle.h

tv.files = res/tv.ini
BIN_INSTALLS += tv
#BIN_INSTALLS += tv
target.path = $$[QT_INSTALL_BINS]
include($$PROJECTROOT/deploy.pri)

RESOURCES += \
Expand Down
13 changes: 13 additions & 0 deletions qtc_packaging/debian_generic/QMLPlayer.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Type=Application
Name=QtAV QML Player
GenericName=QtAV QML player
Comment=QtAV Multimedia Player
Comment[zh]=多媒体播放器
Icon=QtAV
TryExec=/usr/bin/QMLPlayer
Exec=QMLPlayer %U
Terminal=false
Categories=Qt;AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;
X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
13 changes: 0 additions & 13 deletions qtc_packaging/debian_generic/QtAV.desktop

This file was deleted.

1 change: 0 additions & 1 deletion qtc_packaging/debian_generic/player.desktop

This file was deleted.

13 changes: 13 additions & 0 deletions qtc_packaging/debian_generic/player.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Type=Application
Name=QtAV Player
GenericName=QtAV player
Comment=QtAV Multimedia Player
Comment[zh]=多媒体播放器
Icon=QtAV
TryExec=/usr/bin/player
Exec=player %U
Terminal=false
Categories=Qt;AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;
X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
D=`readlink -f $0`
D=${D%/*}
export LD_LIBRARY_PATH=$D:$D/lib
$D/QMLPlayer
$D/QMLPlayer $@
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
D=`readlink -f $0`
D=${D%/*}
export LD_LIBRARY_PATH=$D:$D/lib
$D/player
$D/player $@
3 changes: 3 additions & 0 deletions src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,6 @@ MODULE_VERSION = $$VERSION
!mac_framework: MODULE_VERSION = $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
include($$PROJECTROOT/deploy.pri)

icon.files = $$PWD/$${TARGET}.svg
icon.path = /usr/share/icons/hicolor/64x64/apps
INSTALLS += icon

0 comments on commit e636b6a

Please sign in to comment.