1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

Update to 0.95.

This commit is contained in:
Joe Marcus Clarke 2003-10-05 06:54:18 +00:00
parent 936b54f007
commit 3501666ee3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90289
5 changed files with 56 additions and 12 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= mplayerplug-in
PORTVERSION= 0.91
PORTREVISION= 1
PORTVERSION= 0.95
CATEGORIES= www multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mplayerplug-in
@ -23,7 +22,8 @@ USE_REINPLACE= yes
USE_GMAKE= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/Source/mplayerplug-in.c
@ -38,5 +38,11 @@ do-install:
${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
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (mplayerplug-in-0.91.tar.gz) = 0007f154903e4eb0cbffbf61740fc806
MD5 (mplayerplug-in-0.95.tar.gz) = bab0cfa1f65748153c2675504424399d

View File

@ -1,5 +1,5 @@
--- Makefile.orig Fri Sep 5 21:48:28 2003
+++ Makefile Mon Sep 29 00:42:38 2003
--- Makefile.orig Tue Sep 9 17:02:57 2003
+++ Makefile Sun Oct 5 02:29:28 2003
@@ -12,9 +12,9 @@
PLUGIN_DEFINES= -DXP_UNIX -Iinclude -fPIC -I/usr/X11R6/include
@ -10,10 +10,10 @@
+CC?= gcc
+OPTIMIZER=
+CFLAGS+= $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include
#`pkg-config gtk+-2.0 --cflags`
STRICTFLAGS= -O3 -Wall -W -Wno-unused-variable -Wno-unused-parameter -Wwrite-strings -Werror
#LDFLAGS = `pkg-config gtk+-2.0 --libs`
@@ -25,7 +25,7 @@
LDFLAGS= -lpthread
OBJ= mplayerplug-in.o support.o stubs.o ui.o
@@ -24,7 +24,7 @@
default all: $(SHAREDTARGET)
$(SHAREDTARGET): $(OBJ)

View File

@ -1,6 +1,15 @@
--- Source/mplayerplug-in.c.orig Wed Sep 10 10:34:15 2003
+++ Source/mplayerplug-in.c Mon Sep 29 00:43:56 2003
@@ -67,7 +67,7 @@
--- Source/mplayerplug-in.c.orig Fri Oct 3 10:54:52 2003
+++ Source/mplayerplug-in.c Sun Oct 5 02:45:25 2003
@@ -28,7 +28,7 @@
*/
#include "mplayerplug-in.h"
-pthread_mutex_t playlist_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+pthread_mutex_t playlist_mutex;
// This routine is only called when the plugin library is newer than the pluginrc file
@@ -71,7 +71,7 @@
}
if (config == NULL) {
@ -9,3 +18,30 @@
}
if (config == NULL) {
@@ -148,7 +148,7 @@
}
if (customtypes == NULL) {
- customtypes = fopen("/etc/mplayerplug-in.types", "r");
+ customtypes = fopen("%%PREFIX%%/etc/mplayerplug-in.types", "r");
}
if (customtypes != NULL) {
@@ -274,6 +274,7 @@
char parse[1000];
char logfile[1000];
char *cp;
+ pthread_mutexattr_t attr;
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -281,6 +282,9 @@
instance->pdata = NPN_MemAlloc(sizeof(PluginInstance));
This = (PluginInstance *) instance->pdata;
InitPrivateData(instance);
+ pthread_mutexattr_init(&attr);
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutex_init(&playlist_mutex, &attr);
DESTROYED = 0;

View File

@ -1,4 +1,6 @@
@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.so
@unexec rmdir %D/lib/browser_plugins 2>/dev/null || /usr/bin/true