diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-04-02 02:12:20 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-04-02 02:12:20 +0800 |
commit | 73a2566326fa816e71bc4c1cc65abdce92bbc711 (patch) | |
tree | 9375db8235aa4027157f5d2b2ef4c4e65941e20f /multimedia/smplayer | |
parent | a2df7b5e6dfecf756ed3a696f1098b4596b39871 (diff) | |
download | freebsd-ports-gnome-73a2566326fa816e71bc4c1cc65abdce92bbc711.tar.gz freebsd-ports-gnome-73a2566326fa816e71bc4c1cc65abdce92bbc711.tar.zst freebsd-ports-gnome-73a2566326fa816e71bc4c1cc65abdce92bbc711.zip |
- Update to 14.3.0, announce message is here:
http://sourceforge.net/projects/smplayer/files/SMPlayer/14.3.0/
- Simplify dependencies
- Use tar:bzip2 instead of USE_BZIP2=yes
- Add DEBUG Option
- Change patch and recreate with make makepatch, remove for
deinstallation
Diffstat (limited to 'multimedia/smplayer')
-rw-r--r-- | multimedia/smplayer/Makefile | 23 | ||||
-rw-r--r-- | multimedia/smplayer/distinfo | 4 | ||||
-rw-r--r-- | multimedia/smplayer/files/patch-Makefile | 33 | ||||
-rw-r--r-- | multimedia/smplayer/pkg-plist | 6 |
4 files changed, 29 insertions, 37 deletions
diff --git a/multimedia/smplayer/Makefile b/multimedia/smplayer/Makefile index af700fc2362c..609d360a2fb1 100644 --- a/multimedia/smplayer/Makefile +++ b/multimedia/smplayer/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= smplayer -DISTVERSION= 0.8.6 -PORTREVISION= 1 +DISTVERSION= 14.3.0 CATEGORIES= multimedia audio kde MASTER_SITES= SF/${PORTNAME}/SMPlayer/${PORTVERSION} @@ -13,8 +12,8 @@ COMMENT= Complete front-end based on Qt4 for mplayer LICENSE= GPLv2 RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \ - ${LOCALBASE}/share/smplayer/themes:${PORTSDIR}/multimedia/smplayer-skins \ - ${LOCALBASE}/share/smplayer/themes:${PORTSDIR}/multimedia/smplayer-themes + smplayer-skins>=0:${PORTSDIR}/multimedia/smplayer-skins \ + smplayer-themes>=0:${PORTSDIR}/multimedia/smplayer-themes USE_QT4= gui network script xml moc_build rcc_build uic_build \ uic3_build porting_build linguist_build @@ -23,18 +22,18 @@ ALL_TARGET= src/smplayer CONFIGURE_WRKSRC= ${WRKSRC}/src MAKE_ARGS+= PREFIX=${PREFIX} DESTDIR=${STAGEDIR} -USE_BZIP2= yes -USES= desktop-file-utils dos2unix gmake qmake +USES= desktop-file-utils dos2unix gmake qmake tar:bzip2 DOS2UNIX_REGEX= .*.[^p][^n][^g]$ INSTALLS_ICONS= yes PORTDOCS= Changelog Not_so_obvious_things.txt Readme.txt \ Release_notes.txt Watching_TV.txt - -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS DEBUG SUB_FILES= pkg-message +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e 's|&& $$(QMAKE) $$(QMAKE_OPTS)||; \ s|lrelease|${LRELEASE}|; \ @@ -42,6 +41,14 @@ post-patch: s| make| ${MAKE_CMD}|g' \ ${WRKSRC}/Makefile +.if ${PORT_OPTIONS:MDEBUG} + @${REINPLACE_CMD} -e '/CONFIG += debug/s|#||' \ + ${WRKSRC}/src/smplayer.pro +.else + @${REINPLACE_CMD} -e '/DEFINES += NO_DEBUG_ON_CONSOLE/s|#||' \ + ${WRKSRC}/src/smplayer.pro +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} diff --git a/multimedia/smplayer/distinfo b/multimedia/smplayer/distinfo index 5d4231381601..d95485d5afc9 100644 --- a/multimedia/smplayer/distinfo +++ b/multimedia/smplayer/distinfo @@ -1,2 +1,2 @@ -SHA256 (smplayer-0.8.6.tar.bz2) = e091339977fbd0de5a04b782295326977fe4bb644bef8e5f252c5f249348e0dc -SIZE (smplayer-0.8.6.tar.bz2) = 3336444 +SHA256 (smplayer-14.3.0.tar.bz2) = 9b8db20043d1528ee5c6054526779e88a172d2c757429bd7095c794d65ecbc18 +SIZE (smplayer-14.3.0.tar.bz2) = 3675657 diff --git a/multimedia/smplayer/files/patch-Makefile b/multimedia/smplayer/files/patch-Makefile index fdc946c93e50..cebc312c04a5 100644 --- a/multimedia/smplayer/files/patch-Makefile +++ b/multimedia/smplayer/files/patch-Makefile @@ -1,23 +1,23 @@ ---- Makefile.orgi 2008-10-25 18:18:55.000000000 +0200 -+++ Makefile 2008-10-25 18:19:58.000000000 +0200 +--- ./Makefile.orig 2012-11-01 23:42:16.000000000 +0100 ++++ ./Makefile 2014-04-01 17:55:58.516961711 +0200 @@ -5,7 +5,6 @@ CONF_PREFIX=$(PREFIX) DATA_PATH=$(PREFIX)/share/smplayer -DOC_PATH=$(PREFIX)/share/doc/packages/smplayer TRANSLATION_PATH=$(PREFIX)/share/smplayer/translations - CONF_PATH=$(CONF_PREFIX)/etc/smplayer THEMES_PATH=$(PREFIX)/share/smplayer/themes -@@ -23,7 +22,7 @@ + SHORTCUTS_PATH=$(PREFIX)/share/smplayer/shortcuts +@@ -22,7 +21,7 @@ - DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" CONF_PATH=\\\"$(CONF_PATH)\\\" \ + DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" \ TRANSLATION_PATH=\\\"$(TRANSLATION_PATH)\\\" \ - DOC_PATH=\\\"$(DOC_PATH)\\\" THEMES_PATH=\\\"$(THEMES_PATH)\\\" \ + THEMES_PATH=\\\"$(THEMES_PATH)\\\" \ SHORTCUTS_PATH=\\\"$(SHORTCUTS_PATH)\\\" -@@ -56,11 +55,6 @@ +@@ -55,11 +54,6 @@ install -m 644 src/input.conf $(DESTDIR)$(DATA_PATH) -install -d $(DESTDIR)$(TRANSLATION_PATH) install -m 644 src/translations/*.qm $(DESTDIR)$(TRANSLATION_PATH) @@ -29,24 +29,3 @@ -install -d $(DESTDIR)$(SHORTCUTS_PATH) cp src/shortcuts/* $(DESTDIR)$(SHORTCUTS_PATH) -@@ -84,8 +78,6 @@ - -rm -f $(PREFIX)/bin/smplayer - -rm -f $(DATA_PATH)/input.conf - -rm -f $(TRANSLATION_PATH)/*.qm -- -rm -f $(DOC_PATH)/Changelog -- -rm -f $(DOC_PATH)/*.txt - -rm -f $(SHORTCUTS_PATH)/*.keys - -rm -f $(KDE_ICONS)/64x64/apps/smplayer.png - -rm -f $(KDE_ICONS)/32x32/apps/smplayer.png -@@ -101,8 +93,8 @@ - # -for file in docs/*; do \ - # rmdir $(DOC_PATH)/$${file/docs/}; \ - # done; -- -(cd docs && find -iname '*.html') | (cd $(DESTDIR)$(DOC_PATH) && xargs rm) -- -(cd docs && find -type d -name '??') | (cd $(DESTDIR)$(DOC_PATH) && xargs rmdir) -- -rmdir $(DOC_PATH)/ -+# -(cd docs && find -iname '*.html') | (cd $(DESTDIR)$(DOC_PATH) && xargs rm) -+# -(cd docs && find -type d -name '??') | (cd $(DESTDIR)$(DOC_PATH) && xargs rmdir) -+# -rmdir $(DOC_PATH)/ - -rmdir $(DATA_PATH)/ - diff --git a/multimedia/smplayer/pkg-plist b/multimedia/smplayer/pkg-plist index 0a41175344b2..c05301dde7db 100644 --- a/multimedia/smplayer/pkg-plist +++ b/multimedia/smplayer/pkg-plist @@ -13,6 +13,8 @@ share/icons/hicolor/64x64/apps/smplayer.png share/icons/hicolor/scalable/apps/smplayer.svg %%DATADIR%%/input.conf %%DATADIR%%/shortcuts/default.keys +%%DATADIR%%/shortcuts/euskara.keys +%%DATADIR%%/translations/smplayer_ar.qm %%DATADIR%%/translations/smplayer_ar_SY.qm %%DATADIR%%/translations/smplayer_bg.qm %%DATADIR%%/translations/smplayer_ca.qm @@ -20,6 +22,7 @@ share/icons/hicolor/scalable/apps/smplayer.svg %%DATADIR%%/translations/smplayer_da.qm %%DATADIR%%/translations/smplayer_de.qm %%DATADIR%%/translations/smplayer_el_GR.qm +%%DATADIR%%/translations/smplayer_en_GB.qm %%DATADIR%%/translations/smplayer_en_US.qm %%DATADIR%%/translations/smplayer_es.qm %%DATADIR%%/translations/smplayer_et.qm @@ -30,6 +33,7 @@ share/icons/hicolor/scalable/apps/smplayer.svg %%DATADIR%%/translations/smplayer_he_IL.qm %%DATADIR%%/translations/smplayer_hr.qm %%DATADIR%%/translations/smplayer_hu.qm +%%DATADIR%%/translations/smplayer_id.qm %%DATADIR%%/translations/smplayer_it.qm %%DATADIR%%/translations/smplayer_ja.qm %%DATADIR%%/translations/smplayer_ka.qm @@ -39,6 +43,7 @@ share/icons/hicolor/scalable/apps/smplayer.svg %%DATADIR%%/translations/smplayer_mk.qm %%DATADIR%%/translations/smplayer_ms_MY.qm %%DATADIR%%/translations/smplayer_nl.qm +%%DATADIR%%/translations/smplayer_nn_NO.qm %%DATADIR%%/translations/smplayer_pl.qm %%DATADIR%%/translations/smplayer_pt.qm %%DATADIR%%/translations/smplayer_pt_BR.qm @@ -51,6 +56,7 @@ share/icons/hicolor/scalable/apps/smplayer.svg %%DATADIR%%/translations/smplayer_th.qm %%DATADIR%%/translations/smplayer_tr.qm %%DATADIR%%/translations/smplayer_uk_UA.qm +%%DATADIR%%/translations/smplayer_uz.qm %%DATADIR%%/translations/smplayer_vi_VN.qm %%DATADIR%%/translations/smplayer_zh_CN.qm %%DATADIR%%/translations/smplayer_zh_TW.qm |