summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-19 04:53:46 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-19 04:53:46 +0800
commit9053ee6711f094c5faba949a4107012400b2ed2d (patch)
treee1a7bc33d4634dcc9f2580a62671967c82db2cca /www
parent697d72ff58541a44295aeb1ea93e7a8a8794260a (diff)
downloadmarcuscom-ports-9053ee6711f094c5faba949a4107012400b2ed2d.tar.gz
marcuscom-ports-9053ee6711f094c5faba949a4107012400b2ed2d.tar.zst
marcuscom-ports-9053ee6711f094c5faba949a4107012400b2ed2d.zip
- Chase gecko move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6651 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www')
-rw-r--r--www/mplayer-plugin/Makefile65
-rw-r--r--www/mplayer-plugin/distinfo3
-rw-r--r--www/mplayer-plugin/files/patch-Source_plugin-support.cpp16
-rw-r--r--www/mplayer-plugin/files/patch-configure10
-rw-r--r--www/mplayer-plugin/pkg-descr3
-rw-r--r--www/mplayer-plugin/pkg-plist33
6 files changed, 130 insertions, 0 deletions
diff --git a/www/mplayer-plugin/Makefile b/www/mplayer-plugin/Makefile
new file mode 100644
index 000000000..5609f00f1
--- /dev/null
+++ b/www/mplayer-plugin/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: mplayerplug-in
+# Date Created: 20 February 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mplayerplug-in
+PORTVERSION= 3.25
+PORTREVISION= 1
+CATEGORIES= www multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= mplayerplug-in
+
+MAINTAINER= marcus@FreeBSD.org
+COMMENT= A Mozilla plugin for the MPlayer media player
+
+RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_GECKO= firefox mozilla seamonkey
+PLUGINSFILES= mplayerplug-in.so mplayerplug-in.xpt mplayerplug-in-wmp.so \
+ mplayerplug-in-qt.so mplayerplug-in-rm.so \
+ mplayerplug-in-gmp.so mplayerplug-in-wmp.xpt \
+ mplayerplug-in-qt.xpt mplayerplug-in-rm.xpt \
+ mplayerplug-in-gmp.xpt
+GNU_CONFIGURE= yes
+USE_GNOME= gnometarget
+CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -DBSD" \
+ LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|make|${GMAKE}|g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|mozilla-|${GECKO}-|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
+ ${WRKSRC}/Source/plugin-setup.cpp
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/browser_plugins
+.for moo in ${PLUGINSFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${moo} ${PREFIX}/lib/browser_plugins
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf \
+ ${PREFIX}/etc/mplayerplug-in.conf.dist
+ if [ ! -f ${PREFIX}/etc/mplayerplug-in.conf ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf \
+ ${PREFIX}/etc/mplayerplug-in.conf ; \
+ fi
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types \
+ ${PREFIX}/etc/mplayerplug-in.types.dist
+ if [ ! -f ${PREFIX}/etc/mplayerplug-in.types ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types \
+ ${PREFIX}/etc/mplayerplug-in.types ;\
+ fi
+ cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ Makefile ${MAKE_ARGS} install
+
+.include <bsd.port.post.mk>
diff --git a/www/mplayer-plugin/distinfo b/www/mplayer-plugin/distinfo
new file mode 100644
index 000000000..ad322766a
--- /dev/null
+++ b/www/mplayer-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (mplayerplug-in-3.25.tar.gz) = fb99a2efeacd5aed8b92ae0bb33c708a
+SHA256 (mplayerplug-in-3.25.tar.gz) = ce8304c3cab3ffc10888f3648d9470ab7db7609c5178ef3a6cb3163fc7b901c8
+SIZE (mplayerplug-in-3.25.tar.gz) = 209554
diff --git a/www/mplayer-plugin/files/patch-Source_plugin-support.cpp b/www/mplayer-plugin/files/patch-Source_plugin-support.cpp
new file mode 100644
index 000000000..5e2dc49d1
--- /dev/null
+++ b/www/mplayer-plugin/files/patch-Source_plugin-support.cpp
@@ -0,0 +1,16 @@
+--- Source/plugin-support.cpp.orig Sat Feb 18 17:05:30 2006
++++ Source/plugin-support.cpp Sat Feb 18 17:05:58 2006
+@@ -486,9 +486,13 @@ void killmplayer(nsPluginInstance * inst
+ if (instance->paused == 1)
+ sendCommand(instance, "pause\n");
+ sendCommand(instance, "quit\n");
++#ifndef BSD
+ pthread_mutex_lock(&(instance->read_mutex));
++#endif
+ instance->cancelled = 1;
++#ifndef BSD
+ pthread_mutex_unlock(&(instance->read_mutex));
++#endif
+
+ /* count = 0;
+ while (count < 500) {
diff --git a/www/mplayer-plugin/files/patch-configure b/www/mplayer-plugin/files/patch-configure
new file mode 100644
index 000000000..ded52dd57
--- /dev/null
+++ b/www/mplayer-plugin/files/patch-configure
@@ -0,0 +1,10 @@
+--- configure.orig Mon Oct 11 19:30:39 2004
++++ configure Mon Oct 11 19:32:12 2004
+@@ -2854,6 +2854,7 @@
+ echo "$as_me:$LINENO: checking MOZPLUG_CFLAGS" >&5
+ echo $ECHO_N "checking MOZPLUG_CFLAGS... $ECHO_C" >&6
+ MOZPLUG_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
++ MOZPLUG_CFLAGS="${MOZPLUG_CFLAGS} -I"`$PKG_CONFIG --variable=includedir "mozilla-plugin"`
+ echo "$as_me:$LINENO: result: $MOZPLUG_CFLAGS" >&5
+ echo "${ECHO_T}$MOZPLUG_CFLAGS" >&6
+
diff --git a/www/mplayer-plugin/pkg-descr b/www/mplayer-plugin/pkg-descr
new file mode 100644
index 000000000..5426030de
--- /dev/null
+++ b/www/mplayer-plugin/pkg-descr
@@ -0,0 +1,3 @@
+A Mozilla plugin that uses MPlayer to play videos from websites.
+
+WWW: http://mplayerplug-in.sourceforge.net/
diff --git a/www/mplayer-plugin/pkg-plist b/www/mplayer-plugin/pkg-plist
new file mode 100644
index 000000000..a57bec344
--- /dev/null
+++ b/www/mplayer-plugin/pkg-plist
@@ -0,0 +1,33 @@
+@unexec if cmp -s %D/etc/mplayerplug-in.conf %D/etc/mplayerplug-in.conf.dist; then rm -f %D/etc/mplayerplug-in.conf; fi
+etc/mplayerplug-in.conf.dist
+@unexec if cmp -s %D/etc/mplayerplug-in.types %D/etc/mplayerplug-in.types.dist; then rm -f %D/etc/mplayerplug-in.types; fi
+etc/mplayerplug-in.types.dist
+lib/browser_plugins/mplayerplug-in-gmp.so
+lib/browser_plugins/mplayerplug-in-gmp.xpt
+lib/browser_plugins/mplayerplug-in-qt.so
+lib/browser_plugins/mplayerplug-in-qt.xpt
+lib/browser_plugins/mplayerplug-in-rm.so
+lib/browser_plugins/mplayerplug-in-rm.xpt
+lib/browser_plugins/mplayerplug-in-wmp.so
+lib/browser_plugins/mplayerplug-in-wmp.xpt
+lib/browser_plugins/mplayerplug-in.so
+lib/browser_plugins/mplayerplug-in.xpt
+share/locale/da/LC_MESSAGES/mplayerplug-in.mo
+share/locale/de/LC_MESSAGES/mplayerplug-in.mo
+share/locale/en_US/LC_MESSAGES/mplayerplug-in.mo
+share/locale/es/LC_MESSAGES/mplayerplug-in.mo
+share/locale/fr/LC_MESSAGES/mplayerplug-in.mo
+share/locale/hu/LC_MESSAGES/mplayerplug-in.mo
+share/locale/it/LC_MESSAGES/mplayerplug-in.mo
+share/locale/ja/LC_MESSAGES/mplayerplug-in.mo
+share/locale/ko/LC_MESSAGES/mplayerplug-in.mo
+share/locale/nl/LC_MESSAGES/mplayerplug-in.mo
+share/locale/pl/LC_MESSAGES/mplayerplug-in.mo
+share/locale/pt_BR/LC_MESSAGES/mplayerplug-in.mo
+share/locale/ru/LC_MESSAGES/mplayerplug-in.mo
+share/locale/se/LC_MESSAGES/mplayerplug-in.mo
+@dirrmtry share/locale/en_US/LC_MESSAGES
+@dirrmtry share/locale/en_US
+@dirrmtry share/locale/se/LC_MESSAGES
+@dirrmtry share/locale/se
+@dirrmtry lib/browser_plugins