summaryrefslogtreecommitdiff
path: root/www/plugger/Makefile
blob: 39d59718f5a84884b2a4725194a18dcf50fc3f5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	plugger
# Date created:		11 Februrary 1999
# Whom:			Jay Sachs <sachs@cs.williams.edu>
#
# $FreeBSD$
#

PORTNAME=	plugger
PORTVERSION=	3.3
PORTREVISION=	1
CATEGORIES=	www audio graphics
MASTER_SITES=	http://fredrik.hubbe.net/plugger/ \
		ftp://ftp.netscape.com/pub/sdk/plugin/unix/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} unix-sdk-3.0b5.tar.Z

MAINTAINER=	jmcoopr@webmail.bmi.net

RUN_DEPENDS=	${X11BASE}/bin/mozilla:${PORTSDIR}/www/mozilla \
		${LOCALBASE}/bin/mpg123:${PORTSDIR}/audio/mpg123 \
		${LOCALBASE}/bin/nspmod:${PORTSDIR}/audio/nspmod \
		${LOCALBASE}/bin/sidplay:${PORTSDIR}/audio/sidplay \
		${LOCALBASE}/bin/splay:${PORTSDIR}/audio/splay \
		${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++ \
		${LOCALBASE}/bin/wavplay:${PORTSDIR}/audio/wavplay \
		${LOCALBASE}/bin/mtvp:${PORTSDIR}/graphics/mtv \
		${X11BASE}/bin/xanim:${PORTSDIR}/graphics/xanim \
		${LOCALBASE}/bin/xloadimage:${PORTSDIR}/x11/xloadimage

USE_X_PREFIX=	yes

MAN7=		plugger.7
MANCOMPRESSED=	no
ALL_TARGET=	freebsd-elf

post-patch:
	@${MV} ${WRKSRC}/plugger.c ${WRKSRC}/plugger.c.orig
	@${SED} \
	  -e 's#/usr/local/#${PREFIX}/#' \
	  ${WRKSRC}/plugger.c.orig > ${WRKSRC}/plugger.c

do-install:
	@${INSTALL_DATA} ${WRKSRC}/plugger.so ${PREFIX}/lib/mozilla/plugins
	@${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
	@${INSTALL_DATA} ${WRKSRC}/pluggerrc ${PREFIX}/etc/pluggerrc.sample
	@${INSTALL_DATA} -b ${WRKSRC}/pluggerrc ${PREFIX}/etc

post-install:
	@${CAT} ${PKGMESSAGE} | ${SED} -e 's:/usr/X11R6:${PREFIX}:'

.include <bsd.port.mk>