diff --git a/x11/smplayer/Makefile b/x11/smplayer/Makefile new file mode 100644 index 00000000000..c9397150be1 --- /dev/null +++ b/x11/smplayer/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/10/18 22:24:45 edd Exp $ + +COMMENT = complete front-end for MPlayer + +DISTNAME = smplayer-0.6.8 + +CATEGORIES = multimedia x11 + +HOMEPAGE = http://smplayer.sourceforge.net/ + +MAINTAINER = Edd Barrett + +# GPLv2 (docs/en/gpl.html) +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender c expat fontconfig +WANTLIB += freetype glib-2.0 gobject-2.0 gthread-2.0 iconv intl +WANTLIB += m png pthread stdc++ z + +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=smplayer/} + +EXTRACT_SUFX = .tar.bz2 + +MODULES = x11/qt4 +RUN_DEPENDS = :mplayer->=20090708:x11/mplayer \ + ::devel/desktop-file-utils +LIB_DEPENDS = QtGui.>=8,QtNetwork.>=7,QtXml.>=7::x11/qt4 + +USE_X11 = Yes +USE_GMAKE = Yes + +NO_REGRESS = Yes + +ALL_TARGET = src/smplayer + +.include diff --git a/x11/smplayer/distinfo b/x11/smplayer/distinfo new file mode 100644 index 00000000000..d51d474e65d --- /dev/null +++ b/x11/smplayer/distinfo @@ -0,0 +1,5 @@ +MD5 (smplayer-0.6.8.tar.bz2) = RGXgYObBolTc2cjEYI5p6w== +RMD160 (smplayer-0.6.8.tar.bz2) = ENslW44hZYsD/P9m3lVUrK8peC4= +SHA1 (smplayer-0.6.8.tar.bz2) = D31Tur4f1x6p7dtEhiLREklSQuc= +SHA256 (smplayer-0.6.8.tar.bz2) = RmtYnuLTlEsuO486ba5Db30x8FSRLP5W+Nk0VFlMTKI= +SIZE (smplayer-0.6.8.tar.bz2) = 1670580 diff --git a/x11/smplayer/patches/patch-Makefile b/x11/smplayer/patches/patch-Makefile new file mode 100644 index 00000000000..2cd3b374c91 --- /dev/null +++ b/x11/smplayer/patches/patch-Makefile @@ -0,0 +1,55 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2009/10/18 22:24:45 edd Exp $ +--- Makefile.orig Wed Mar 11 02:21:41 2009 ++++ Makefile Sat Oct 17 16:46:41 2009 +@@ -5,7 +5,7 @@ PREFIX=/usr/local + CONF_PREFIX=$(PREFIX) + + DATA_PATH=$(PREFIX)/share/smplayer +-DOC_PATH=$(PREFIX)/share/doc/packages/smplayer ++DOC_PATH=$(PREFIX)/share/doc/smplayer + TRANSLATION_PATH=$(PREFIX)/share/smplayer/translations + THEMES_PATH=$(PREFIX)/share/smplayer/themes + SHORTCUTS_PATH=$(PREFIX)/share/smplayer/shortcuts +@@ -17,8 +17,8 @@ KDE_PREFIX=$(PREFIX) + KDE_ICONS=$(KDE_PREFIX)/share/icons/hicolor/ + KDE_APPLNK=$(KDE_PREFIX)/share/applications/ + +-QMAKE=qmake +-LRELEASE=lrelease ++QMAKE=qmake4 ++LRELEASE=lrelease4 + + DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" \ + TRANSLATION_PATH=\\\"$(TRANSLATION_PATH)\\\" \ +@@ -40,7 +40,8 @@ QMAKE_OPTS=DEFINES+=KDE_SUPPORT INCLUDEPATH+=$(KDE_INC + endif + + src/smplayer: +- ./get_svn_revision.sh ++# OpenBSD - this script doesnt work on OpenBSD and is not needed ++# ./get_svn_revision.sh + +cd src && $(QMAKE) $(QMAKE_OPTS) && $(DEFS) make + cd src && $(LRELEASE) smplayer.pro + +@@ -59,7 +60,7 @@ install: src/smplayer + install -m 644 Changelog *.txt $(DESTDIR)$(DOC_PATH) + + -install -d $(DESTDIR)$(DOC_PATH) +- tar -C docs/ --exclude=.svn -c -f - . | tar -C $(DESTDIR)$(DOC_PATH) -x -f - ++ cp -r docs/* $(DESTDIR)$(DOC_PATH) + + -install -d $(DESTDIR)$(SHORTCUTS_PATH) + cp src/shortcuts/* $(DESTDIR)$(SHORTCUTS_PATH) +@@ -75,9 +76,9 @@ install: src/smplayer + -install -d $(DESTDIR)$(KDE_APPLNK) + install -m 644 smplayer.desktop $(DESTDIR)$(KDE_APPLNK) + install -m 644 smplayer_enqueue.desktop $(DESTDIR)$(KDE_APPLNK) +- -install -d $(DESTDIR)$(PREFIX)/share/man/man1/ +- install -m 644 man/smplayer.1 $(DESTDIR)$(PREFIX)/share/man/man1/ +- gzip -9 -f $(DESTDIR)$(PREFIX)/share/man/man1/smplayer.1 ++ -install -d $(DESTDIR)$(PREFIX)/man/man1/ ++ install -m 644 man/smplayer.1 $(DESTDIR)$(PREFIX)/man/man1/ ++# gzip -9 -f $(DESTDIR)$(PREFIX)/share/man/man1/smplayer.1 + + uninstall: + -rm -f $(PREFIX)/bin/smplayer diff --git a/x11/smplayer/patches/patch-src_preferences_cpp b/x11/smplayer/patches/patch-src_preferences_cpp new file mode 100644 index 00000000000..4270e2e4ca6 --- /dev/null +++ b/x11/smplayer/patches/patch-src_preferences_cpp @@ -0,0 +1,34 @@ +$OpenBSD: patch-src_preferences_cpp,v 1.1.1.1 2009/10/18 22:24:45 edd Exp $ +--- src/preferences.cpp.orig Mon Jul 6 22:51:36 2009 ++++ src/preferences.cpp Sat Oct 17 16:48:27 2009 +@@ -103,7 +103,7 @@ void Preferences::reset() { + softvol_max = 110; // 110 = default value in mplayer + use_scaletempo = Detect; + use_hwac3 = false; +- use_audio_equalizer = true; ++ use_audio_equalizer = false; + + global_volume = true; + volume = 50; +@@ -125,8 +125,8 @@ void Preferences::reset() { + Drives (CD/DVD) + *************** */ + +- dvd_device = ""; +- cdrom_device = ""; ++ dvd_device = "/dev/cd0c"; ++ cdrom_device = "/dev/cd0c"; + + #ifndef Q_OS_WIN + // Try to set default values +@@ -234,8 +234,8 @@ void Preferences::reset() { + mplayer_additional_video_filters=""; + mplayer_additional_audio_filters=""; + +- log_mplayer = true; +- log_smplayer = true; ++ log_mplayer = false; ++ log_smplayer = false; + log_filter = ".*"; + verbose_log = false; + diff --git a/x11/smplayer/patches/patch-src_prefgeneral_h b/x11/smplayer/patches/patch-src_prefgeneral_h new file mode 100644 index 00000000000..12c55fcbe11 --- /dev/null +++ b/x11/smplayer/patches/patch-src_prefgeneral_h @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_prefgeneral_h,v 1.1.1.1 2009/10/18 22:24:45 edd Exp $ +--- src/prefgeneral.h.orig Sun Jul 5 12:59:57 2009 ++++ src/prefgeneral.h Sun Jul 5 13:00:10 2009 +@@ -24,6 +24,7 @@ + #include "inforeader.h" + #include "deviceinfo.h" + #include "preferences.h" ++#include "filechooser.h" + + #ifdef Q_OS_WIN + #define USE_DSOUND_DEVICES 1 diff --git a/x11/smplayer/pkg/DESCR b/x11/smplayer/pkg/DESCR new file mode 100644 index 00000000000..1a498a78346 --- /dev/null +++ b/x11/smplayer/pkg/DESCR @@ -0,0 +1,9 @@ +SMPlayer intends to be a complete front-end for MPlayer, from basic +features like playing videos, DVDs, and VCDs to more advanced features +like support for MPlayer filters and more. + +One of the most interesting features of SMPlayer: it remembers the +settings of all files you play. So you start to watch a movie but you +have to leave... don't worry, when you open that movie again it will +resume at the same point you left it, and with the same settings: audio +track, subtitles, volume... diff --git a/x11/smplayer/pkg/MESSAGE b/x11/smplayer/pkg/MESSAGE new file mode 100644 index 00000000000..f991bbcd648 --- /dev/null +++ b/x11/smplayer/pkg/MESSAGE @@ -0,0 +1 @@ +Please note that the audio equaliser option can not be used with smplayer. diff --git a/x11/smplayer/pkg/PLIST b/x11/smplayer/pkg/PLIST new file mode 100644 index 00000000000..c985fad4cbe --- /dev/null +++ b/x11/smplayer/pkg/PLIST @@ -0,0 +1,103 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/18 22:24:45 edd Exp $ +@bin bin/smplayer +@man man/man1/smplayer.1 +share/applications/smplayer.desktop +share/applications/smplayer_enqueue.desktop +share/doc/smplayer/ +share/doc/smplayer/Audio_equalizer.txt +share/doc/smplayer/Changelog +share/doc/smplayer/Configuring_the_toolbars.txt +share/doc/smplayer/Copying.txt +share/doc/smplayer/Finding_subtitles.txt +share/doc/smplayer/Install.txt +share/doc/smplayer/Not_so_obvious_things.txt +share/doc/smplayer/Portable_Edition.txt +share/doc/smplayer/Readme.txt +share/doc/smplayer/Release_notes.txt +share/doc/smplayer/Watching_TV.txt +share/doc/smplayer/cs/ +share/doc/smplayer/cs/faq.html +share/doc/smplayer/cs/gpl.html +share/doc/smplayer/de/ +share/doc/smplayer/de/gpl.html +share/doc/smplayer/dvdmenus.txt +share/doc/smplayer/en/ +share/doc/smplayer/en/faq.html +share/doc/smplayer/en/gpl.html +share/doc/smplayer/es/ +share/doc/smplayer/es/gpl.html +share/doc/smplayer/hu/ +share/doc/smplayer/hu/faq.html +share/doc/smplayer/hu/gpl.html +share/doc/smplayer/it/ +share/doc/smplayer/it/faq.html +share/doc/smplayer/it/gpl.html +share/doc/smplayer/ja/ +share/doc/smplayer/ja/faq.html +share/doc/smplayer/ja/gpl.html +share/doc/smplayer/nl/ +share/doc/smplayer/nl/gpl.html +share/doc/smplayer/ro/ +share/doc/smplayer/ro/gpl.html +share/doc/smplayer/ru/ +share/doc/smplayer/ru/faq.html +share/doc/smplayer/ru/gpl.html +share/icons/ +share/icons/hicolor/ +share/icons/hicolor/16x16/ +share/icons/hicolor/16x16/apps/ +share/icons/hicolor/16x16/apps/smplayer.png +share/icons/hicolor/22x22/ +share/icons/hicolor/22x22/apps/ +share/icons/hicolor/22x22/apps/smplayer.png +share/icons/hicolor/32x32/ +share/icons/hicolor/32x32/apps/ +share/icons/hicolor/32x32/apps/smplayer.png +share/icons/hicolor/64x64/ +share/icons/hicolor/64x64/apps/ +share/icons/hicolor/64x64/apps/smplayer.png +share/smplayer/ +share/smplayer/input.conf +share/smplayer/shortcuts/ +share/smplayer/shortcuts/default.keys +share/smplayer/shortcuts/sda.keys +share/smplayer/translations/ +share/smplayer/translations/smplayer_ar_SY.qm +share/smplayer/translations/smplayer_bg.qm +share/smplayer/translations/smplayer_ca.qm +share/smplayer/translations/smplayer_cs.qm +share/smplayer/translations/smplayer_de.qm +share/smplayer/translations/smplayer_el_GR.qm +share/smplayer/translations/smplayer_en_US.qm +share/smplayer/translations/smplayer_es.qm +share/smplayer/translations/smplayer_et.qm +share/smplayer/translations/smplayer_eu.qm +share/smplayer/translations/smplayer_fi.qm +share/smplayer/translations/smplayer_fr.qm +share/smplayer/translations/smplayer_gl.qm +share/smplayer/translations/smplayer_hu.qm +share/smplayer/translations/smplayer_it.qm +share/smplayer/translations/smplayer_ja.qm +share/smplayer/translations/smplayer_ka.qm +share/smplayer/translations/smplayer_ko.qm +share/smplayer/translations/smplayer_ku.qm +share/smplayer/translations/smplayer_mk.qm +share/smplayer/translations/smplayer_nl.qm +share/smplayer/translations/smplayer_pl.qm +share/smplayer/translations/smplayer_pt.qm +share/smplayer/translations/smplayer_pt_BR.qm +share/smplayer/translations/smplayer_ro_RO.qm +share/smplayer/translations/smplayer_ru_RU.qm +share/smplayer/translations/smplayer_sk.qm +share/smplayer/translations/smplayer_sl_SI.qm +share/smplayer/translations/smplayer_sr.qm +share/smplayer/translations/smplayer_sv.qm +share/smplayer/translations/smplayer_tr.qm +share/smplayer/translations/smplayer_uk_UA.qm +share/smplayer/translations/smplayer_vi_VN.qm +share/smplayer/translations/smplayer_zh_CN.qm +share/smplayer/translations/smplayer_zh_TW.qm +@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@unexec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database