mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
46e48ea220
PR: ports/68766 Submitted by: John Merryweather Cooper (maintainer)
82 lines
2.3 KiB
Makefile
82 lines
2.3 KiB
Makefile
# New ports collection makefile for: plugger
|
|
# Date created: 11 Februrary 1999
|
|
# Whom: Jay Sachs <sachs@cs.williams.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= plugger
|
|
PORTVERSION= 5.1.2
|
|
CATEGORIES= www audio graphics multimedia
|
|
MASTER_SITES= http://fredrik.hubbe.net/plugger/
|
|
|
|
MAINTAINER= coop9211@uidaho.edu
|
|
COMMENT= A multimedia front-end plugin for Mozilla or Opera
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAN7= plugger.7
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/X11R6/lib/xscreensaver|${X11BASE}/bin/xscreensaver-hacks|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>
|