1999-06-25 22:14:30 +00:00
|
|
|
# New ports collection makefile for: plugger
|
|
|
|
# Date created: 11 Februrary 1999
|
|
|
|
# Whom: Jay Sachs <sachs@cs.williams.edu>
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1999-06-25 22:14:30 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= plugger
|
2004-07-09 14:01:31 +00:00
|
|
|
PORTVERSION= 5.1.2
|
2002-11-28 16:37:35 +00:00
|
|
|
CATEGORIES= www audio graphics multimedia
|
2004-02-12 07:49:47 +00:00
|
|
|
MASTER_SITES= http://fredrik.hubbe.net/plugger/
|
1999-06-25 22:14:30 +00:00
|
|
|
|
2002-08-25 16:02:39 +00:00
|
|
|
MAINTAINER= coop9211@uidaho.edu
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= A multimedia front-end plugin for Mozilla or Opera
|
1999-06-25 22:14:30 +00:00
|
|
|
|
2001-09-04 16:32:21 +00:00
|
|
|
USE_X_PREFIX= yes
|
2002-08-25 16:02:39 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-07-09 14:01:31 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-10-10 17:57:37 +00:00
|
|
|
|
1999-06-25 22:14:30 +00:00
|
|
|
MAN7= plugger.7
|
2004-02-12 07:49:47 +00:00
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
1999-06-25 22:14:30 +00:00
|
|
|
|
2002-04-08 15:46:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-06-25 22:14:30 +00:00
|
|
|
post-patch:
|
2004-02-22 07:57:36 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/X11R6/lib/xscreensaver|${X11BASE}/bin/xscreensaver-hacks|g' \
|
|
|
|
${WRKSRC}/pluggerrc
|
2004-02-12 07:49:47 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
|
|
|
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2000-05-29 03:29:36 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-02-12 07:49:47 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
|
|
|
|
${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
|
|
|
|
${PREFIX}/bin
|
2004-07-09 14:01:31 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/plugger-oohelper \
|
|
|
|
${PREFIX}/bin
|
|
|
|
@${MKDIR} ${PREFIX}/lib/browser_plugins
|
2001-12-15 14:29:57 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
|
2002-11-17 05:40:36 +00:00
|
|
|
${PREFIX}/lib/browser_plugins/npplugger.so
|
2004-02-12 07:49:47 +00:00
|
|
|
@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
|
2001-09-04 16:32:21 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
|
2004-02-12 07:49:47 +00:00
|
|
|
|
|
|
|
local-install:
|
2004-07-09 14:01:31 +00:00
|
|
|
@${MKDIR} ${HOME}/.plugger
|
2004-02-12 07:49:47 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
|
2004-07-09 14:01:31 +00:00
|
|
|
${HOME}/.plugger
|
2004-02-12 07:49:47 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
|
2004-07-09 14:01:31 +00:00
|
|
|
${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; \
|
2004-02-12 07:49:47 +00:00
|
|
|
fi
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/pluggerrc \
|
2004-07-09 14:01:31 +00:00
|
|
|
${HOME}/.plugger/pluggerrc-${PORTVERSION}
|
|
|
|
|
|
|
|
local-mozilla-install: local-install
|
|
|
|
@${MKDIR} ${HOME}/.mozilla/plugins
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
|
|
|
|
${HOME}/.mozilla/plugins/npplugger.so
|
2004-02-12 07:49:47 +00:00
|
|
|
|
2004-07-09 14:01:31 +00:00
|
|
|
local-opera-install: local-install
|
2004-02-12 07:49:47 +00:00
|
|
|
@${MKDIR} ${HOME}/.opera/plugins
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
|
|
|
|
${HOME}/.opera/plugins/npplugger.so
|
1999-06-25 22:14:30 +00:00
|
|
|
|
|
|
|
post-install:
|
2004-02-12 07:49:47 +00:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
|
|
|
${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1999-06-25 22:14:30 +00:00
|
|
|
|
2002-04-08 15:46:48 +00:00
|
|
|
.include <bsd.port.post.mk>
|