From a1812ea10bf4e01773af371c7083ca51ed69e013 Mon Sep 17 00:00:00 2001
From: mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Sun, 8 Oct 2006 01:17:31 +0000
Subject: Chase xscreensaver-*' home.

git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7643 df743ca5-7f9a-e211-a948-0013205c9059
---
 www/plugger-plugins-hubbe/Makefile       | 55 +++++++++++++++++++++
 www/plugger-plugins-hubbe/pkg-descr      | 12 +++++
 www/plugger/Makefile                     | 82 ++++++++++++++++++++++++++++++++
 www/plugger/distinfo                     |  3 ++
 www/plugger/files/patch-Makefile.in      | 29 +++++++++++
 www/plugger/files/patch-configure        | 15 ++++++
 www/plugger/files/patch-plugger-oohelper | 16 +++++++
 www/plugger/files/patch-plugger.c        | 19 ++++++++
 www/plugger/pkg-descr                    | 12 +++++
 www/plugger/pkg-install                  | 59 +++++++++++++++++++++++
 www/plugger/pkg-plist                    |  7 +++
 11 files changed, 309 insertions(+)
 create mode 100644 www/plugger-plugins-hubbe/Makefile
 create mode 100644 www/plugger-plugins-hubbe/pkg-descr
 create mode 100644 www/plugger/Makefile
 create mode 100644 www/plugger/distinfo
 create mode 100644 www/plugger/files/patch-Makefile.in
 create mode 100644 www/plugger/files/patch-configure
 create mode 100644 www/plugger/files/patch-plugger-oohelper
 create mode 100644 www/plugger/files/patch-plugger.c
 create mode 100644 www/plugger/pkg-descr
 create mode 100644 www/plugger/pkg-install
 create mode 100644 www/plugger/pkg-plist

