1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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
This commit is contained in:
Rusmir Dusko 2014-04-01 18:12:20 +00:00
parent 6b4fa5cab5
commit 8ab175efa8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349872
4 changed files with 29 additions and 37 deletions

View File

@ -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}

View File

@ -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

View File

@ -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)/

View File

@ -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