From b8abdfd3dba14fba5f19ced34a8f1d6ae04067af Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 26 Apr 2009 23:34:53 +0000 Subject: [PATCH] Gecko Media Player is a browser plugin that uses GNOME MPlayer to play media in a browser. It should work with all browsers on Unix-ish systems (Linux, BSD, Solaris) and use the NS4 API (Mozilla, Firefox, Opera, etc.). WWW: http://kdekorte.googlepages.com/gecko-mediaplayer PR: ports/134009 Submitted by: Alexander Logvinov --- www/Makefile | 1 + www/gecko-mediaplayer/Makefile | 59 +++++++++++++++++++++++++++++++++ www/gecko-mediaplayer/distinfo | 3 ++ www/gecko-mediaplayer/pkg-descr | 6 ++++ www/gecko-mediaplayer/pkg-plist | 13 ++++++++ 5 files changed, 82 insertions(+) create mode 100644 www/gecko-mediaplayer/Makefile create mode 100644 www/gecko-mediaplayer/distinfo create mode 100644 www/gecko-mediaplayer/pkg-descr create mode 100644 www/gecko-mediaplayer/pkg-plist diff --git a/www/Makefile b/www/Makefile index be7b6f70ac8d..d20d8f31b1d4 100644 --- a/www/Makefile +++ b/www/Makefile @@ -231,6 +231,7 @@ SUBDIR += gallery SUBDIR += gallery2 SUBDIR += gatling + SUBDIR += gecko-mediaplayer SUBDIR += gecko-sharp10 SUBDIR += gecko-sharp20 SUBDIR += geeklog diff --git a/www/gecko-mediaplayer/Makefile b/www/gecko-mediaplayer/Makefile new file mode 100644 index 000000000000..f91bb9109334 --- /dev/null +++ b/www/gecko-mediaplayer/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: gecko-mediaplayer +# Date created: 14 March 2009 +# Whom: Alexander Logvinov +# +# $FreeBSD$ +# + +PORTNAME= gecko-mediaplayer +PORTVERSION= 0.9.5 +CATEGORIES= www multimedia gnome +MASTER_SITES= GOOGLE_CODE + +MAINTAINER= ports@logvinov.com +COMMENT= Multimedia browser plugin for Gecko based browsers + +LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib +RUN_DEPENDS= gnome-mplayer:${PORTSDIR}/multimedia/gnome-mplayer + +OPTIONS= GCONF "Use Gconf to store preferences" off \ + NOCACHE "Disable caching of remote media to local storage" off + +GNU_CONFIGURE= yes +USE_GETTEXT= yes +USE_GNOME= glib20 +USE_GECKO= firefox mozilla seamonkey libxul +USE_WEBPLUGINS= native +WEBPLUGINS_FILES= ${PORTNAME}-dvx.so ${PORTNAME}-qt.so ${PORTNAME}-rm.so \ + ${PORTNAME}-wmp.so ${PORTNAME}.so +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +PORTDOCS= README COPYING AUTHORS ChangeLog INSTALL NEWS javascript.txt + +.include + +.if defined(WITH_GCONF) +USE_GNOME+= gconf2 +CONFIGURE_ARGS+= --with-gconf +GCONF_SCHEMAS= ${PORTNAME}.schemas +.else +CONFIGURE_ARGS+= --without-gconf --disable-schemas-install +.endif + +.if defined(WITH_NOCACHE) +CONFIGURE_ARGS+= --disable-caching +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|$$(libdir)/mozilla/plugins|${WEBPLUGINS_DIR}|' \ + ${WRKSRC}/src/Makefile.in +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -e \ + 's|install-gecko_mediaplayerdocDATA install-schemaDATA|install-schemaDATA|' \ + ${WRKSRC}/Makefile.in +.endif + +.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk" +.include "${PORTSDIR}/www/firefox/Makefile.webplugins" +.include diff --git a/www/gecko-mediaplayer/distinfo b/www/gecko-mediaplayer/distinfo new file mode 100644 index 000000000000..28b4175a71c2 --- /dev/null +++ b/www/gecko-mediaplayer/distinfo @@ -0,0 +1,3 @@ +MD5 (gecko-mediaplayer-0.9.5.tar.gz) = 95b83f30a41769e14a3c7bbb422b514e +SHA256 (gecko-mediaplayer-0.9.5.tar.gz) = 60cd30e5d44e0ee1e3b96309c3767f5f2eb1cbc29d3d49b7c624cfa60579bf16 +SIZE (gecko-mediaplayer-0.9.5.tar.gz) = 220301 diff --git a/www/gecko-mediaplayer/pkg-descr b/www/gecko-mediaplayer/pkg-descr new file mode 100644 index 000000000000..0ecba0d8a5cc --- /dev/null +++ b/www/gecko-mediaplayer/pkg-descr @@ -0,0 +1,6 @@ +Gecko Media Player is a browser plugin that uses GNOME MPlayer +to play media in a browser. It should work with all browsers +on Unix-ish systems (Linux, BSD, Solaris) and use the NS4 API +(Mozilla, Firefox, Opera, etc.). + +WWW: http://kdekorte.googlepages.com/gecko-mediaplayer diff --git a/www/gecko-mediaplayer/pkg-plist b/www/gecko-mediaplayer/pkg-plist new file mode 100644 index 000000000000..6ccf863478bd --- /dev/null +++ b/www/gecko-mediaplayer/pkg-plist @@ -0,0 +1,13 @@ +%%WEBPLUGINS_DIR%%/gecko-mediaplayer-dvx.so +%%WEBPLUGINS_DIR%%/gecko-mediaplayer-qt.so +%%WEBPLUGINS_DIR%%/gecko-mediaplayer-rm.so +%%WEBPLUGINS_DIR%%/gecko-mediaplayer-wmp.so +%%WEBPLUGINS_DIR%%/gecko-mediaplayer.so +share/locale/es/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/fr/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/it/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/ja/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/pl/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/pt_BR/LC_MESSAGES/gecko-mediaplayer.mo +share/locale/tr/LC_MESSAGES/gecko-mediaplayer.mo +@dirrmtry %%WEBPLUGINS_DIR%%