diff --git a/www/plugger-plugins-hubbe/Makefile b/www/plugger-plugins-hubbe/Makefile
new file mode 100644
index 000000000..88f9d8221
--- /dev/null
+++ b/www/plugger-plugins-hubbe/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for:	plugger-plugins-hubbe
+# Date created:				11 February 2004
+# Whom:					John Merryweather Cooper <coop9211@uidaho.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	plugger-plugins-hubbe
+PORTVERSION=	5.0
+PORTREVISION=	9
+CATEGORIES=	www multimedia audio graphics print editors
+MASTER_SITES=	# empty
+DISTFILES=	# empty
+EXTRACT_ONLY=	# empty
+
+MAINTAINER=	ports@FreeBSD.org
+COMMENT=	Meta package installing all author-recommended Plugger plugins
+
+RUN_DEPENDS=	sidplay:${PORTSDIR}/audio/sidplay \
+		acroread7:${PORTSDIR}/print/acroread7 \
+		mpg123:${PORTSDIR}/audio/mpg123 \
+		mikmod:${PORTSDIR}/audio/mikmod \
+		ogg123:${PORTSDIR}/audio/vorbis-tools \
+		xanim:${PORTSDIR}/multimedia/xanim \
+		${LOCALBASE}/share/eawpats/acbass.pat:${PORTSDIR}/audio/eawpats \
+		alsaplayer:${PORTSDIR}/audio/alsaplayer \
+		xpdf:${PORTSDIR}/graphics/xpdf \
+		gqview:${PORTSDIR}/graphics/gqview \
+		plugger-controller:${PORTSDIR}/www/plugger \
+		gv:${PORTSDIR}/print/gv \
+		xmp:${PORTSDIR}/audio/xmp \
+		${LOCALBASE}/bin/xscreensaver-hacks/molecule:${PORTSDIR}/x11/xscreensaver-gnome \
+		mplayer:${PORTSDIR}/multimedia/mplayer \
+		gnumeric:${PORTSDIR}/math/gnumeric \
+		abiword:${PORTSDIR}/editors/abiword \
+		display:${PORTSDIR}/graphics/ImageMagick
+
+.if exists(${LOCALBASE}/bin/oowrite)
+RUN_DEPENDS+=	openoffice-1.1-swriter:${PORTSDIR}/editors/openoffice-1.1
+.endif
+
+#
+# Missing because not ported to FreeBSD:
+#	audio/STsound
+#	graphics/p5-gimp-perl
+#	www/vrweb
+# Missing because HUGE!!
+#	openoffice-1.1 (include it only if it already exists)
+#
+
+NO_BUILD=	yes
+
+do-install:	# empty
+
+.include <bsd.port.mk>
diff --git a/www/plugger-plugins-hubbe/pkg-descr b/www/plugger-plugins-hubbe/pkg-descr
new file mode 100644
index 000000000..49dbe0568
--- /dev/null
+++ b/www/plugger-plugins-hubbe/pkg-descr
@@ -0,0 +1,12 @@
+Plugger-plugins-hubbe
+
+This collection consists of all the helper applications
+recommended on the Plugger website.
+
+Plugger-plugins-hubbe will be the supported plugin package for
+www/plugger.
+
+WWW: http://fredrik.hubbe.net/plugger.html
+
+--
+John Merryweather Cooper <coop9211@uidaho.edu>
diff --git a/www/plugger/Makefile b/www/plugger/Makefile
new file mode 100644
index 000000000..fa02ac144
--- /dev/null
+++ b/www/plugger/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for:	plugger
+# Date created:		11 Februrary 1999
+# Whom:			Jay Sachs <sachs@cs.williams.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	plugger
+PORTVERSION=	5.1.3
+PORTREVISION=	2
+CATEGORIES=	www audio graphics multimedia
+MASTER_SITES=	http://fredrik.hubbe.net/plugger/
+
+MAINTAINER=	ports@FreeBSD.org
+COMMENT=	A multimedia front-end plugin for Mozilla or Opera
+
+USE_X_PREFIX=	yes
+GNU_CONFIGURE=	yes
+
+MAN7=		plugger.7
+PKGDEINSTALL=	${PKGINSTALL}
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+	's|/usr/X11R6/lib/xscreensaver|${LOCALBASE}/bin/xscreensaver-hacks|g ; \
+	s|acroread|acroread7|g ; s|+useFrontEndProgram||g' \
+		${WRKSRC}/pluggerrc
+
+pre-install:
+	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
+		${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+do-install:
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
+		${PREFIX}/bin
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
+		${PREFIX}/bin
+	@${INSTALL_SCRIPT} ${WRKSRC}/plugger-oohelper \
+		${PREFIX}/bin
+	@${MKDIR} ${PREFIX}/lib/browser_plugins
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
+		${PREFIX}/lib/browser_plugins/npplugger.so
+	@if [ -f ${PREFIX}/etc/pluggerrc-${PORTVERSION} ]; then \
+		${MV} ${PREFIX}/etc/pluggerrc-${PORTVERSION} \
+			${PREFIX}/etc/pluggerrc-${PORTVERSION}.old; \
+	fi
+	@${INSTALL_DATA} ${WRKSRC}/pluggerrc \
+		${PREFIX}/etc/pluggerrc-${PORTVERSION}.sample
+	@${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
+
+local-install:
+	@${MKDIR} ${HOME}/.plugger
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
+		${HOME}/.plugger
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
+		${HOME}/.plugger
+	@${INSTALL_SCRIPT} ${WRKSRC}/plugger-oohelper \
+		${HOME}/.plugger
+	@if [ -f ${HOME}/.plugger/pluggerrc-${PORTVERSION} ]; then \
+		${MV} ${HOME}/.plugger/pluggerrc-${PORTVERSION} \
+			${HOME}/.plugger/pluggerrc-${PORTVERSION}.old; \
+	fi
+	@${INSTALL_DATA} ${WRKSRC}/pluggerrc \
+		${HOME}/.plugger/pluggerrc-${PORTVERSION}
+
+local-mozilla-install: local-install
+	@${MKDIR} ${HOME}/.mozilla/plugins
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
+		${HOME}/.mozilla/plugins/npplugger.so
+
+local-opera-install: local-install
+	@${MKDIR} ${HOME}/.opera/plugins
+	@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
+		${HOME}/.opera/plugins/npplugger.so
+
+post-install:
+	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
+		${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/www/plugger/distinfo b/www/plugger/distinfo
new file mode 100644
index 000000000..90404ce1a
--- /dev/null
+++ b/www/plugger/distinfo
@@ -0,0 +1,3 @@
+MD5 (plugger-5.1.3.tar.gz) = 576e32a13955330ee3f7dca3583fcd62
+SHA256 (plugger-5.1.3.tar.gz) = 424724ba3ee9cc47c035587b9fbd944bf42a089110139f9464d530a61d295fe7
+SIZE (plugger-5.1.3.tar.gz) = 90660
diff --git a/www/plugger/files/patch-Makefile.in b/www/plugger/files/patch-Makefile.in
new file mode 100644
index 000000000..529b5467b
--- /dev/null
+++ b/www/plugger/files/patch-Makefile.in
@@ -0,0 +1,29 @@
+--- Makefile.in.orig	Tue May  3 11:46:47 2005
++++ Makefile.in	Tue May  3 11:48:35 2005
+@@ -30,7 +30,7 @@
+ CC=@CC@
+ LD=@LD@
+ BINFORMAT=bin
+-OPT_FLAGS=-O2
++OPT_FLAGS=@CFLAGS@
+ 
+ @SET_MAKE@
+ 
+@@ -66,7 +66,7 @@
+ DEBUG= # -DDEBUG # -DPLUGIN_TRACE
+ DEFINES=$(STREAM) -DVERSION=\"$(VERSION)\" $(DEBUG)
+ COMMON_CFLAGS=$(OPT_FLAGS) -I$(SDK)/include -I@x_includes@ -DXP_UNIX $(DEFINES)
+-COMMON_LDFLAGS=
++COMMON_LDFLAGS=@LDFLAGS@
+ NORM_CFLAGS=
+ NORM_LDFLAGS=
+ XCFLAGS=@XCFLAGS@ @X_CFLAGS@
+@@ -132,7 +132,7 @@
+ plugger-helper.o: plugger.h
+ 
+ plugger.o: plugger.c plugger.h
+-	$(CC) -c $(SHARED_CFLAGS) -o plugger.o plugger.c
++	$(CC) -c $(SHARED_CFLAGS) -DSYSCONFDIR=\"$(prefix)/etc\" -o plugger.o plugger.c
+ 
+ plugger-common.o: plugger-common.c plugger.h
+ 	$(CC) -c $(SHARED_CFLAGS) -o plugger-common.o plugger-common.c
diff --git a/www/plugger/files/patch-configure b/www/plugger/files/patch-configure
new file mode 100644
index 000000000..4fcd27968
--- /dev/null
+++ b/www/plugger/files/patch-configure
@@ -0,0 +1,15 @@
+--- configure.orig	Tue May  3 11:49:26 2005
++++ configure	Tue May  3 11:50:09 2005
+@@ -3704,10 +3704,10 @@
+      XLDFLAGS='-expect_unresolved "*" -shared -msym -O3'
+   ;;
+ 
+-  FreeBSD)
++  FreeBSD*)
+      case "`file /bin/ls`" in
+        *ELF*)
+-         XCFLAGS=-fpic
++         XCFLAGS=-fPIC
+          XLDFLAGS=-shared
+        ;;
+        *)
diff --git a/www/plugger/files/patch-plugger-oohelper b/www/plugger/files/patch-plugger-oohelper
new file mode 100644
index 000000000..9357f9b65
--- /dev/null
+++ b/www/plugger/files/patch-plugger-oohelper
@@ -0,0 +1,16 @@
+--- plugger-oohelper.orig	Tue May  3 12:20:51 2005
++++ plugger-oohelper	Tue May  3 12:21:12 2005
+@@ -45,11 +45,11 @@
+   done
+ done
+ 
+-if [ "x${ooprefix}" == "xs" ]; then
++if [ "x${ooprefix}" = "xs" ]; then
+   exec s$1 -n "$@" "$file" >/dev/null
+ fi
+ 
+-if [ "x${ooprefix}" == "xo" ]; then
++if [ "x${ooprefix}" = "xo" ]; then
+   exec oo$1 -n "$@" "$file" >/dev/null
+ fi
+ 
diff --git a/www/plugger/files/patch-plugger.c b/www/plugger/files/patch-plugger.c
new file mode 100644
index 000000000..b61b6fdae
--- /dev/null
+++ b/www/plugger/files/patch-plugger.c
@@ -0,0 +1,19 @@
+--- plugger.c.orig	Tue May  3 11:51:06 2005
++++ plugger.c	Tue May  3 11:51:32 2005
+@@ -624,16 +624,6 @@
+   if(cb(fname, data)) return 1;
+ #endif
+ 
+-  sprintf(fname,"/usr/local/netscape/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/usr/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/usr/local/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  if(cb(basename, data)) return 1;
+-  
+   return 0;
+ }
+ 
diff --git a/www/plugger/pkg-descr b/www/plugger/pkg-descr
new file mode 100644
index 000000000..0bda60b62
--- /dev/null
+++ b/www/plugger/pkg-descr
@@ -0,0 +1,12 @@
+Plugger is a multimedia plugin for Unix Netscape 3.0 or later that
+handles Quicktime, MPEG, MP2, AVI, SGI-movie, Tiff, DL, IFF-anim,
+MIDI, Soundtracker, AU, WAV and Commodore 64 audio files. Since
+Plugger 3.0, MPEG audio and video can be streamed.
+
+Plugger is a very small plugin, because plugger uses external programs
+to show/play the different formats.
+
+WWW: http://www.hubbe.net/~hubbe/plugger.html
+
+--jmc
+coop9211@uidaho.edu
diff --git a/www/plugger/pkg-install b/www/plugger/pkg-install
new file mode 100644
index 000000000..d96aa16b2
--- /dev/null
+++ b/www/plugger/pkg-install
@@ -0,0 +1,59 @@
+#!/bin/sh
+# $FreeBSD: ports/www/plugger/pkg-install,v 1.3 2005/05/04 14:53:54 pav Exp $
+
+[ $# != 2 ] && exit 1
+PKGNAME=$1
+ACTION=$2
+
+FILES_DELETE="pluggerrc-5.1.3.old"
+
+ETCDIR=${PKG_PREFIX}/etc
+
+RM=/bin/rm
+CP=/bin/cp
+ECHO=/bin/echo
+
+case "$ACTION" in
+
+POST-INSTALL)
+	if [ ! -f ${ETCDIR}/pluggerrc-5.1.3 ]; then
+		${CP} ${ETCDIR}/pluggerrc-5.1.3.sample ${ETCDIR}/pluggerrc-5.1.3
+	fi
+	;;
+
+DEINSTALL)
+	for file in ${FILES_DELETE}
+	do
+		if [ -f ${ETCDIR}/${file} ]; then
+			${RM} ${ETCDIR}/${file}
+		fi
+	done
+	;;
+
+PRE-INSTALL)
+	${ECHO}
+	${ECHO} "Run ''make local-mozilla-install'' as user to locally"
+	${ECHO} "install plugger for Mozilla"
+	${ECHO}
+	${ECHO} "Run ''make local-opera-install'' as user to locally"
+	${ECHO} "install plugger for Opera"
+	${ECHO}
+	${ECHO} "NOTE:  For plugger-oohelper to work, [o|s]office must be"
+	${ECHO} "in the PATH."
+	${ECHO}
+	;;
+
+POST-DEINSTALL)
+	${ECHO}
+	${ECHO} "If you are permanently removing this port,"
+	${ECHO} "you should do a ''rm -f ${ETCDIR}/pluggerrc-5.1.3''"
+	${ECHO} "to remove it."
+	${ECHO}
+	;;
+
+*)
+	exit 1
+	;;
+esac
+
+exit
diff --git a/www/plugger/pkg-plist b/www/plugger/pkg-plist
new file mode 100644
index 000000000..2974fb3c4
--- /dev/null
+++ b/www/plugger/pkg-plist
@@ -0,0 +1,7 @@
+bin/plugger-5.1.3
+bin/plugger-controller
+bin/plugger-oohelper
+@unexec if cmp %D/etc/pluggerrc-5.1.3.sample %D/etc/pluggerrc-5.1.3 2>/dev/null; then rm -f %D/etc/pluggerrc-5.1.3; fi
+etc/pluggerrc-5.1.3.sample
+lib/browser_plugins/npplugger.so
+@dirrmtry lib/browser_plugins
-- 
cgit v1.2.3